CFx SDK Documentation 2024 SP0
|
#include <DbArgbColor.h>
Public Member Functions | |
ArgbColor () | |
ArgbColor (ColorModelHSL color) | |
ArgbColor (ODCOLORREF color) | |
void | setColor (const ColorModelHSL &color) |
ColorModelHSL | color () const |
ArgbColor | gradientRgb (const ArgbColor &endColor, const double ratio) const |
ArgbColor | gradientRgb (const ColorModelHSL &endColor, const double ratio) const |
void | fromCOLORREF (ODCOLORREF) |
ODCOLORREF | toCOLORREF () const |
Static Public Member Functions | |
static ArgbColor | COLORREFToArgb (ODCOLORREF color) |
This class represents the color for point cloud entities.
Corresponding C++ library: AcDbPointCloudObj
<group OdDbPointCloud_Classes>
Definition at line 78 of file DbArgbColor.h.
ArgbColor::ArgbColor | ( | ) |
Default constructor.
ArgbColor::ArgbColor | ( | ColorModelHSL | color | ) |
Constructor. Creates an ArgbColor object from an HSL color.
color | [in] Color to be set to a new object. |
ArgbColor::ArgbColor | ( | ODCOLORREF | color | ) |
Constructor. Creates an ArgbColor object from color reference passed in.
color | [in] Color reference. |
ColorModelHSL ArgbColor::color | ( | ) | const |
Returns the current HSL color set to this ArgbColor object.
|
static |
void ArgbColor::fromCOLORREF | ( | ODCOLORREF | ) |
Converts ODCOLORREF to HSL color.
color | [in] Color as ODCOLORREF. |
Creates a gradient from current color to endColor at a given rate.
endColor | [in] Color to which a gradient will fade. |
ratio | [in] Parameter which defines how quickly a gradient fades. |
ArgbColor ArgbColor::gradientRgb | ( | const ColorModelHSL & | endColor, |
const double | ratio | ||
) | const |
Creates a gradient from current color to endColor at a given rate.
endColor | [in] HSL color to which a gradient will fade. |
ratio | [in] Parameter which defines how quickly a gradient fades. |
void ArgbColor::setColor | ( | const ColorModelHSL & | color | ) |
Sets a color to this ArgbColor object.
color | [in] New HSL color to be set. |
ODCOLORREF ArgbColor::toCOLORREF | ( | ) | const |
Converts HSL color to ODCOLORREF.