Defines a leaf node in the scene graph hiearchy. More...
#include <cadex/ModelData/Part.hxx>
Public Member Functions | |
Part (Initialized) | |
Part (const UTF16String &theName) | |
void | AddBody (const Body &theBody) |
Adds a body. | |
void | AddBodies (const std::vector< Body > &theBodies) |
Adds a list of bodies. | |
const std::vector< Body > & | Bodies () const |
size_t | NumberOfBodies () const |
Returns a number of bodies. | |
![]() | |
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 | Accept (ModelElementVisitor &theVisitor) const |
Accepts an element visitor. | |
![]() | |
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) |
![]() | |
static bool | CompareType (const BaseObject &theObject) |
Returns true if theObject is a model element. | |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
![]() | |
ModelElement (const ImplType &theImpl) | |
![]() | |
BaseObject (const ImplType &theImpl) | |
Defines a leaf node in the scene graph hiearchy.
A part corresponds to mechanical part or a product in the product structure hieararchy.
A part may contain one or more bodies (Body).