CMultiPropertyGroup¶
-
class
Lib3MF
::
CMultiPropertyGroup
: public CResource¶ -
Lib3MF_uint32
GetCount
()¶ Retrieves the count of MultiProperty-s in the MultiPropertyGroup.
- Returns
returns the count of MultiProperty-s
-
void
GetAllPropertyIDs
(std::vector<Lib3MF_uint32> &PropertyIDsBuffer)¶ returns all the PropertyIDs of all MultiProperty-s in this MultiPropertyGroup
- Parameters
PropertyIDsBuffer – PropertyID of the MultiProperty-s in the MultiPropertyGroup.
-
Lib3MF_uint32
AddMultiProperty
(const CInputVector<Lib3MF_uint32> &PropertyIDsBuffer)¶ Adds a new MultiProperty to the MultiPropertyGroup.
- Parameters
PropertyIDsBuffer – The PropertyIDs of the new MultiProperty.
- Returns
returns the PropertyID of the new MultiProperty in the MultiPropertyGroup.
-
void
SetMultiProperty
(const Lib3MF_uint32 nPropertyID, const CInputVector<Lib3MF_uint32> &PropertyIDsBuffer)¶ Sets the PropertyIDs of a MultiProperty.
- Parameters
nPropertyID – the PropertyID of the MultiProperty to be changed.
PropertyIDsBuffer – The new PropertyIDs of the MultiProperty
-
void
GetMultiProperty
(const Lib3MF_uint32 nPropertyID, std::vector<Lib3MF_uint32> &PropertyIDsBuffer)¶ Obtains the PropertyIDs of a MultiProperty.
- Parameters
nPropertyID – the PropertyID of the MultiProperty to be queried.
PropertyIDsBuffer – The PropertyIDs of the MultiProperty
-
void
RemoveMultiProperty
(const Lib3MF_uint32 nPropertyID)¶ Removes a MultiProperty from this MultiPropertyGroup.
- Parameters
nPropertyID – the PropertyID of the MultiProperty to be removed.
-
Lib3MF_uint32
GetLayerCount
()¶ Retrieves the number of layers of this MultiPropertyGroup.
- Returns
returns the number of layers
-
Lib3MF_uint32
AddLayer
(const sMultiPropertyLayer &TheLayer)¶ Adds a MultiPropertyLayer to this MultiPropertyGroup.
- Parameters
TheLayer – The MultiPropertyLayer to add to this MultiPropertyGroup
- Returns
returns the index of this MultiPropertyLayer
-
sMultiPropertyLayer
GetLayer
(const Lib3MF_uint32 nLayerIndex)¶ Obtains a MultiPropertyLayer of this MultiPropertyGroup.
- Parameters
nLayerIndex – The Index of the MultiPropertyLayer queried
- Returns
The MultiPropertyLayer with index LayerIndex within MultiPropertyGroup
-
void
RemoveLayer
(const Lib3MF_uint32 nLayerIndex)¶ Removes a MultiPropertyLayer from this MultiPropertyGroup.
- Parameters
nLayerIndex – The Index of the MultiPropertyLayer to be removed
-
Lib3MF_uint32
-
typedef std::shared_ptr<CMultiPropertyGroup>
Lib3MF
::
PMultiPropertyGroup
¶ Shared pointer to CMultiPropertyGroup to easily allow reference counting.