CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Protected Attributes | List of all members
OdGiHatchPattern Class Reference

#include <GiFill.h>

Inheritance diagram for OdGiHatchPattern:
OdGiFill OdRxObject OdGiFillHatch

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiHatchPattern)
 
 OdGiHatchPattern ()
 
const OdHatchPatternpatternLines () const
 
OdHatchPatternpatternLines ()
 
void setPatternLines (const OdHatchPattern &aHatchPattern)
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual bool operator== (const OdGiFill &fill) const
 
virtual bool operator!= (const OdGiFill &fill) const
 
virtual void saveBytes (OdUInt8Array &bytes) const
 
virtual void loadBytes (const OdUInt8 *pBytes)
 
bool isDraft () const
 
void setDraft (bool draft)
 
double patternScale () const
 
void setPatternScale (double scale)
 
bool isExternal () const
 
void setExternal (bool isExt)
 
OdCmEntityColor getPatternColor () const
 
void setPatternColor (const OdCmEntityColor &color)
 
OdDb::LineWeight getPatternLineWeight () const
 
void setPatternLineWeight (OdDb::LineWeight lineweight)
 
OdCmTransparency getPatternTransparency () const
 
void setPatternTransparency (const OdCmTransparency &transparency)
 
OdSmartPtr< OdGiHatchPatterngetNext () const
 
void setNext (const OdSmartPtr< OdGiHatchPattern > &pNext)
 
bool isAlignedToCenter () const
 
void setAlignedToCenter (bool aligned)
 
bool isEmpty () const
 
void setEmpty (bool empty)
 
- Public Member Functions inherited from OdGiFill
 ODRX_DECLARE_MEMBERS (OdGiFill)
 
 OdGiFill ()
 
double deviation () const
 
void setDeviation (double dDeviation)
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual bool operator== (const OdGiFill &fill) const
 
virtual bool operator!= (const OdGiFill &fill) const
 
virtual void saveBytes (OdUInt8Array &bytes) const
 
virtual void loadBytes (const OdUInt8 *pBytes)
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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
 

Protected Types

enum  Flags { kDraft = (1 << 0) , kExternal = (1 << 1) , kAlignedToCenter = (1 << 2) , kEmpty = (1 << 3) }
 

Protected Attributes

OdHatchPattern m_aHatchPattern
 
double m_dPatternScale
 
OdDb::LineWeight m_patternLineWeight
 
OdCmEntityColor m_patternColor
 
OdCmTransparency m_patternTransparency
 
OdSmartPtr< OdGiHatchPatternm_pNext
 
OdUInt32 m_nFlags
 
- Protected Attributes inherited from OdGiFill
double m_dDeviation
 

Additional Inherited Members

- Static Public Member Functions inherited from OdGiFill
static OdSmartPtr< OdGiFillloadFill (const OdUInt8 *pBytes)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 
- Protected Member Functions inherited from OdGiFill
void pushDbl (OdUInt8Array &bytes, double dDbl) const
 
void pushInt (OdUInt8Array &bytes, OdUInt32 nInt) const
 
void popDbl (const OdUInt8 *&pBytes, double &dDbl) const
 
void popInt (const OdUInt8 *&pBytes, OdUInt32 &nInt) const
 

Detailed Description

This class is a specialization of OdGiFill for hatch pattern type of filling.

<group OdGi_Classes>

Definition at line 109 of file GiFill.h.

Member Enumeration Documentation

◆ Flags

enum OdGiHatchPattern::Flags
protected
Enumerator
kDraft 
kExternal 
kAlignedToCenter 
kEmpty 

Definition at line 119 of file GiFill.h.

Constructor & Destructor Documentation

◆ OdGiHatchPattern()

OdGiHatchPattern::OdGiHatchPattern ( )
inline

Default constructor for the OdGiHatchPattern class. Sets the pattern scale to 1.0, pattern flags to 0 and initializes the underlaying fill object.

Definition at line 244 of file GiFill.h.

Member Function Documentation

◆ copyFrom()

virtual void OdGiHatchPattern::copyFrom ( const OdRxObject pSource)
virtual

details Copies the contents of the specified object into this object.

Parameters
pSource[in] Pointer to the source object.
Remarks
The default implementation of this function does nothing but throw an eNotApplicable exception.

Throws: eNotApplicable Exception

Reimplemented from OdGiFill.

Reimplemented in OdGiFillHatch.

◆ getNext()

OdGiHatchPatternPtr OdGiHatchPattern::getNext ( ) const
inline

Is used to obtain next pattern in the pattern chain

Returns
Pointer to the next OdGiHatchPattern

Definition at line 344 of file GiFill.h.

◆ getPatternColor()

OdCmEntityColor OdGiHatchPattern::getPatternColor ( ) const
inline

Definition at line 308 of file GiFill.h.

◆ getPatternLineWeight()

OdDb::LineWeight OdGiHatchPattern::getPatternLineWeight ( ) const
inline

Definition at line 320 of file GiFill.h.

◆ getPatternTransparency()

OdCmTransparency OdGiHatchPattern::getPatternTransparency ( ) const
inline

Is used to obtain custom pattern transparency value (Default is 255)

Returns
Pattern transparency value

Definition at line 332 of file GiFill.h.

◆ isAlignedToCenter()

bool OdGiHatchPattern::isAlignedToCenter ( ) const
inline

Is used to obtain 'kAlignedToCenter' flag value (Default is false)

Returns
'kAlignedToCenter' flag value

Definition at line 356 of file GiFill.h.

◆ isDraft()

bool OdGiHatchPattern::isDraft ( ) const
inline

Definition at line 272 of file GiFill.h.

◆ isEmpty()

bool OdGiHatchPattern::isEmpty ( ) const
inline

Is used to obtain 'kEmpty' flag value (Default is false)

Returns
'kEmpty' flag value

Definition at line 368 of file GiFill.h.

◆ isExternal()

bool OdGiHatchPattern::isExternal ( ) const
inline

Definition at line 296 of file GiFill.h.

◆ loadBytes()

virtual void OdGiHatchPattern::loadBytes ( const OdUInt8 pBytes)
virtual

Reimplemented from OdGiFill.

◆ ODRX_DECLARE_MEMBERS()

OdGiHatchPattern::ODRX_DECLARE_MEMBERS ( OdGiHatchPattern  )

◆ operator!=()

virtual bool OdGiHatchPattern::operator!= ( const OdGiFill fill) const
virtual

Reimplemented from OdGiFill.

Reimplemented in OdGiFillHatch.

◆ operator==()

virtual bool OdGiHatchPattern::operator== ( const OdGiFill fill) const
virtual

Reimplemented from OdGiFill.

Reimplemented in OdGiFillHatch.

◆ patternLines() [1/2]

OdHatchPattern & OdGiHatchPattern::patternLines ( )
inline

Retrieves lines that compose this pattern.

Returns
a reference to the OdHatchPattern that represents an array of pattern lines.

Definition at line 260 of file GiFill.h.

◆ patternLines() [2/2]

const OdHatchPattern & OdGiHatchPattern::patternLines ( ) const
inline

Retrieves lines that compose this pattern.

Returns
a reference to the OdHatchPattern that represents an array of pattern lines.

Definition at line 254 of file GiFill.h.

◆ patternScale()

double OdGiHatchPattern::patternScale ( ) const
inline

Retrieves scale of this pattern.

Returns
scale of the hatch pattern as a value of double type.

Definition at line 284 of file GiFill.h.

◆ saveBytes()

virtual void OdGiHatchPattern::saveBytes ( OdUInt8Array bytes) const
virtual

Reimplemented from OdGiFill.

◆ setAlignedToCenter()

void OdGiHatchPattern::setAlignedToCenter ( bool  aligned)
inline

Is used to set 'kAlignedToCenter' flag that forces pattern initial position to the center of the shell

Parameters
aligned[in] Value to be set

Definition at line 362 of file GiFill.h.

◆ setDraft()

void OdGiHatchPattern::setDraft ( bool  draft)
inline

Definition at line 278 of file GiFill.h.

◆ setEmpty()

void OdGiHatchPattern::setEmpty ( bool  empty)
inline

Is used to set 'kEmpty' flag that forces pattern to be skipped on rendering regardless of it content

Parameters
empty[in] Value to be set

Definition at line 374 of file GiFill.h.

◆ setExternal()

void OdGiHatchPattern::setExternal ( bool  isExt)
inline

Definition at line 302 of file GiFill.h.

◆ setNext()

void OdGiHatchPattern::setNext ( const OdSmartPtr< OdGiHatchPattern > &  pNext)
inline

Is used to set next pattern in the pattern chain

Parameters
pNext[in] Pointer to OdGiHatchPattern

Definition at line 350 of file GiFill.h.

◆ setPatternColor()

void OdGiHatchPattern::setPatternColor ( const OdCmEntityColor color)
inline

Definition at line 314 of file GiFill.h.

◆ setPatternLines()

void OdGiHatchPattern::setPatternLines ( const OdHatchPattern aHatchPattern)
inline

Specifies pattern lines for this hatch pattern.

Parameters
aHatchPattern[in] An array of hatch pattern lines.

Definition at line 266 of file GiFill.h.

◆ setPatternLineWeight()

void OdGiHatchPattern::setPatternLineWeight ( OdDb::LineWeight  lineweight)
inline

Definition at line 326 of file GiFill.h.

◆ setPatternScale()

void OdGiHatchPattern::setPatternScale ( double  scale)
inline

Specifies pattern scale for this hatch pattern.

Parameters
scale[in] Scale of the pattern.

Definition at line 290 of file GiFill.h.

◆ setPatternTransparency()

void OdGiHatchPattern::setPatternTransparency ( const OdCmTransparency transparency)
inline

Sets custom pattern transparency value.

Parameters
transparency[in] Pattern transparency value.

Definition at line 338 of file GiFill.h.

Member Data Documentation

◆ m_aHatchPattern

OdHatchPattern OdGiHatchPattern::m_aHatchPattern
protected

Definition at line 112 of file GiFill.h.

◆ m_dPatternScale

double OdGiHatchPattern::m_dPatternScale
protected

Definition at line 113 of file GiFill.h.

◆ m_nFlags

OdUInt32 OdGiHatchPattern::m_nFlags
protected

Definition at line 120 of file GiFill.h.

◆ m_patternColor

OdCmEntityColor OdGiHatchPattern::m_patternColor
protected

Definition at line 115 of file GiFill.h.

◆ m_patternLineWeight

OdDb::LineWeight OdGiHatchPattern::m_patternLineWeight
protected

Definition at line 114 of file GiFill.h.

◆ m_patternTransparency

OdCmTransparency OdGiHatchPattern::m_patternTransparency
protected

Definition at line 116 of file GiFill.h.

◆ m_pNext

OdSmartPtr< OdGiHatchPattern > OdGiHatchPattern::m_pNext
protected

Definition at line 117 of file GiFill.h.


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