C# Class Revit.SDK.Samples.ObjectViewer.CS.Graphics3DData

data class for graphics 3D
ファイルを表示 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
Graphics3DData ( List curves, BoundingBoxXYZ bbox ) : System

constructor

RotateX ( bool direction ) : void

rotate around X axis with default angle

RotateY ( bool direction ) : void

rotate around Y axis with default angle

RotateZ ( bool direction ) : void

rotate around Z axis with default angle

SetViewDirection ( ViewDirections viewDirection ) : void

change the camera direction to the geometry

Private Methods

Method Description
FindBBoxCenter ( BoundingBoxXYZ bbox ) : Vector

find the center of the BoundingBox

Graphics3DData ( ) : System

static constructor used to initialize static members

InitializeBBox ( BoundingBoxXYZ bbox ) : void

move the BoundingBox to the center of the Coordinate System, modify its size to the size of Geometry's BoundingBox

UpdateDisplayData ( UCS lc ) : void

update data according to current UCS

Method Details

Graphics3DData() public method

constructor
public Graphics3DData ( List curves, BoundingBoxXYZ bbox ) : System
curves List curves represent the wireframe of the 3D geometry
bbox BoundingBoxXYZ oundingBox of the 3D geometry
return System

RotateX() public method

rotate around X axis with default angle
public RotateX ( bool direction ) : void
direction bool minus or positive angle
return void

RotateY() public method

rotate around Y axis with default angle
public RotateY ( bool direction ) : void
direction bool minus or positive angle
return void

RotateZ() public method

rotate around Z axis with default angle
public RotateZ ( bool direction ) : void
direction bool minus or positive angle
return void

SetViewDirection() public method

change the camera direction to the geometry
public SetViewDirection ( ViewDirections viewDirection ) : void
viewDirection ViewDirections camera direction
return void