CFx SDK Documentation 2024 SP0
|
#include <GiPalette.h>
Public Member Functions | |
OdGiGrayRamp (OdInt32 nGridDivs=2, float fIntensity=1.0f, OdInt32 nBaseOffset=0) | |
virtual OdRxObjectPtr | clone () const |
OdSmartPtr< OdGiGrayRamp > | cloneIfNeed () const |
OdInt32 | baseOffset () const |
OdInt32 | gridDivisions () const |
float | intensity () const |
OdInt32 | dimension () const |
ODCOLORREF | color (OdInt32 nColor) const |
OdInt32 | closestMatch (ODCOLORREF cref) const |
Public Member Functions inherited from OdStaticRxObject< OdRxObject > | |
void | addRef () |
void | release () |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Static Public Member Functions | |
static OdSmartPtr< OdGiGrayRamp > | createDynamic (OdInt32 nGridDivs=2, float fIntensity=1.0f, OdInt32 nBaseOffset=0) |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
Protected Member Functions | |
virtual bool | isDynamic () const |
void | validate () |
Protected Attributes | |
OdInt32 | m_nBaseOffset |
OdInt32 | m_nGridDivs |
float | m_fIntensity |
OdInt32 | m_nDim |
This class represents shades of gray ramp. Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 198 of file GiPalette.h.
|
inline |
Definition at line 208 of file GiPalette.h.
|
inline |
Returns base offset for color entries.
Definition at line 223 of file GiPalette.h.
|
virtual |
Creates a clone of this object, and returns a pointer to the clone.
Reimplemented from OdRxObject.
|
inline |
Definition at line 218 of file GiPalette.h.
OdInt32 OdGiGrayRamp::closestMatch | ( | ODCOLORREF | cref | ) | const |
Compute closest gray ramp subdivision index.
cref | [in] Input color. |
ODCOLORREF OdGiGrayRamp::color | ( | OdInt32 | nColor | ) | const |
Returns color for specified gray ramp subdivision.
nColor | [in] Index of gray ramp subdivision. |
|
static |
|
inline |
Returns total number of gray ramp subdivisions.
Definition at line 235 of file GiPalette.h.
|
inline |
Returns gray ramp divisions count.
Definition at line 227 of file GiPalette.h.
|
inline |
Returns gray ramp intensity.
Definition at line 231 of file GiPalette.h.
|
inlineprotectedvirtual |
Definition at line 206 of file GiPalette.h.
|
protected |
|
protected |
Definition at line 203 of file GiPalette.h.
|
protected |
Definition at line 201 of file GiPalette.h.
|
protected |
Definition at line 204 of file GiPalette.h.
|
protected |
Definition at line 202 of file GiPalette.h.