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

#include <GiCommonDraw.h>

Inheritance diagram for OdGiCommonDraw:
OdRxObject OdGiViewportDraw OdGiWorldDraw OdGiDummyCommonDraw< OdGiViewportDraw > OdGiViewportDraw_ OdGiWrapperCommonDraw< OdGiViewportDraw > OdGiDummyCommonDraw< OdGiWorldDraw > OdGiWorldDraw_ OdGiWrapperCommonDraw< OdGiWorldDraw > OdGiDummyViewportDraw< OdGiViewportDraw > OdGiBaseVectorizer OdGiDummyGeometry< OdGiViewportDraw_ > OdGiWrapperGeometry< OdGiViewportDraw_ > OdGiWrapperViewportDraw< OdGiViewportDraw > OdGiDummyWorldDraw< OdGiWorldDraw > OdGiDummyCommonDraw< OdGiWorldDraw_ > OdGiDummyGeometry< OdGiWorldDraw_ > OdGiWrapperWorldDraw< OdGiWorldDraw >

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiCommonDraw)
 
virtual OdGiRegenType regenType () const =0
 
virtual bool regenAbort () const =0
 
virtual OdGiSubEntityTraitssubEntityTraits () const =0
 
virtual OdGiGeometryrawGeometry () const =0
 
virtual bool isDragging () const =0
 
virtual double deviation (const OdGiDeviationType deviationType, const OdGePoint3d &pointOnCurve) const =0
 
virtual OdUInt32 numberOfIsolines () const =0
 
virtual OdGiContextcontext () const =0
 
virtual const OdGiPathNodecurrentGiPath () const
 
virtual bool displayModelerSilhouettes () const
 
- 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 is the base class for entity-level vectorization within Teigha.

See also
TD_Gi

<group OdGi_Classes>

Definition at line 571 of file GiCommonDraw.h.

Member Function Documentation

◆ context()

virtual OdGiContext* OdGiCommonDraw::context ( ) const
pure virtual

◆ currentGiPath()

virtual const OdGiPathNode* OdGiCommonDraw::currentGiPath ( ) const
virtual

Returns the current drawable nesting graph.

Reimplemented in OdGiViewportDraw_, OdGiWorldDraw_, and OdGiBaseVectorizer.

◆ deviation()

virtual double OdGiCommonDraw::deviation ( const OdGiDeviationType  deviationType,
const OdGePoint3d pointOnCurve 
) const
pure virtual

Returns the recommended maximum deviation of the current vectorization for the specified point on a curve.

Parameters
deviationType[in] Deviation type.
pointOnCurve[in] Point on a curve.
Remarks
This function returns the recommended maximum difference (with respect to the current active viewport) between the actual curve or surface, and the tessellated curve or surface.

deviationType must be one of the following:

Value kOdGiMaxDevForCircle 0
kOdGiMaxDevForCurve 1
kOdGiMaxDevForBoundary 2
kOdGiMaxDevForIsoline 3 kOdGiMaxDevForFacet 4

Remarks
This function uses circle zoom percent or FacetRes as appropriate.

Implemented in OdGiLayerTraitsTakerView, OdGiDummyCommonDraw< OdGiViewportDraw >, OdGiDummyCommonDraw< OdGiWorldDraw_ >, OdGiDummyCommonDraw< OdGiWrapperViewportGeometry< OdGiViewportDraw_ > >, OdGiDummyCommonDraw< OdGiDummyViewportGeometry< OdGiViewportDraw_ > >, OdGiDummyCommonDraw< OdGiDummyWorldGeometry< OdGiWorldDraw_ > >, OdGiDummyCommonDraw< OdGiWorldDraw >, OdGiWrapperCommonDraw< OdGiViewportDraw >, OdGiWrapperCommonDraw< OdGiWorldDraw >, OdGiBaseVectorizerImpl, OdGiLayerTraitsTaker, and OdGiBaseVectorizer.

◆ displayModelerSilhouettes()

virtual bool OdGiCommonDraw::displayModelerSilhouettes ( ) const
virtual

Returns whether silhouette curves should be generated (basically should return OdDbDatabase::getDISPSILH, but the behavior could be specialized).

◆ isDragging()

virtual bool OdGiCommonDraw::isDragging ( ) const
pure virtual

Returns true if this vectorization process is the result of a "drag" operation.

Remarks

Implemented in OdGsBaseVectorizer, OdGiLayerTraitsTaker, and OdGiBaseVectorizer.

◆ numberOfIsolines()

virtual OdUInt32 OdGiCommonDraw::numberOfIsolines ( ) const
pure virtual

Returns the number of isolines to be drawn on surfaces during this vectorization.

Implemented in OdGiLayerTraitsTakerView, OdGiLayerTraitsTaker, OdGiBaseVectorizer, and OdGiWorldDrawImpl.

◆ ODRX_DECLARE_MEMBERS()

OdGiCommonDraw::ODRX_DECLARE_MEMBERS ( OdGiCommonDraw  )

◆ rawGeometry()

virtual OdGiGeometry& OdGiCommonDraw::rawGeometry ( ) const
pure virtual

Provides access to this object's "drawing interface."

Remarks
The "drawing interface" is a set of geometry functions used during the vectorization process.

Implemented in OdGiLayerTraitsTaker, OdGiWorldDraw_Dummy, OdGiViewportDraw_Dummy, OdGiWorldDraw_Stub, OdGiViewportDraw_Stub, OdGiBaseVectorizer, and OdGiWorldDrawImpl.

◆ regenAbort()

virtual bool OdGiCommonDraw::regenAbort ( ) const
pure virtual

Returns true if and only if this vectorization process should be aborted.

Implemented in OdGiLayerTraitsTakerView, OdGsBaseVectorizer, OdGiLayerTraitsTaker, OdGiExtCalc, and OdGiBaseVectorizer.

◆ regenType()

virtual OdGiRegenType OdGiCommonDraw::regenType ( ) const
pure virtual

Returns the regeneration type of the current vectorization process.

Remarks
regenType() returns one of the following:

Value eOdGiRegenTypeInvalid 0 kOdGiStandardDisplay 2 kOdGiHideOrShadeCommand 3 kOdGiRenderCommand 4 kOdGiForExplode 5 kOdGiSaveWorldDrawForProxy 6 kOdGiForExtents 7

Implemented in OdGiLayerTraitsTakerView, OdGiBaseVectorizerImpl, OdGiLayerTraitsTaker, OdGiExtCalc, and OdGiBaseVectorizer.

◆ subEntityTraits()

virtual OdGiSubEntityTraits& OdGiCommonDraw::subEntityTraits ( ) const
pure virtual

Provides access to this object's subentity traits.

Remarks
This allows the modification of the vectorization attributes such as color, linetype, etc.

Implemented in OdGiLayerTraitsTaker, OdGiWorldDraw_Dummy, OdGiViewportDraw_Dummy, OdGiWorldDraw_Stub, OdGiViewportDraw_Stub, OdGiBaseVectorizer, and OdGiWorldDrawImpl.


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