CBuildItem

class Lib3MF::CBuildItem : public CBase
PObject GetObjectResource()

Retrieves the object resource associated to a build item

Returns

returns the associated resource instance

std::string GetUUID(bool &bHasUUID)

returns, whether a build item has a UUID and, if true, the build item’s UUID

Parameters

bHasUUID – flag whether the build item has a UUID

Returns

the UUID as string of the form ‘xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx’

void SetUUID(const std::string &sUUID)

sets the build item’s UUID

Parameters

sUUID – the UUID as string of the form ‘xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx’

Lib3MF_uint32 GetObjectResourceID()

Retrieves the object UniqueResourceID associated to a build item

Returns

returns the UniqueResourceID of the object

bool HasObjectTransform()

Checks, if a build item has a non-identity transformation matrix

Returns

returns true, if the transformation matrix is not the identity

sTransform GetObjectTransform()

Retrieves a build item’s transformation matrix.

Returns

returns the transformation matrix

void SetObjectTransform(const sTransform &Transform)

Sets a build item’s transformation matrix.

Parameters

Transform – new transformation matrix

std::string GetPartNumber()

Retrieves a build item’s part number string

Returns

Returns a build item’s part number string

void SetPartNumber(const std::string &sSetPartnumber)

Sets a build item’s part number string

Parameters

sSetPartnumber – new part number string for referencing parts from the outside world

PMetaDataGroup GetMetaDataGroup()

Returns the metadatagroup of this build item

Returns

returns an Instance of the metadatagroup of this build item

sBox GetOutbox()

Returns the outbox of a build item

Returns

Outbox of this build item

typedef std::shared_ptr<CBuildItem> Lib3MF::PBuildItem

Shared pointer to CBuildItem to easily allow reference counting.