CVolumeData

class Lib3MF::CVolumeData : public CResource
PVolumeDataComposite GetComposite()

Returns the VolumeDataComposite of this VolumeData instance

Returns:

filled with the VolumeDataComposite of this VolumeData instance.

PVolumeDataComposite CreateNewComposite()

Creates a new VolumeDataComposite for this VolumeData instance

Returns:

The new VolumeDataComposite of this VolumeData instance.

void RemoveComposite()

Removes the VolumeDataComposite of this VolumeData instance

PVolumeDataColor GetColor()

Returns the VolumeDataColor of this VolumeData instance

Returns:

filled with the VolumeDataColor of this VolumeData instance.

PVolumeDataColor CreateNewColor(classParam<CFunction> pTheFunction)

Creates a new VolumeDataColor for this VolumeData instance

Parameters:

pTheFunction – Function used in this element

Returns:

The new VolumeDataColor of this VolumeData instance.

void RemoveColor()

Removes the VolumeDataColor of this VolumeData instance

Lib3MF_uint32 GetPropertyCount()

Returns the number of VolumeDataProperty

Returns:

the number of VolumeDataProperty-elements within this VolumeData

PVolumeDataProperty GetProperty(const Lib3MF_uint32 nIndex)

Returns the VolumeDataProperty at a given Index

Parameters:

nIndex – the index of the VolumeDataProperty to be returned.

Returns:

the VolumeDataProperty at the given index.

PVolumeDataProperty AddPropertyFromFunction(const std::string &sName, classParam<CFunction> pTheFunction)

Adds a new VolumeDataProperty from a Function

Parameters:
  • sName – the qualified name (namespace+name) of the Property

  • pTheFunction – Function used in this element

Returns:

the newly created VolumeDataProperty.

void RemoveProperty(const Lib3MF_uint32 nIndex)

Removes the VolumeDataProperty with a given index

Parameters:

nIndex – the index of the VolumeDataProperty to be removed.

typedef std::shared_ptr<CVolumeData> Lib3MF::PVolumeData

Shared pointer to CVolumeData to easily allow reference counting.