CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef __ODGIPALETTE_H__
25 #define __ODGIPALETTE_H__
120 : m_nBaseOffset(nBaseOffset)
121 , m_nGridDivs(nGridDivs)
122 , m_fIntensity(fIntensity)
196 : m_nBaseOffset(nBaseOffset)
197 , m_nGridDivs(nGridDivs)
198 , m_fIntensity(fIntensity)
266 return m_palette[nColor].m_color;
274 return m_palette[nColor].m_entryHelper;
284 m_palette[nColor].m_color = color;
293 m_palette[nColor].m_entryHelper = entryHelper;
301 return m_pColorCube.
get();
315 resetColorCube(
NULL);
323 return m_pGrayRamp.
get();
395 #endif //#ifndef __ODGIPALETTE_H__
OdInt32 baseOffset() const
void setRGB(OdInt32 _r, OdInt32 _g, OdInt32 _b)
const OdGiIntRGB & dimensions() const
OdInt32 gridDivisions() const
OdInt32 entryHelper(OdUInt32 nColor) const
const OdGiIntRGB & gridDivisions() const
OdInt32 ditheredMatch(ODCOLORREF cref, DtMatchResult &results) const
void setGrayRamp(const OdGiGrayRamp &grayRamp)
OdInt32 dimension() const
void resetColorCube(OdGiColorCube *pColorCube)
OdInt32 baseOffset() const
OdGiIntRGB(ODCOLORREF cref)
OdInt32 firstAvailableBlock(OdInt32 blockSize) const
bool isEqualTo(const OdGiPalette &pal2) const
void setGreen(OdInt32 _g)
bool install(const OdGiGrayRamp &gr)
OdGiColorCube(OdGiIntRGB nGridDivs=OdGiIntRGB(2, 2, 2), float fIntensity=1.0f, OdInt32 nBaseOffset=0)
bool install(const OdGiColorCube &cb)
void setEntryHelper(OdUInt32 nColor, OdInt32 entryHelper)
OdInt32 closestMatch(ODCOLORREF cref) const
OdInt32 closestMatch(ODCOLORREF cref) const
ODCOLORREF color(OdInt32 nColor) const
OdArray< PalEntry, OdMemoryAllocator< PalEntry > > PalEntryArray
ODCOLORREF color(OdUInt32 nColor) const
void setColor(ODCOLORREF cref)
void setColor(OdUInt32 nColor, ODCOLORREF color)
const OdGiColorCube * colorCube() const
OdGiIntRGB(OdInt32 _r, OdInt32 _g, OdInt32 _b)
OdInt32 closestMatch(ODCOLORREF cref, bool bThroughPal=false) const
OdSharedPtr< OdGiColorCube > m_pColorCube
void setColor(OdInt32 nColor, ODCOLORREF color)
void setColorCube(const OdGiColorCube &colorCube)
void resetGrayRamp(OdGiGrayRamp *pGrayRamp)
OdGiGrayRamp(OdInt32 nGridDivs=2, float fIntensity=1.0f, OdInt32 nBaseOffset=0)
const OdGiIntRGB & offsets() const
ODCOLORREF color(OdInt32 nColor) const
const OdGiGrayRamp * grayRamp() const
bool install(const OdGiPalette &pal2)
OdSharedPtr< OdGiGrayRamp > m_pGrayRamp
bool remove(const OdGiPalette &pal2)