This is the Color Info Set class. This is the read color definition Class.
It gathers all information about colors in the component.
More...
Inheritance diagram for Dtk_ColorInfosSet:Public Member Functions | |
| Dtk_Size_t | AddColor (const Dtk_ID inColorReadId, const Dtk_string &inColorName, const Dtk_RGB &inColorDef) |
| Add Color definition. More... | |
| Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
| Retrieves the dynamic entity type. More... | |
| virtual int | DtkDynamicType (const int &inId)=0 |
| virtual void | dump (FILE *file=stdout) |
| type_detk | get_type_detk () const |
| Dtk_ErrorStatus | GetColorDefinition (const Dtk_Size_t inColorPos, Dtk_RGB &outColorDef) const |
| Gets the ColorID giving its number. More... | |
| Dtk_ErrorStatus | GetColorID (const Dtk_Size_t inColorPos, Dtk_ID &outColorReadID) const |
| Gets the ColorID giving its number. More... | |
| Dtk_ErrorStatus | GetColorName (const Dtk_Size_t inColorPos, Dtk_string &outColorName) const |
| Gets the Color Name giving its number. More... | |
| Dtk_ErrorStatus | GetColorNameById (const Dtk_ID inColorReadId, Dtk_string &outColorName) const |
| Gets the Color Name giving the ID found iby infos->GetColorID(). More... | |
| Dtk_ErrorStatus | GetDefaultColor (Dtk_Int32 &outDefaultColor) const |
| Gets the default color number. More... | |
| Dtk_Size_t | GetNumColors () const |
| Retrieves the number of colors. More... | |
| virtual Dtk_Size_t | GetSize () const |
| Dtk_ErrorStatus | SetColorID (const Dtk_Size_t inColorPos, const Dtk_ID &inColorReadID) |
| Sets the ColorID giving its number. More... | |
| Dtk_ErrorStatus | SetColorName (const Dtk_Size_t inColorPos, const Dtk_string &inColorName) |
| Sets the Color Name giving its number. More... | |
| Dtk_ErrorStatus | SetDefaultColor (const Dtk_Int32 inDefaultColor) |
| Sets the default color number. More... | |
Static Public Member Functions | |
| static Dtk_ColorInfosSetPtr | Create (const Dtk_Size_t inNumColors) |
| Calls a constructor to allocate a new object. More... | |
| static Dtk_ColorInfosSet * | DtkDynamicCast (Dtk_Object *s) |
| Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
| enum | { _typeID = DTK_TYPE_OBJECT } |
| enum | { _typeID = DTK_TYPE_COLOR_INFOS_SET } |
Protected Member Functions | |
| virtual Dtk_Object * | Clone () |
| Dtk_ColorInfosSet (const Dtk_ColorInfosSet &s) | |
| Dtk_ColorInfosSet (const Dtk_Size_t inNumColors) | |
| ~Dtk_ColorInfosSet () | |
| Destructor. More... | |
Protected Attributes | |
| Dtk_Handle * | _Private |
| unsigned long | count_ |
This is the Color Info Set class. This is the read color definition Class.
It gathers all information about colors in the component.
|
protected |
|
protected |
|
protected |
Destructor.
| Dtk_Size_t Dtk_ColorInfosSet::AddColor | ( | const Dtk_ID | inColorReadId, |
| const Dtk_string & | inColorName, | ||
| const Dtk_RGB & | inColorDef | ||
| ) |
Add Color definition.
| inColorReadId | the color number. |
| inColorName | the color name. |
| inColorDef | the color RGB definition. |
|
protectedvirtual |
|
static |
Calls a constructor to allocate a new object.
|
static |
Performs a dynamic cast - doesn't need RTTI -.
Retrieves the dynamic entity type.
|
pure virtualinherited |
Implemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshPolyline, Dtk_MeshSurface, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Constraint, Dtk_ConstraintReference, Dtk_AxisSystem, Dtk_Preview, Dtk_Entity, Dtk_picture, Dtk_OverrideSet, Dtk_OverrideInfo, Dtk_MainDoc, Dtk_Component, Dtk_Node, Dtk_DocElement, Dtk_Log, and Dtk_Properties.
|
virtualinherited |
| type_detk Dtk_ColorInfosSet::get_type_detk | ( | ) | const |
| Dtk_ErrorStatus Dtk_ColorInfosSet::GetColorDefinition | ( | const Dtk_Size_t | inColorPos, |
| Dtk_RGB & | outColorDef | ||
| ) | const |
Gets the ColorID giving its number.
| inColorPos | the color number. |
| outColorDef | the color id |
| Dtk_ErrorStatus Dtk_ColorInfosSet::GetColorID | ( | const Dtk_Size_t | inColorPos, |
| Dtk_ID & | outColorReadID | ||
| ) | const |
Gets the ColorID giving its number.
| inColorPos | the color number. |
| outColorReadID | the color id |
| Dtk_ErrorStatus Dtk_ColorInfosSet::GetColorName | ( | const Dtk_Size_t | inColorPos, |
| Dtk_string & | outColorName | ||
| ) | const |
Gets the Color Name giving its number.
| inColorPos | the color number. |
| inColorName | the color name or empty string if any error. |
| Dtk_ErrorStatus Dtk_ColorInfosSet::GetColorNameById | ( | const Dtk_ID | inColorReadId, |
| Dtk_string & | outColorName | ||
| ) | const |
Gets the Color Name giving the ID found iby infos->GetColorID().
| inColorReadId | the color ID. |
| outColorName | the color name or empty string if any error. |
| Dtk_ErrorStatus Dtk_ColorInfosSet::GetDefaultColor | ( | Dtk_Int32 & | outDefaultColor | ) | const |
Gets the default color number.
| outDefaultColor | the color number or -1 if any error. |
| Dtk_Size_t Dtk_ColorInfosSet::GetNumColors | ( | ) | const |
Retrieves the number of colors.
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Entity, and Dtk_Info.
| Dtk_ErrorStatus Dtk_ColorInfosSet::SetColorID | ( | const Dtk_Size_t | inColorPos, |
| const Dtk_ID & | inColorReadID | ||
| ) |
Sets the ColorID giving its number.
| inColorPos | the color number. |
| inColorReadID | the color id. |
| Dtk_ErrorStatus Dtk_ColorInfosSet::SetColorName | ( | const Dtk_Size_t | inColorPos, |
| const Dtk_string & | inColorName | ||
| ) |
Sets the Color Name giving its number.
| inColorPos | the color number. |
| inColorName | the color name. |
| Dtk_ErrorStatus Dtk_ColorInfosSet::SetDefaultColor | ( | const Dtk_Int32 | inDefaultColor | ) |
Sets the default color number.
| inDefaultColor | the color number. |
|
protected |
|
protectedinherited |