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

#include <GiDrawableSelectPE.h>

Inheritance diagram for OdGiDrawableSelectPE:
OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdGiDrawableSelectPE)
 
virtual bool canSelect (const OdGiPathNode &pathNode, OdGsMarker &nMarkersCovered) const
 
virtual void select (const OdGiPathNode &pathNode, const OdGePoint2d *pPoly, OdUInt32 nbPolyPts, const OdGeTol &tol, const OdGeMatrix3d &transformWorldToEye, bool bNeedEyeDepth, OdGiDrawablePESelectionReactor *pSelectionReactor) const
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObject * queryX (const OdRxClass *pClass) const
 
virtual OdRxObject * x (const OdRxClass *pClass) const
 
virtual OdRxClass * isA () 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 Member Functions

 OdGiDrawableSelectPE ()
 

Additional Inherited Members

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

Detailed Description

This class is the protocol extension for all graphical objects, both transient and persistent.

Remarks
This interface must be implemented in the case of ability to perform selection procedure by drawable itself

<group OdGi_Classes>

Definition at line 97 of file GiDrawableSelectPE.h.

Constructor & Destructor Documentation

◆ OdGiDrawableSelectPE()

OdGiDrawableSelectPE::OdGiDrawableSelectPE ( )
protected

Member Function Documentation

◆ canSelect()

virtual bool OdGiDrawableSelectPE::canSelect ( const OdGiPathNode &  pathNode,
OdGsMarker &  nMarkersCovered 
) const
virtual

Return true if a drawable can perform selection inside 'pathNode' itself.

Returns
Returns true if and only if the drawable can perform selection inside 'pathNode' itself
Remarks
The default implementation does nothing and return false. This function can be overridden in custom classes.
Parameters
pathNode[in] Currently processing GiDrawable objects graph. nMarkersCovered [out] Number of markers which is covered by drawables's own selection procedure

◆ ODRX_DECLARE_MEMBERS()

OdGiDrawableSelectPE::ODRX_DECLARE_MEMBERS ( OdGiDrawableSelectPE  )

◆ select()

virtual void OdGiDrawableSelectPE::select ( const OdGiPathNode &  pathNode,
const OdGePoint2d *  pPoly,
OdUInt32  nbPolyPts,
const OdGeTol &  tol,
const OdGeMatrix3d &  transformWorldToEye,
bool  bNeedEyeDepth,
OdGiDrawablePESelectionReactor *  pSelectionReactor 
) const
virtual

Runs selection procedure inside pathNode.

Returns
Returns nothing.
Remarks
The default implementation does nothing. This function can be overridden in custom classes.
Parameters
pathNode[in] Currently processing GiDrawable objects graph. pPoly [in] A pointer to an array of selection points in the eye coordinate space nbPolyPts [in] A quantity of selection points tol [in] Tolerance transformWorldToEye [in] Transformation matrix from world coordinate systen to the eye coordinate system bNeedEyeDepth [in] Indicates that it is need to calculate the depth of the selected sub object in the ECS (eye coordinate system) pSelectionReactor [in] Selection callback pointer.

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