CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdGiDrawableOverrule Class Reference

#include <GiDrawable.h>

Inheritance diagram for OdGiDrawableOverrule:
OdRxOverrule OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiDrawableOverrule)
 
 OdGiDrawableOverrule ()
 
virtual OdUInt32 setAttributes (const OdGiDrawable *pSubject, OdGiDrawableTraits *traits)
 
virtual bool worldDraw (const OdGiDrawable *pSubject, OdGiWorldDraw *wd)
 
virtual void viewportDraw (const OdGiDrawable *pSubject, OdGiViewportDraw *vd)
 
virtual OdUInt32 viewportDrawLogicalFlags (const OdGiDrawable *pSubject, OdGiViewportDraw *vd)
 
virtual OdUInt32 regenSupportFlags (const OdGiDrawable *pSubject)
 
- Public Member Functions inherited from OdRxOverrule
 ODRX_DECLARE_MEMBERS (OdRxOverrule)
 
virtual ~OdRxOverrule ()
 
virtual bool isApplicable (const OdRxObject *pOverruledSubject) 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 OdRxOverrule
static OdResult addOverrule (OdRxClass *pClass, OdRxOverrule *pOverrule, bool bAddAtLast=false)
 
static OdResult removeOverrule (OdRxClass *pClass, OdRxOverrule *pOverrule)
 
static void setIsOverruling (bool bIsOverruling)
 
static bool isOverruling ()
 
static bool hasOverrule (const OdRxObject *pSubject, OdRxClass *pOverruleClass)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class overrules a subset of drawable linked operations which a drawable object specifies. It is used as a base class for classes derived from OdGiDrawable to change their behavior. Each default implementation calls the corresponding method of the target class.

Corresponding C++ library: TD_Gi <group OdGi_Classes>

Definition at line 234 of file GiDrawable.h.

Constructor & Destructor Documentation

◆ OdGiDrawableOverrule()

OdGiDrawableOverrule::OdGiDrawableOverrule ( )

Constructor creates an instance of this class.

Member Function Documentation

◆ ODRX_DECLARE_MEMBERS()

OdGiDrawableOverrule::ODRX_DECLARE_MEMBERS ( OdGiDrawableOverrule  )

◆ regenSupportFlags()

virtual OdUInt32 OdGiDrawableOverrule::regenSupportFlags ( const OdGiDrawable pSubject)
virtual

Overrules the regen support flags.

Parameters
pSubject[in] A raw pointer to the drawable object.

◆ setAttributes()

virtual OdUInt32 OdGiDrawableOverrule::setAttributes ( const OdGiDrawable pSubject,
OdGiDrawableTraits traits 
)
virtual

Overrules the OdGiDrawable::setAttributes() method and calls it in the default implementation.

Parameters
pSubject[in] A raw pointer to the drawable object.
traits[in] A pointer to the graphics traits.

◆ viewportDraw()

virtual void OdGiDrawableOverrule::viewportDraw ( const OdGiDrawable pSubject,
OdGiViewportDraw vd 
)
virtual

Overrules the OdGiDrawable::viewportDraw() method and calls it in the default implementation.

Parameters
pSubject[in] A raw pointer to the drawable object.
vd[in] A pointer to the Gi viewport drawable object.

◆ viewportDrawLogicalFlags()

virtual OdUInt32 OdGiDrawableOverrule::viewportDrawLogicalFlags ( const OdGiDrawable pSubject,
OdGiViewportDraw vd 
)
virtual

Overrules the OdGiDrawable::viewportDrawLogicalFlags() method and calls it in the default implementation.

Parameters
pSubject[in] A raw pointer to the drawable object.
vd[in] A pointer to the Gi viewport drawable object.

◆ worldDraw()

virtual bool OdGiDrawableOverrule::worldDraw ( const OdGiDrawable pSubject,
OdGiWorldDraw wd 
)
virtual

Overrules the OdGiDrawable::worldDraw() method and calls it in the default implementation.

Parameters
pSubject[in] A raw pointer to the drawable object.
wd[in] A pointer to the Gi world drawable object.

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