CFx SDK Documentation  2022 SP0
Public Types | Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
OdGiPsFillstyles Class Reference

#include <GiPlotStyleDefs.h>

Public Types

typedef OdUInt16 PsFillstyleGDI[8]
 
typedef OdUInt8 PsFillstyleOGL[128]
 

Public Member Functions

 OdGiPsFillstyles ()
 
 ~OdGiPsFillstyles ()
 
const OdHatchPatterngetGiDefinitions (OdHatchPattern *pPats, double scale, OdUInt32 nFirst=OdPs::kFsSolid+1, OdUInt32 nPats=OdPs::kFsLast - OdPs::kFsSolid - 1) const
 
const OdHatchPatterngetGiDefinition (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 PsFillstyleGDIgetGDIDefinitions () const
 
const PsFillstyleGDIgetGDIDefinition (OdPs::FillStyle psFs) const
 
const PsFillstyleOGLgetOpenGLDefinitions () const
 
const PsFillstyleOGLgetOpenGLDefinition (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]
 

Detailed Description

This class represents PlotStyle fillstyles definitions. Corresponding C++ library: TD_Gi <group OdGi_Classes>

Definition at line 204 of file GiPlotStyleDefs.h.

Member Typedef Documentation

◆ PsFillstyleGDI

typedef OdUInt16 OdGiPsFillstyles::PsFillstyleGDI[8]

Type definition represents PlotStyle fillstyle in Windows GDI-compatible format.

Definition at line 210 of file GiPlotStyleDefs.h.

◆ PsFillstyleOGL

typedef OdUInt8 OdGiPsFillstyles::PsFillstyleOGL[128]

Type definition represents PlotStyle fillstyle in OpenGL-compatible format.

Definition at line 214 of file GiPlotStyleDefs.h.

Constructor & Destructor Documentation

◆ OdGiPsFillstyles()

OdGiPsFillstyles::OdGiPsFillstyles ( )

◆ ~OdGiPsFillstyles()

OdGiPsFillstyles::~OdGiPsFillstyles ( )

Member Function Documentation

◆ fsCorr()

OdUInt32 OdGiPsFillstyles::fsCorr ( OdPs::FillStyle  fs) const
inlineprotected

Definition at line 216 of file GiPlotStyleDefs.h.

◆ fsRigth()

bool OdGiPsFillstyles::fsRigth ( OdPs::FillStyle  fs) const
inlineprotected

Definition at line 217 of file GiPlotStyleDefs.h.

◆ getGDIDefinition()

const PsFillstyleGDI& OdGiPsFillstyles::getGDIDefinition ( OdPs::FillStyle  psFs) const

Returns reference onto PlotStyle fillstyle definition in Windows GDI-compatible format.

Parameters
psFs[in] Fillstyle number.

◆ getGDIDefinitions()

const PsFillstyleGDI* OdGiPsFillstyles::getGDIDefinitions ( ) const

Returns pointer onto set of PlotStyle fillstyle definitions in Windows GDI-compatible format.

◆ getGiDefinition()

const OdHatchPattern& OdGiPsFillstyles::getGiDefinition ( OdPs::FillStyle  psFs,
OdHatchPattern pPat,
double  scale 
) const

Fills PlotStyle fillstyle definition.

Parameters
psFs[in] Fillstyle number.
pPat[out] Reference onto pattern to fill.
scale[in] Pattern scale multiplier.
Returns
Returns reference onto pPat pattern definition.

◆ getGiDefinitions()

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.

Parameters
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.
Returns
Returns pointer onto pPats patterns array.

◆ getOpenGLDefinition()

const PsFillstyleOGL& OdGiPsFillstyles::getOpenGLDefinition ( OdPs::FillStyle  psFs) const

Returns reference onto PlotStyle fillstyle definition in OpenGL-compatible format.

Parameters
psFs[in] Fillstyle number.

◆ getOpenGLDefinitions()

const PsFillstyleOGL* OdGiPsFillstyles::getOpenGLDefinitions ( ) const

Returns pointer onto set of PlotStyle fillstyle definitions in OpenGL-compatible format.

◆ internalFillHatchDef()

void OdGiPsFillstyles::internalFillHatchDef ( OdPs::FillStyle  psFs,
OdHatchPattern pPat,
double  scale 
) const
protected

◆ internalMakeImage()

OdGiRasterImagePtr OdGiPsFillstyles::internalMakeImage ( const OdUInt8 pPixels,
OdUInt32  nWidth,
OdUInt32  nHeight,
ODCOLORREF  backgroundColor = ODRGB(0, 0, 0),
ODCOLORREF  foregroundColor = ODRGB(255, 255, 255) 
) const
protected

◆ rasterizeFillstyle()

OdUInt8Array OdGiPsFillstyles::rasterizeFillstyle ( OdPs::FillStyle  psFs,
OdUInt32  nOffsetX = 0,
OdUInt32  nOffsetY = 0,
OdUInt32  nWidth = 32,
OdUInt32  nHeight = 32,
OdUInt8  fpValue = 0xFF 
) const

Rasterize fillstyle into set of bytes.

Parameters
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.
Remarks
Background bytes (fillstyle holes) will be drawn as zeroes. Foreground bytes (fillstyle points) will be drawn using fpValue.

◆ rasterizeFillstyleImage()

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

Rasterize fillstyle into monochrome raster image.

Parameters
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).

Member Data Documentation

◆ g_gdiFillstyleDef

const PsFillstyleGDI OdGiPsFillstyles::g_gdiFillstyleDef[OdPs::kFsLast - OdPs::kFsSolid]
staticprotected

Definition at line 218 of file GiPlotStyleDefs.h.

◆ g_oglFillstyleDef

const PsFillstyleOGL OdGiPsFillstyles::g_oglFillstyleDef[OdPs::kFsLast - OdPs::kFsSolid]
staticprotected

Definition at line 219 of file GiPlotStyleDefs.h.


The documentation for this class was generated from the following file: