C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
VSN::RenderObject Class Reference

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 NodeKeyGetUniqueKey () 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.
 
GeometryGetGeometryByIndex (size_t index) const
 Returns geometry part by index.
 
const GeometryRepGetRepresentation () 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 Matrix3DFGetMatrix () const
 Returns absolute transformation matrix.
 
const Matrix3DFGetFullMatrix () 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...
 
RenderStateGetRenderState ()
 Returns pointer to rendering state.
 
RenderStateGetRenderStateRef ()
 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 GeometryRepGetRepObject () const
 Returns object representation.
 
bool AddGeometry (Geometry *pGeometry)
 Adds new geometry.
 
void DeleteEmptyGeometry ()
 Deletes empty geometry.
 
void ReverseNormalsOfGeometry ()
 Reverses geometry normals.
 
RenderObjectTranslate (double px, double py, double pz)
 Transforms object by parameters.
 
RenderObjectTranslate (const MbVector3D &)
 Transforms object by vector.
 
RenderObjectMultMatrix (const Matrix3DF &)
 Transforms object by specified matrix.
 
RenderObjectSetMatrix (const Matrix3DF &)
 Sets absolute matrix by specified matrix.
 
RenderObjectResetMatrixToIdentityMatrix ()
 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.
 
RenderObjectoperator= (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
 глобальное значение уровня детализации по умолчанию
 

Detailed Description

RenderObject class contains GeometryRep + bounding box.

RenderObject class contains GeometryRep + bounding box.

Member Enumeration Documentation

◆ VisibleState

Enumerator
Relative_Visible 

абсолютно видимый

Absolute_Hide 

относительно видимый

Absolute_Visible_Pixel_Culling 

абсолютно невидимый

Absolute_Hide_Pixel_Culling 

абсолютно видимый

Member Function Documentation

◆ GetPolygonMode()

PolygonMode VSN::RenderObject::GetPolygonMode ( ) const

Returns object rendering mode.

Returns object rendering mode. It can be GL_POINT, GL_LINE or GL_FILL.

◆ SetPolygonMode()

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.


The documentation for this class was generated from the following file: