CFx SDK Documentation 2024 SP0
|
#include <GiPlotStyleDefs.h>
Public Types | |
typedef OdUInt16 | PsFillstyleGDI[8] |
typedef OdUInt8 | PsFillstyleOGL[128] |
Public Member Functions | |
OdGiPsFillstyles () | |
~OdGiPsFillstyles () | |
const OdHatchPattern * | getGiDefinitions (OdHatchPattern *pPats, double scale, OdUInt32 nFirst=OdPs::kFsSolid+1, OdUInt32 nPats=OdPs::kFsLast - OdPs::kFsSolid - 1) const |
const OdHatchPattern & | getGiDefinition (OdPs::FillStyle psFs, OdHatchPattern &pPat, double scale) const |
OdUInt8Array | rasterizeFillstyle (OdPs::FillStyle psFs, OdUInt32 nOffsetX=0, OdUInt32 nOffsetY=0, OdUInt32 nWidth=32, OdUInt32 nHeight=32, OdUInt8 fpValue=0xFF) const |
OdGiRasterImagePtr | rasterizeFillstyleImage (OdPs::FillStyle psFs, OdUInt32 nOffsetX=0, OdUInt32 nOffsetY=0, OdUInt32 nWidth=32, OdUInt32 nHeight=32, ODCOLORREF backgroundColor=ODRGB(0, 0, 0), ODCOLORREF foregroundColor=ODRGB(255, 255, 255)) const |
const PsFillstyleGDI * | getGDIDefinitions () const |
const PsFillstyleGDI & | getGDIDefinition (OdPs::FillStyle psFs) const |
const PsFillstyleOGL * | getOpenGLDefinitions () const |
const PsFillstyleOGL & | getOpenGLDefinition (OdPs::FillStyle psFs) const |
Protected Member Functions | |
OdUInt32 | fsCorr (OdPs::FillStyle fs) const |
bool | fsRigth (OdPs::FillStyle fs) const |
void | internalFillHatchDef (OdPs::FillStyle psFs, OdHatchPattern &pPat, double scale) const |
OdGiRasterImagePtr | internalMakeImage (const OdUInt8 *pPixels, OdUInt32 nWidth, OdUInt32 nHeight, ODCOLORREF backgroundColor=ODRGB(0, 0, 0), ODCOLORREF foregroundColor=ODRGB(255, 255, 255)) const |
Static Protected Attributes | |
static const PsFillstyleGDI | g_gdiFillstyleDef [OdPs::kFsLast - OdPs::kFsSolid] |
static const PsFillstyleOGL | g_oglFillstyleDef [OdPs::kFsLast - OdPs::kFsSolid] |
This class represents PlotStyle fillstyles definitions. Corresponding C++ library: TD_Gi <group OdGi_Classes>
Definition at line 235 of file GiPlotStyleDefs.h.
typedef OdUInt16 OdGiPsFillstyles::PsFillstyleGDI[8] |
Type definition represents PlotStyle fillstyle in Windows GDI-compatible format.
Definition at line 241 of file GiPlotStyleDefs.h.
typedef OdUInt8 OdGiPsFillstyles::PsFillstyleOGL[128] |
Type definition represents PlotStyle fillstyle in OpenGL-compatible format.
Definition at line 245 of file GiPlotStyleDefs.h.
OdGiPsFillstyles::OdGiPsFillstyles | ( | ) |
Default constructor for OdGiPsLinetypes class.
OdGiPsFillstyles::~OdGiPsFillstyles | ( | ) |
Destructor for the OdGiPsFillstyles class.
|
inlineprotected |
Definition at line 247 of file GiPlotStyleDefs.h.
|
inlineprotected |
Definition at line 248 of file GiPlotStyleDefs.h.
const PsFillstyleGDI & OdGiPsFillstyles::getGDIDefinition | ( | OdPs::FillStyle | psFs | ) | const |
Retrieves reference to PlotStyle fillstyle definition in Windows GDI-compatible format.
psFs | [in] Fillstyle number. |
const PsFillstyleGDI * OdGiPsFillstyles::getGDIDefinitions | ( | ) | const |
Retrieves pointer to a set of PlotStyle fillstyle definitions in Windows GDI-compatible format.
const OdHatchPattern & OdGiPsFillstyles::getGiDefinition | ( | OdPs::FillStyle | psFs, |
OdHatchPattern & | pPat, | ||
double | scale | ||
) | const |
Fills PlotStyle fillstyle definition.
psFs | [in] Fillstyle number. |
pPat | [out] Reference onto pattern to fill. |
scale | [in] Pattern scale multiplier. |
const OdHatchPattern * OdGiPsFillstyles::getGiDefinitions | ( | OdHatchPattern * | pPats, |
double | scale, | ||
OdUInt32 | nFirst = OdPs::kFsSolid+1 , |
||
OdUInt32 | nPats = OdPs::kFsLast - OdPs::kFsSolid - 1 |
||
) | const |
Fills array of PlotStyle fillstyle definitions in Gi format.
pPats | [out] Array of patterns to fill. |
scale | [in] Patterns scale multiplier. |
nFirst | [in] First PlotStyle fillstyle to fill. |
nPats | [in] Number of PlotStyle fillstyles to fill. |
const PsFillstyleOGL & OdGiPsFillstyles::getOpenGLDefinition | ( | OdPs::FillStyle | psFs | ) | const |
Retrieves reference to PlotStyle fillstyle definition in OpenGL-compatible format.
psFs | [in] Fillstyle number. reference to PlotStyle fillstyle definition in OpenGL-compatible format. |
const PsFillstyleOGL * OdGiPsFillstyles::getOpenGLDefinitions | ( | ) | const |
Retrieves pointer to a set of PlotStyle fillstyle definitions in OpenGL-compatible format.
|
protected |
|
protected |
OdUInt8Array OdGiPsFillstyles::rasterizeFillstyle | ( | OdPs::FillStyle | psFs, |
OdUInt32 | nOffsetX = 0 , |
||
OdUInt32 | nOffsetY = 0 , |
||
OdUInt32 | nWidth = 32 , |
||
OdUInt32 | nHeight = 32 , |
||
OdUInt8 | fpValue = 0xFF |
||
) | const |
Rasterizes a fillstyle into set of bytes.
psFs | [in] Fillstyle number. |
nOffsetX | [in] Horizontal pattern offset. |
nOffsetY | [in] Vertical pattern offset. |
nWidth | [in] Width of image to fill. |
nHeight | [in] Height of image to fill. |
fpValue | [in] Value which will be set for enabled fillstyle pattern bytes. |
OdGiRasterImagePtr OdGiPsFillstyles::rasterizeFillstyleImage | ( | OdPs::FillStyle | psFs, |
OdUInt32 | nOffsetX = 0 , |
||
OdUInt32 | nOffsetY = 0 , |
||
OdUInt32 | nWidth = 32 , |
||
OdUInt32 | nHeight = 32 , |
||
ODCOLORREF | backgroundColor = ODRGB(0, 0, 0) , |
||
ODCOLORREF | foregroundColor = ODRGB(255, 255, 255) |
||
) | const |
Rasterizes a fillstyle into monochrome raster image.
psFs | [in] Fillstyle number. |
nOffsetX | [in] Horizontal pattern offset. |
nOffsetY | [in] Vertical pattern offset. |
nWidth | [in] Width of image to fill. |
nHeight | [in] Height of image to fill. |
backgroundColor | [in] Background color (fillstyle holes will be drawn using this color). |
foregroundColor | [in] Foreground color (fillstyle points will be drawn using this color). |
|
staticprotected |
Definition at line 249 of file GiPlotStyleDefs.h.
|
staticprotected |
Definition at line 250 of file GiPlotStyleDefs.h.