C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

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 ()
 Destructor.
 
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
 NO TRANSLATION.
 
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)
 NO TRANSLATION.
 
virtual bool IsAnnotation () const
 NO TRANSLATION.
 
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 ()
 Destructor.
 
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 ()
 Destructor.
 
void SetParent (Object *pParent)
 NO TRANSLATION.
 
MutexGetMutex ()
 Object mutex.
 
String GetObjectName () const
 Returns name.
 
void SetObjectName (const String &name)
 Sets name.
 
bool IsControlType () const
 TRANSLATION.
 
ObjectGetParent () const
 NO TRANSLATION.
 
Variant GetProperty (const String &name) const
 NO TRANSLATION.
 
bool IsSignalsBlocked () const
 NO TRANSLATION.
 
bool SetBlockSignals (bool bBlock)
 NO TRANSLATION.
 
void AddEventListener (Object *pObject)
 NO TRANSLATION.
 
void RemoveEventListener (Object *pObject)
 NO TRANSLATION.
 
ObjectGetSender () const
 NO TRANSLATION.
 
Thread * GetThread () const
 NO TRANSLATION.
 
void BindWithThread (Thread *thread)
 NO TRANSLATION.
 
int StartTimer (int interval, TimerType timerType=tt_CoarseTimer)
 NO TRANSLATION.
 
void KillTimer (int id)
 NO TRANSLATION.
 
const ObjectList< Object * > & GetChildren () const
 NO TRANSLATION.
 
template<typename T >
FindChild (const String &objName=String()) const
 NO TRANSLATION.
 
template<typename T >
ObjectList< T > FindChildren (const String &objName=String(), VSN::ChildFindingPolicies policies=VSN::FindAllNestedChildren) const
 NO TRANSLATION.
 
- Public Member Functions inherited from VSN::BasicObject
 BasicObject ()
 Default constructor.
 
virtual ~BasicObject ()
 Destructor.
 

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 
)
protected

Signal about the end of rebuilding the whole geometry.

Constructor for internal use.


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