CColorGroup

class Lib3MF::CColorGroup : public CResource
Lib3MF_uint32 GetCount()

Retrieves the count of base materials in this Color Group.

Returns:

returns the count of colors within this color group.

void GetAllPropertyIDs(std::vector<Lib3MF_uint32> &PropertyIDsBuffer)

returns all the PropertyIDs of all colors within this group

Parameters:

PropertyIDsBuffer – PropertyID of the color in the color group.

Lib3MF_uint32 AddColor(const sColor &TheColor)

Adds a new value.

Parameters:

TheColor – The new color

Returns:

PropertyID of the new color within this color group.

void RemoveColor(const Lib3MF_uint32 nPropertyID)

Removes a color from the color group.

Parameters:

nPropertyID – PropertyID of the color to be removed from the color group.

void SetColor(const Lib3MF_uint32 nPropertyID, const sColor &TheColor)

Sets a color value.

Parameters:
  • nPropertyID – PropertyID of a color within this color group.

  • TheColor – The color

sColor GetColor(const Lib3MF_uint32 nPropertyID)

Sets a color value.

Parameters:

nPropertyID – PropertyID of a color within this color group.

Returns:

The color

typedef std::shared_ptr<CColorGroup> Lib3MF::PColorGroup

Shared pointer to CColorGroup to easily allow reference counting.