CCompositeMaterials¶
-
class
Lib3MF
::
CCompositeMaterials
: public CResource¶ -
Lib3MF_uint32
GetCount
()¶ Retrieves the count of Composite-s in the CompositeMaterials.
- Returns
returns the count of Composite-s
-
void
GetAllPropertyIDs
(std::vector<Lib3MF_uint32> &PropertyIDsBuffer)¶ returns all the PropertyIDs of all Composite-Mixing Values in this CompositeMaterials
- Parameters
PropertyIDsBuffer – PropertyID of the Composite-Mixing Values in the CompositeMaterials.
-
PBaseMaterialGroup
GetBaseMaterialGroup
()¶ Obtains the BaseMaterialGroup instance of this CompositeMaterials.
- Returns
returns the BaseMaterialGroup instance of this CompositeMaterials
-
Lib3MF_uint32
AddComposite
(const CInputVector<sCompositeConstituent> &CompositeBuffer)¶ Adds a new Composite-Mixing Values to the CompositeMaterials.
- Parameters
CompositeBuffer – The Composite Constituents to be added as composite
- Returns
returns new PropertyID of the new Composite in the CompositeMaterials.
-
void
RemoveComposite
(const Lib3MF_uint32 nPropertyID)¶ Removes a Composite-Maxing Ratio from the CompositeMaterials.
- Parameters
nPropertyID – PropertyID of the Composite-Mixing Values in the CompositeMaterials to be removed.
-
void
GetComposite
(const Lib3MF_uint32 nPropertyID, std::vector<sCompositeConstituent> &CompositeBuffer)¶ Obtains a Composite-Maxing Ratio of this CompositeMaterials.
- Parameters
nPropertyID – the PropertyID of the Composite-Maxing Ratio in the CompositeMaterials.
CompositeBuffer – The Composite-Mixing Values with the given PropertyID
-
Lib3MF_uint32
-
typedef std::shared_ptr<CCompositeMaterials>
Lib3MF
::
PCompositeMaterials
¶ Shared pointer to CCompositeMaterials to easily allow reference counting.