|
C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
RenderObject class contains GeometryRep + bounding box. More...
#include <vsn_renderobject.h>
Public Types | |
| enum | VisibleState { } |
Public Member Functions | |
| RenderObject () | |
| Default constructor. | |
| RenderObject (Geometry *pGeom) | |
| Special constructor with geometry initialization. | |
| RenderObject (Geometry *pGeom, const NodeKey &key) | |
| Special constructor with geometry initialization and the unique identifier. | |
| RenderObject (const GeometryRep &) | |
| Special constructor with initialization of geometry representation. | |
| RenderObject (const GeometryRep &, const NodeKey &key) | |
| Special constructor with initialization of geometry representation and the unique identifier. | |
| RenderObject (const RenderObject &other) | |
| Copy constructor. | |
| ~RenderObject () | |
| Destructor. | |
| String | GetObjectName () const |
| Returns name. | |
| void | SetObjectName (const String &name) |
| Sets name. | |
| const NodeKey & | GetUniqueKey () const |
| Returns key identifing Node instance. | |
| bool | IsTransparent () const |
| Checks if the whole object is transparent. | |
| bool | IsExistTransparentMaterials () const |
| Checks if transparent parts of object exist (at least one part). | |
| bool | IsEmpty () const |
| Checks if object is empty. | |
| bool | IsSelected () const |
| Checks if object is selected. | |
| int | GetGeometryCount () const |
| Returns geometry count. | |
| Geometry * | GetGeometryByIndex (size_t index) const |
| Returns geometry part by index. | |
| const GeometryRep & | GetRepresentation () const |
| Returns geometry representation of the object. | |
| MbCube | GetBoundingBox () |
| Returns copy of object bounding box. | |
| bool | IsBoundingBoxValid () const |
| Checks if bounding box is valid. | |
| const Matrix3DF & | GetMatrix () const |
| Returns absolute transformation matrix. | |
| const Matrix3DF & | GetFullMatrix () const |
| Returns full matrix with given absolute matrix of the object. | |
| PolygonMode | GetPolygonMode () const |
| Returns object rendering mode. More... | |
| void | SetPolygonMode (DrawBufferMode face, PolygonMode mode) |
| Sets polygon mapping mode in selected style. More... | |
| RenderState * | GetRenderState () |
| Returns pointer to rendering state. | |
| RenderState & | GetRenderStateRef () |
| Returns reference to rendering state. | |
| void | SetStateRender (const RenderState &renderState) |
| Sets rendering state for this object. | |
| bool | IsVisible () const |
| Checks if object is visible. | |
| void | SetVisible (bool bVisible) |
| Sets visibility for object. | |
| VisibleState | GetVisibleState () const |
| Returns object visibility state. | |
| bool | SetStateVisible (VisibleState state) |
| Sets object visibility state. | |
| bool | IsGeomVisibleByIndex (size_t index) const |
| Checks if object received by index is visible. | |
| void | SetVisibleGeomByIndex (size_t index, bool bVisible) |
| Sets geometry visibility inside the object by index. | |
| size_t | GetFaceCount () const |
| Returns face count. | |
| size_t | GetVertexCount () const |
| Returns vertex count. | |
| size_t | GetMaterialCount () const |
| Returns material count. | |
| std::set< Material * > | GetMaterials () const |
| Returns material array. | |
| int | GetDefaultLevelOfDetail () const |
| Returns the default value of LOD. | |
| void | SetDefaultLevelOfDetail (int value) |
| Sets the default value of LOD for this object. | |
| const GeometryRep * | GetRepObject () const |
| Returns object representation. | |
| bool | AddGeometry (Geometry *pGeometry) |
| Adds new geometry. | |
| void | DeleteEmptyGeometry () |
| Deletes empty geometry. | |
| void | ReverseNormalsOfGeometry () |
| Reverses geometry normals. | |
| RenderObject & | Translate (double px, double py, double pz) |
| Transforms object by parameters. | |
| RenderObject & | Translate (const MbVector3D &) |
| Transforms object by vector. | |
| RenderObject & | MultMatrix (const Matrix3DF &) |
| Transforms object by specified matrix. | |
| RenderObject & | SetMatrix (const Matrix3DF &) |
| Sets absolute matrix by specified matrix. | |
| RenderObject & | ResetMatrixToIdentityMatrix () |
| Resets absolute matrix to identity matrix. | |
| void | SetUseFullMatrix (bool bUse) |
| Uses full matrix with given absolute matrix of the object. | |
| void | SetFullMatrix (const Matrix3DF &mx) |
| Sets full matrix with given absolute matrix of the object. | |
| void | ResetFullMatrixToIdentityMatrix () |
| Resets full matrix to identity matrix. | |
| void | SetSelect (bool primitive) |
| Sets flag of selected object in geometry. | |
| void | Unselect () |
| Unselects object within geometry. | |
| void | SetUniqueKey (const NodeKey &key) |
| Sets identifier for object. | |
| void | PickObjectsInsideRect (const MbRect &rect, const Matrix3DF &viewMatrix, Filter filter, bool bUnifying, HitList &hits) |
| NO TRANSLATION. | |
| void | OGLDrawGivenMode (RenderMode renderingMode=rm_Shaded, bool useLod=false, const Viewport *pView=nullptr, CuttingUtil *cuttingTool=nullptr) |
| Renders representation of the object in set mode. | |
| void | OGLDrawBodySelectionMode () |
| Renders body in selection mode. | |
| size_t | OGLDrawPrimitiveSelectionMode (uint idBody) |
| Renders object primitives in selection mode by body identifier and return body index. | |
| RenderObject & | operator= (const RenderObject &) |
| Copy operator. | |
Static Public Member Functions | |
| static int | GetGlobalDefaultLevelOfDetail () |
| Returns the global value of LOD. | |
| static void | SetGlobalDefaultLevelOfDetail (int value) |
| Sets the global value of LOD. | |
Friends | |
| class | RenderContainerPrivate |
| глобальное значение уровня детализации по умолчанию | |
RenderObject class contains GeometryRep + bounding box.
RenderObject class contains GeometryRep + bounding box.
| PolygonMode VSN::RenderObject::GetPolygonMode | ( | ) | const |
Returns object rendering mode.
Returns object rendering mode. It can be GL_POINT, GL_LINE or GL_FILL.
| void VSN::RenderObject::SetPolygonMode | ( | DrawBufferMode | face, |
| PolygonMode | mode | ||
| ) |
Sets polygon mapping mode in selected style.
Sets polygon mapping mode in selected style. Mesh mode can be GL_FRONT_AND_BACK, GL_FRONT or GL_BACK. The style can be GL_POINT, GL_LINE or GL_FILL.