API Reference > OdCm Classes > OdCmColor Class
OdCmColor Class
OdCmColor
Syntax
C++
class OdCmColor : public OdCmColorBase;

CmColor.h

 

This class implements Color object that represents the unnamed and named colors specified by the byLayer, byBlock, byColor, byACI, byPen, Foreground, byDgnIndex, or None color methods. 

The OdCmEntityColor class, the OdCmColorBase class

 
Name 
Description 
 
Empty destructor. 
 
This is the overview for the OdCmColor constructor overload. 
 
Name 
Description 
 
This is MaxColorIndex, a member of class OdCmColor. 
 
Name 
Description 
 
Perform an audit operation on this object.
 
 
blue 
Returns the value of the blue component of this color. 
 
Returns the current book name. 
 
Returns the current color value as integer. 
 
Returns the color index (ACI) of the entity color object. 
 
Returns the color method of this color. 
 
Returns the name of the current color. 
 
If colorName isn't empty, returns it as a string. Otherwise returns color method as a string. 
 
Reads the .dwg file format data of this object from the specified file.
 
 
This is dwgInAsTrueColor, a member of class OdCmColor. 
 
Writes the .dwg file format data of this object to the specified filer.
 
 
This is dwgOutAsTrueColor, a member of class OdCmColor. 
 
Reads the DXF format data of this object from the specified filer.
 
 
Writes the DXF format data of this object to the specified filer.
 
 
Returns the OdCmEntityColor settings of the database color object. 
 
Returns the description string of the database color object. 
 
Returns a dictionary key based on the color name and book name of the database color object. 
 
Returns the explanation string of the database color object. 
 
Returns the value of the green component of this color. 
 
Checks if the color is specified by an index (ACI) of a color palette (color method of this color is set to "kByACI"). 
 
Checks if the color is specified by the block object in which the object is contained (color method of this color is set to "kByBlock", or it is set to "kByACI" and ACI color method is "kACIbyBlock"). 
 
Checks if the color is specified by an RGB value (color method of this color is set to "kByColor"). 
 
Checks if the color is specified by an index of a .dgn color table (color method of this color is set to "kByDgnIndex").
 
 
Checks if the color is specified by the layer object on which the object resides (color method of this color is set to "kByLayer", or it is set to "kByACI" and ACI color method is "kACIbyLayer"). 
 
Checks if the color is the same as the foreground color (color method of this color is set to "kForeground", or it is set to "kByACI" and ACI color method is "kACIforeground"). 
 
Checks if the color is absent (color method of this color is set to "kNone", or it is set to "kByACI" and ACI color method is "kACInone"). 
 
red 
Returns the value of the red component of this color. 
 
Sets the blue component of this color.
 
 
Sets a color and color method from an integer value.
 
 
Sets the color index (ACI) of a color palette and sets the color method to byACI for the entity color object.
 
 
Sets a color method for this color.
 
 
Sets the green component of this color.
 
 
Sets the color name and the book name.
 
 
Sets the book name and color name for the dictionary keyword.
 
 
Sets the red component of this color.
 
 
Sets color using RGB values. Color method is set to "kByColor".
 
 
Name 
Description 
 
!= 
This is the overview for the != operator overload. 
 
= 
This is the overview for the = operator overload. 
 
== 
This is the overview for the == operator overload. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.