Base class for all kind of geometry (solid or wireframe) More...
Base class for all kind of geometry (solid or wireframe)
GO2SEnum::GO2SError GO2SGeometry::ChangePlane | ( | Number | plane | ) |
Change the plane of a geometric entity. In case of a free point (not attached to an extremity for example), it will update the coordinates according to the new plane and change the plane number. So the position will not change in the 3D scene
[in] | plane | the plane |
GO2SGeometry GO2SGeometry::Copy | ( | ) |
GO2SEnum::GO2SError GO2SGeometry::Delete | ( | ) |
Delete the geometry from database
Array< GO2SXYZ > GO2SGeometry::Discretize | ( | Number | accuracy = 0.01 | ) |
Discretize the geometry
|
inline |
Array< GO2SXYZ > GO2SGeometry::GetBoundingBox | ( | ) |
|
inline |
Array< GO2SEnum::GO2SParam > GO2SGeometry::GetEditableParams | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Number GO2SGeometry::GetParam | ( | GO2SEnum::GO2SParam | param | ) |
Get a parameter of the geometry if possible
[in] | param | the parameter |
GO2SGeometry GO2SGeometry::GetParent | ( | ) |
|
inline |
GO2SXYZ GO2SGeometry::GetPosition | ( | ) |
Boolean GO2SGeometry::IsCircular | ( | ) |
Boolean GO2SGeometry::IsLinear | ( | ) |
Boolean GO2SGeometry::IsParamEditable | ( | GO2SEnum::GO2SParam | param | ) |
|
inline |
Boolean GO2SGeometry::IsPositionEditable | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
GO2SGeometry GO2SGeometry::Rotated | ( | GO2SXYZ | xyz, |
Number | angle, | ||
Boolean | xyzDir ) |
Rotate a geometry
[in] | xyz | center or axis for rotation. If considered as center, rotation is done using Z axis |
[in] | angle | rotation angle in degree |
[in] | xyzDir | if true, xyz must be considered as a direction, otherwise it is considered as a point |
GO2SEnum::GO2SError GO2SGeometry::SetColor | ( | Number | color | ) |
Set the color of a geometric entity
[in] | color | the color, for example 0xFF0000 for blue, 0x00FF00 for green, 0x0000FF for red |
GO2SEnum::GO2SError GO2SGeometry::SetLayer | ( | Number | layer | ) |
Set the layer of a geometric entity
[in] | layer | the layer |
GO2SEnum::GO2SError GO2SGeometry::SetLineType | ( | ELineType | type | ) |
Set the line type of a geometric entity
GO2SEnum::GO2SError GO2SGeometry::SetLineWidth | ( | Number | width | ) |
Set the line width of a geometric entity
GO2SEnum::GO2SError GO2SGeometry::SetName | ( | String | p1 | ) |
Set the name of a geometric entity
[in] | p1 | the name |
GO2SEnum::GO2SError GO2SGeometry::SetParam | ( | GO2SEnum::GO2SParam | param, |
Number | value ) |
Change the parameter of the geometry if possible
[in] | param | the parameter |
[in] | value | the parameter value |
GO2SEnum::GO2SError GO2SGeometry::SetPlane | ( | Number | plane | ) |
Set the plane of a geometric entity. In case of a free point (not attached to an extremity for example), it will keep the coordinates and change the plane number. So the position will change in the 3D scene
[in] | plane | the plane |
GO2SEnum::GO2SError GO2SGeometry::SetPolarPosition | ( | Number | radius, |
Number | angle, | ||
Number | altitude = 0 ) |
[in] | radius | the radius in mm |
[in] | angle | an angle in degree |
[in] | altitude | the altitude of the point |
GO2SEnum::GO2SError GO2SGeometry::SetPosition | ( | GO2SXYZpos | ) |
Change the position of the geometry if possible
GO2SEnum::GO2SError GO2SGeometry::SetPosition | ( | Number | x, |
Number | y, | ||
Number | z ) |
Change the position of the geometry if possible
[in] | x | the new X position |
[in] | y | the new Y position |
[in] | z | the new Z position |
GO2SEnum::GO2SError GO2SGeometry::SetVisible | ( | Boolean | visibility | ) |
Set the visibility of a geometric entity
String GO2SGeometry::toString | ( | ) |
GO2SEnum::GO2SError GO2SGeometry::Transform | ( | GO2SMatrix | matrix | ) |
Move a geometry using a matrix
GO2SGeometry GO2SGeometry::Transformed | ( | GO2SMatrix | matrix | ) |
Move a geometry using a matrix
GO2SGeometry GO2SGeometry::Translated | ( | GO2SXYZ | origin, |
GO2SXYZ | p ) |
Translate a geometry
[in] | origin | origin of translation vector |
[in] | p | end point of translation vector |