Base class for part, instance and assembly. More...
#include <cadex/ModelData/ModelElement.hxx>
Public Member Functions | |
| void | SetName (const UTF16String &theName) |
| Sets a name. | |
| UTF16String | Name () const |
| Returns a name. | |
| void | SetUuid (const Uuid &theUuid) |
| Sets an object uuid. | |
| cadex::Uuid | Uuid () const |
| Returns an object uuid. | |
| void | SetPMI (const PMI::Data &thePMI) |
| Sets the object PMI. | |
| PMI::Data | PMI () const |
| Returns the object PMI. | |
| void | Accept (ModelElementVisitor &theVisitor) const |
| Accepts an element visitor. | |
Public Member Functions inherited from cadex::BaseObject | |
| size_t | Id () const |
| Return unique identifier of public object. | |
| internal::BaseObjectImpl * | Impl () const |
| bool | IsNull () const |
| operator bool () const | |
| template<typename T > | |
| bool | IsOfType () const |
| template<typename T > | |
| T * | Impl () const |
| Reserved for internal use. | |
Static Public Member Functions | |
| static bool | CompareType (const BaseObject &theObject) |
| Returns true if theObject is a model element. | |
Protected Member Functions | |
| ModelElement (const ImplType &theImpl) | |
Protected Member Functions inherited from cadex::BaseObject | |
| BaseObject (const ImplType &theImpl) | |
Additional Inherited Members | |
Public Types inherited from cadex::BaseObject | |
| typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
Base class for part, instance and assembly.
| void cadex::ModelData::ModelElement::Accept | ( | ModelElementVisitor & | theVisitor | ) | const |
Accepts an element visitor.
The order of visiting depends on the type of this object:
| UTF16String cadex::ModelData::ModelElement::Name | ( | ) | const |
Returns a name.
Returns empty string if the model element has no name (by default).
| PMI::Data cadex::ModelData::ModelElement::PMI | ( | ) | const |
Returns the object PMI.
Returns nullable PMI if the object has no PMI (by default).
| void cadex::ModelData::ModelElement::SetName | ( | const UTF16String & | theName | ) |
| void cadex::ModelData::ModelElement::SetPMI | ( | const PMI::Data & | thePMI | ) |
Sets the object PMI.
| void cadex::ModelData::ModelElement::SetUuid | ( | const Uuid & | theUuid | ) |
Sets an object uuid.
Must not be called on IsNull() object. Otherwise behavior is undefined.
| Uuid cadex::ModelData::ModelElement::Uuid | ( | ) | const |
Returns an object uuid.
Returns nullable uuid if the object has no uuid (by default).