Hide menu
cadex::ModelPrs_Geometry Class Reference

Defines a drawable geometry. More...

Inheritance diagram for cadex::ModelPrs_Geometry:
cadex::Base_PublicObject

Public Types

typedef cadex::internal::ModelPrs_GeometryImpl ImplType
 

Public Member Functions

 ModelPrs_Geometry ()
 Constructor. More...
 
 ~ModelPrs_Geometry ()
 Destructor.
 
void Accept (ModelPrs_GeometryVisitor &theVisitor) const
 Accepts a visitior.
 
ModelPrs_GeometryType Type () const
 
 ModelPrs_Geometry (const ImplType *theImpl)
 Constructor.
 
- Public Member Functions inherited from cadex::Base_PublicObject
 Base_PublicObject ()
 Constructor. More...
 
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified. More...
 
 operator bool () const
 Casts the object to the bool type. More...
 
internal::Base_HandledObject * Impl () const
 Return a handle to backend (reserved for internal use).
 
const internal::Base_Handle & HImpl () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 
bool operator== (const Base_PublicObject &theObject) const
 
bool operator!= (const Base_PublicObject &theObject) const
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::Base_PublicObject
 Base_PublicObject (const internal::Base_HandledObject *theObject)
 Constructor (reserved for internal use).
 
template<typename T >
T * GetOrCreateImpl ()
 Reserved for internal use.
 

Detailed Description

Defines a drawable geometry.

Warning
This class is a part of Visualization Toolkit add-on, which is licensed separately from the base CAD Exchanger SDK.

ModelPrs_Geometry encapsulates a drawable data. The next data may be presented like ModelPrs_Geometry:

A geometry creates by internal implementation of ModelPrs_SceneNodeFactory.

See also
ModelPrs_SceneNode::Geometry()

A geometry contains a shared pointer to its internal implementation, so simple copying an object will just copy a shared pointer. Therefore any modification of the copied object will propagate to original object.

See also
Using pimpl pattern

Constructor & Destructor Documentation

◆ ModelPrs_Geometry()

cadex::ModelPrs_Geometry::ModelPrs_Geometry ( )

Constructor.

Creates an empty object (see IsNull()).