CFx SDK Documentation  2020SP3
Public Types | Public Member Functions | List of all members
OdDbBaseHatchPE Class Referenceabstract

#include <DbBaseDatabase.h>

Inheritance diagram for OdDbBaseHatchPE:
OdRxObject

Public Types

enum  HatchStyle { kNormal = 0, kOuter = 1, kIgnore = 2 }
 
enum  HatchLoopType {
  kDefault = 0, kExternal = 1, kPolyline = 2, kDerived = 4,
  kTextbox = 8, kOutermost = 0x10, kNotClosed = 0x20, kSelfIntersecting = 0x40,
  kTextIsland = 0x80, kDuplicate = 0x100, kIsAnnotative = 0x200, kDoesNotSupportScale = 0x400,
  kForceAnnoAllVisible = 0x800, kOrientToPaper = 0x1000, kIsAnnotativeBlock = 0x2000
}
 

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdDbBaseHatchPE)
 
virtual int numLoops (const OdRxObject *pHatch) const =0
 
virtual OdInt32 loopTypeAt (const OdRxObject *pHatch, int loopIndex) const =0
 
virtual void getLoopAt (const OdRxObject *pHatch, int loopIndex, OdArray< OdGeCurve2d * > &edgePtrs) const =0
 
virtual void getLoopAt (const OdRxObject *pHatch, int loopIndex, OdGePoint2dArray &vertices, OdGeDoubleArray &bulges) const =0
 
virtual HatchStyle hatchStyle (const OdRxObject *pHatch) const =0
 
virtual bool isGradient (const OdRxObject *pHatch) const =0
 
virtual bool isSolidFill (const OdRxObject *pHatch) const =0
 
virtual bool isReallyHatch (const OdRxObject *pHatch) const =0
 
- 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
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class defines the interface for the hatch protocol extension classes. <group OdDbRoot_Classes>

Definition at line 1121 of file DbBaseDatabase.h.

Member Enumeration Documentation

◆ HatchLoopType

Determines types of hatch loops.

Enumerator
kDefault 

Not yet specified.

kExternal 

Defined by external entities.

kPolyline 

Defined by OdGe polyline.

kDerived 

Derived from a picked point.

kTextbox 

Defined by text.

kOutermost 

Outermost loop.

kNotClosed 

Open loop.

kSelfIntersecting 

Self-intersecting loop.

kTextIsland 

Text loop surrounded by an even number of loops.

kDuplicate 

Duplicate loop.

kIsAnnotative 

The bounding area is an annotative block.

kDoesNotSupportScale 

The bounding type does not support scaling.

kForceAnnoAllVisible 

Forces all annotatives to be visible.

kOrientToPaper 

Orients hatch loop to paper.

kIsAnnotativeBlock 

Describes whether the hatch is an annotative block.

Definition at line 1141 of file DbBaseDatabase.h.

◆ HatchStyle

Determines hatch style values.

Enumerator
kNormal 

Hatch toggles on each boundary.

kOuter 

Hatch turns off after first inner loop.

kIgnore 

Hatch ignores inner loop.

Definition at line 1131 of file DbBaseDatabase.h.

Member Function Documentation

◆ getLoopAt() [1/2]

virtual void OdDbBaseHatchPE::getLoopAt ( const OdRxObject pHatch,
int  loopIndex,
OdArray< OdGeCurve2d * > &  edgePtrs 
) const
pure virtual

Returns curves of a loop, determined by its index, in a specified hatch.

Parameters
pHatch[in] A pointer to a hatch object.
loopIndex[in] An index of a hatch loop.
edgePtrs[out] A reference to an OdGeCurve2d object array to store information about the curves that form the loop.

◆ getLoopAt() [2/2]

virtual void OdDbBaseHatchPE::getLoopAt ( const OdRxObject pHatch,
int  loopIndex,
OdGePoint2dArray vertices,
OdGeDoubleArray bulges 
) const
pure virtual

Returns curves of a loop, determined by its index, in a specified hatch.

Parameters
pHatch[in] A pointer to a hatch object.
loopIndex[in] An index of a hatch loop.
edgePtrs[out] A reference to an OdGeCurve2d object array to store information about the curves that form the loop.

◆ hatchStyle()

virtual HatchStyle OdDbBaseHatchPE::hatchStyle ( const OdRxObject pHatch) const
pure virtual

Returns the style of a specified hatch.

Parameters
pHatch[in] A pointer to a hatch object.

◆ isGradient()

virtual bool OdDbBaseHatchPE::isGradient ( const OdRxObject pHatch) const
pure virtual

Determines whether a specified hatch is a gradient hatch.

Parameters
pHatch[in] A pointer to a hatch object.
Returns
Returns true if a hatch is a gradient hatch, otherwise returns false.

◆ isReallyHatch()

virtual bool OdDbBaseHatchPE::isReallyHatch ( const OdRxObject pHatch) const
pure virtual

Determines whether a specified hatch is a real hatch.

Parameters
pHatch[in] A pointer to a hatch object.
Returns
Returns true if a hatch is a real hatch, otherwise returns false.
Remarks
For .dwg functionality a hatch is always a hatch protocol extension, but for .dgn functionality a hatch protocol extension can be added to any entity.

◆ isSolidFill()

virtual bool OdDbBaseHatchPE::isSolidFill ( const OdRxObject pHatch) const
pure virtual

Determines whether a specified hatch is a solid hatch.

Parameters
pHatch[in] A pointer to a hatch object.
Returns
Returns true if a hatch is a solid hatch, otherwise returns false.

◆ loopTypeAt()

virtual OdInt32 OdDbBaseHatchPE::loopTypeAt ( const OdRxObject pHatch,
int  loopIndex 
) const
pure virtual

Returns the type of loop, determined by its index, in a specified hatch.

Parameters
pHatch[in] A pointer to a hatch object.
loopIndex[in] An index of a hatch loop.

◆ numLoops()

virtual int OdDbBaseHatchPE::numLoops ( const OdRxObject pHatch) const
pure virtual

Returns the quantity of loops in a specified hatch.

Parameters
pHatch[in] A pointer to a hatch object.

◆ ODRX_DECLARE_MEMBERS()

OdDbBaseHatchPE::ODRX_DECLARE_MEMBERS ( OdDbBaseHatchPE  )

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