CFx SDK Documentation  2022 SP0
Public Member Functions | List of all members
OdGiSelfGdiDrawable Class Referenceabstract

#include <GiViewportGeometry.h>

Inheritance diagram for OdGiSelfGdiDrawable:
OdRxObject OdOleItemHandler OdOleItemHandlerBase OdOleItemSimplestHandler

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiSelfGdiDrawable)
 
virtual bool draw (const OdGiCommonDraw &drawObj, void *hdc, const OdGsDCRect &screenRect) 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 objects that draw themselves. <group OdGi_Classes>

Definition at line 44 of file GiViewportGeometry.h.

Member Function Documentation

◆ draw()

virtual bool OdGiSelfGdiDrawable::draw ( const OdGiCommonDraw drawObj,
void hdc,
const OdGsDCRect screenRect 
) const
pure virtual

This function is called to have a GDI self-drawable to draw itself. Returns false if implementation is missing or in error case.

Parameters
drawObj[in] Object to be drawn.
hdc[in] Handle to the device context.
screenRect[in] Screen rectangle in device coordinates (pixels).

Implemented in OdOleItemHandlerBase.

◆ ODRX_DECLARE_MEMBERS()

OdGiSelfGdiDrawable::ODRX_DECLARE_MEMBERS ( OdGiSelfGdiDrawable  )

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