CComponent¶
-
class
Lib3MF
::
CComponent
: public CBase¶ -
PObject
GetObjectResource
()¶ Returns the Resource Instance of the component.
- Returns
filled with the Resource Instance.
-
Lib3MF_uint32
GetObjectResourceID
()¶ Returns the UniqueResourceID of the component.
- Returns
returns the UniqueResourceID.
-
std::string
GetUUID
(bool &bHasUUID)¶ returns, whether a component has a UUID and, if true, the component’s UUID
- Parameters
bHasUUID – flag whether the component has a UUID
- Returns
the UUID as string of the form ‘xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx’
-
void
SetUUID
(const std::string &sUUID)¶ sets the component’s UUID
- Parameters
sUUID – the UUID as string of the form ‘xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx’
-
bool
HasTransform
()¶ Returns, if the component has a different transformation than the identity matrix
- Returns
if true is returned, the transformation is not equal than the identity
-
sTransform
GetTransform
()¶ Returns the transformation matrix of the component.
- Returns
filled with the component transformation matrix
-
void
SetTransform
(const sTransform &Transform)¶ Sets the transformation matrix of the component.
- Parameters
Transform – new transformation matrix
-
PObject
-
typedef std::shared_ptr<CComponent>
Lib3MF
::
PComponent
¶ Shared pointer to CComponent to easily allow reference counting.