Defines a PMI graphical element. More...
#include <cadex/ModelData_PMIGraphicalElement.hxx>
Classes | |
class | ComponentIterator |
Iterator over added components. More... | |
Public Types | |
typedef cadex::internal::ModelData_PMIGraphicalElementImpl | ImplType |
![]() | |
typedef int | IdType |
Defines a type identifier. | |
Public Member Functions | |
ModelData_PMIGraphicalElement () | |
Constructor. | |
ModelData_PMIGraphicalElement (initialized) | |
Constructor. | |
ModelData_PMIGraphicalElement (ImplType *theImpl) | |
Constructor (reserved for internal use). | |
void | SetPlane (const ModelData_PMIPlane &thePlane) |
ModelData_PMIPlane | Plane () const |
void | AddComponent (const ModelData_PMIGraphicalElementComponent &theComponent) |
Adds a component. | |
bool | IsEmpty () const |
Returns true if no graphical element components were added. | |
size_t | NumberOfComponents () const |
Returns number of added components. | |
void | Accept (ModelData_PMIGraphicalElementComponentVisitor &theVisitor) const |
Accepts the visitor. | |
![]() | |
ModelData_BaseObject () | |
Constructor. | |
IdType | TypeId () const |
Returns an object type id. | |
template<typename T > | |
bool | IsOfType () const |
Returns true if the object has a type T. | |
void | SetName (const Base_UTF16String &theName) |
Sets an object name. | |
Base_UTF16String | Name () const |
void | SetUuid (const Base_Uuid &theUuid) |
Base_Uuid | Uuid () const |
void | Nullify () |
Resets reference to implementation object. | |
bool | IsNull () const |
Returns true if the object is nullified. | |
operator bool () const | |
Casts the object to the bool type. | |
internal::ModelData_BaseObjectImpl * | Impl () const |
Return a handle to backend (reserved for internal use). | |
Static Public Member Functions | |
static IdType | GetTypeId () |
Additional Inherited Members | |
![]() | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl) | |
Constructor (reserved for internal use). | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl, const Base_UTF16String &theName) | |
Constructor (reserved for internal use). | |
template<typename T > | |
T * | GetOrCreateImpl () |
Reserved for internal use. | |
Defines a PMI graphical element.
An element contains a graphical presentation of PMI entity such as dimension or tolerance measurement.
The information to be presented can be stored in different ways: outlines, text or triangulation. There is a ModelData_PMIGraphicalElementComponent subclass for each presentation mechanism. An element contains any number of components and plane.
cadex::ModelData_PMIGraphicalElement::ModelData_PMIGraphicalElement | ( | ) |
Constructor.
Creates uninitialized object, for which IsNull() returns true.
|
explicit |
Constructor.
Creates initialized object, for which IsNull() returns false.
void cadex::ModelData_PMIGraphicalElement::Accept | ( | ModelData_PMIGraphicalElementComponentVisitor & | theVisitor | ) | const |
Accepts the visitor.
The components are visited in the order in which they were added with the AddComponent() method.
bool cadex::ModelData_PMIGraphicalElement::IsEmpty | ( | ) | const |
Returns true if no graphical element components were added.
Returns true if IsNull().
size_t cadex::ModelData_PMIGraphicalElement::NumberOfComponents | ( | ) | const |