CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
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 235 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 241 of file GiPlotStyleDefs.h.

◆ PsFillstyleOGL

typedef OdUInt8 OdGiPsFillstyles::PsFillstyleOGL[128]

Type definition represents PlotStyle fillstyle in OpenGL-compatible format.

Definition at line 245 of file GiPlotStyleDefs.h.

Constructor & Destructor Documentation

◆ OdGiPsFillstyles()

OdGiPsFillstyles::OdGiPsFillstyles ( )

Default constructor for OdGiPsLinetypes class.

◆ ~OdGiPsFillstyles()

OdGiPsFillstyles::~OdGiPsFillstyles ( )

Destructor for the OdGiPsFillstyles class.

Member Function Documentation

◆ fsCorr()

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

Definition at line 247 of file GiPlotStyleDefs.h.

◆ fsRigth()

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

Definition at line 248 of file GiPlotStyleDefs.h.

◆ getGDIDefinition()

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

Retrieves reference to PlotStyle fillstyle definition in Windows GDI-compatible format.

Parameters
psFs[in] Fillstyle number.
Returns
a reference to PlotStyle fillstyle definition in Windows GDI-compatible format at the specified index.

◆ getGDIDefinitions()

const PsFillstyleGDI * OdGiPsFillstyles::getGDIDefinitions ( ) const

Retrieves pointer to a set of PlotStyle fillstyle definitions in Windows GDI-compatible format.

Returns
pointer to an array of 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
reference to 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
pointer to pPats patterns array.

◆ getOpenGLDefinition()

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

Retrieves reference to PlotStyle fillstyle definition in OpenGL-compatible format.

Parameters
psFs[in] Fillstyle number. reference to PlotStyle fillstyle definition in OpenGL-compatible format.

◆ getOpenGLDefinitions()

const PsFillstyleOGL * OdGiPsFillstyles::getOpenGLDefinitions ( ) const

Retrieves pointer to a set of PlotStyle fillstyle definitions in OpenGL-compatible format.

Returns
pointer to a 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

Rasterizes a 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.
Returns
a set of bytes that represents a rasterized fillstyle.
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

Rasterizes a 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 249 of file GiPlotStyleDefs.h.

◆ g_oglFillstyleDef

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

Definition at line 250 of file GiPlotStyleDefs.h.


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