C3D Toolkit  Kernel - 117982, Vision -

Geometry class is the base class for all geometric objects. More...

#include <vsn_geometry.h>

+ Inheritance diagram for VSN::Geometry:
+ Collaboration diagram for VSN::Geometry:

Public Member Functions

 Geometry (Node *pParent=nullptr)
 Default constructor.
virtual ~Geometry ()
void SetDoubleSidedLighting (bool value)
 Set double side lighting.
bool IsDoubleSidedLighting () const
 Does geometry use double sided lighting.
void SetVisible (bool value)
 Set the visibility value to the geometry object.
bool IsVisible () const
 Check the visibility value.
virtual Pen GetPen () const
 Get pen.
virtual void SetPen (const Pen &pen)
 Set pen.
virtual void SetLevelDetail (int value)
 \ ru Задать уровень детализации в диапазоне от 0 до 100. Sets LOD in the range from 0 to 100.
virtual bool IsIgnorePixelCulling () const
virtual bool IsTransparent () const
 Checks if geometry is transparent.
virtual bool IsBoundingBoxValid () const
 True if bounding box is valid.
virtual const MbCubeGetBoundingBox () const
 Returns bounding box.
virtual void PickObjectsInsideRect (const MbRect &rect, const Matrix3DF &viewMatrix, const Matrix3DF &mx, Filter filter, bool bUnifying, HitList &hits)
virtual bool IsAnnotation () const
virtual void UpdateTransparentMaterialCount ()
 Updates transparent material count after table operations.
virtual TranslucentValue GetTranslucentValue () const
 Translucent value.
virtual bool HasMaterialById (const NodeKey &key) const
 Checks if the material with set identifier exists in the table.
virtual size_t GetMaterialCount () const
 Returns material count from the table.
virtual std::set< Material * > GetMaterialSet () const
 Returns material table.
virtual float GetVolume ()
 Returns geometry volume.
virtual void InvertNormals ()
 Inverts direction of all vertex normals.
virtual void TransformVerticesByMatrix (const Matrix3DF &matrix)
 Transforms mesh vertices by given matrix.
virtual void UpdateGeometry ()
 Updates geometry by new data.
virtual size_t GetFaceCount (size_t indexLod=0) const
 Returns face count.
virtual size_t GetVertexCount () const
 Returns vertex count.
virtual void DoRender (const RenderState &renderState)
 Performs rendering.
virtual void Render (RenderContext &renderContext)
 Performs rendering.
virtual void OpenGLDraw (const RenderState &renderState)
 Renders wireframe in one of the modes: GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP GL_LINES.
- Public Member Functions inherited from VSN::Node
 Node (Node *pParent=nullptr)
 Constructor with parent.
virtual ~Node ()
NodeKey GetUniqueKey () const
 Returns key identifing Node instance.
void SetUniqueKey (const NodeKey &key)
 Sets the unique key for the instance.
NodeKey GetCustomKey () const
 Returns custom key identifing Node instance.
void SetCustomKey (const NodeKey &key)
 Sets the custom unique key for the instance.
NodeGetParentNode () const
 Returns pointer to the parent object or nullptr if no parent.
bool IsEnabled () const
 Returns the Node enabled flag. By default, the flag is always on.
ObjectList< Node * > GetChildNodes () const
 Return an array of child nodes for this node.
void SetParent (Node *pParent)
 Sets parent object to the object.
bool IsNotificationsBlocked () const
 True if notifications are blocked, otherwise, False.
bool SetBlockNotifications (bool block)
 Sets blocking of notifications and returns the previous blocking value.
- Public Member Functions inherited from VSN::Object
 Object (Object *pParent=nullptr)
 Default constructor. More...
virtual ~Object ()
void SetParent (Object *pParent)
MutexGetMutex ()
 Object mutex.
String GetObjectName () const
 Returns name.
void SetObjectName (const String &name)
 Sets name.
bool IsControlType () const
ObjectGetParent () const
Variant GetProperty (const String &name) const
bool IsSignalsBlocked () const
bool SetBlockSignals (bool bBlock)
void AddEventListener (Object *pObject)
void RemoveEventListener (Object *pObject)
ObjectGetSender () const
Thread * GetThread () const
void BindWithThread (Thread *thread)
int StartTimer (int interval, TimerType timerType=tt_CoarseTimer)
void KillTimer (int id)
const ObjectList< Object * > & GetChildren () const
template<typename T >
FindChild (const String &objName=String()) const
template<typename T >
ObjectList< T > FindChildren (const String &objName=String(), VSN::ChildFindingPolicies policies=VSN::FindAllNestedChildren) const
- Public Member Functions inherited from VSN::BasicObject
 BasicObject ()
 Default constructor.
virtual ~BasicObject ()

Protected Member Functions

ObjectVector< GeometryTraits * > GetGeometryTraits () const
 Returns list of geometry data from this object.
void AddGeometryTraits (GeometryTraits *pTraits)
 Adds data group of geometric solid body.
void RemoveGeometryTraits (GeometryTraits *pTraits)
 Removes data group of geometric solid body.
 Geometry (GeometryPrivate &dd, Node *pParent)
 Signal about the end of rebuilding the whole geometry. More...
- Protected Member Functions inherited from VSN::Node
 Node (NodePrivate &dd, Node *pParent)
 Sets the node enable flag. More...
virtual void SceneModificationEvent (const std::shared_ptr< SceneModification > &modification)
 The function is called in case of scene being modified.

Detailed Description

Geometry class is the base class for all geometric objects.

Constructor & Destructor Documentation

◆ Geometry()

VSN::Geometry::Geometry ( GeometryPrivate &  dd,
Node pParent 

Signal about the end of rebuilding the whole geometry.

Constructor for internal use.

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