CComponentsObject¶
-
class
Lib3MF
::
CComponentsObject
: public CObject¶ -
PComponent
AddComponent
(CObject *pObjectResource, const sTransform &Transform)¶ Adds a new component to a components object.
- Parameters
pObjectResource – object to add as component. Must not lead to circular references!
Transform – optional transform matrix for the component.
- Returns
new component instance
-
PComponent
GetComponent
(const Lib3MF_uint32 nIndex)¶ Retrieves a component from a component object.
- Parameters
nIndex – index of the component to retrieve (0 to componentcount - 1)
- Returns
component instance
-
Lib3MF_uint32
GetComponentCount
()¶ Retrieves a component count of a component object.
- Returns
returns the component count
-
PComponent
-
typedef std::shared_ptr<CComponentsObject>
Lib3MF
::
PComponentsObject
¶ Shared pointer to CComponentsObject to easily allow reference counting.