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

#include <DbEntityOverrule.h>

Inheritance diagram for OdDbGeometryOverrule:
OdRxOverrule OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdDbGeometryOverrule)
 
 OdDbGeometryOverrule ()
 
virtual OdResult intersectWith (const OdDbEntity *pThisEnt, const OdDbEntity *pEnt, OdDb::Intersect intType, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0)
 
virtual OdResult intersectWith (const OdDbEntity *pThisEnt, const OdDbEntity *pEnt, OdDb::Intersect intType, const OdGePlane &projPlane, OdGePoint3dArray &points, OdGsMarker thisGsMarker=0, OdGsMarker otherGsMarker=0)
 
virtual OdResult getGeomExtents (const OdDbEntity *pSubject, OdGeExtents3d &extents)
 
- 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 geometry linked operations which an entity specifies. It is used as a base class for classes derived from OdDbEntity to change their behavior. Each default implementation calls the corresponding method of the target class.

Corresponding C++ library: TD_Db <group OdDb_Classes>

Definition at line 522 of file DbEntityOverrule.h.

Constructor & Destructor Documentation

◆ OdDbGeometryOverrule()

OdDbGeometryOverrule::OdDbGeometryOverrule ( )

Constructor creates an instance of this class.

Member Function Documentation

◆ getGeomExtents()

virtual OdResult OdDbGeometryOverrule::getGeomExtents ( const OdDbEntity pSubject,
OdGeExtents3d extents 
)
virtual

Overrules OdDbEntity::subGetGeomExtents() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pSubject[in] A raw pointer to an entity.
extents[out] An extents object in which entity extents should be saved.

◆ intersectWith() [1/2]

virtual OdResult OdDbGeometryOverrule::intersectWith ( const OdDbEntity pThisEnt,
const OdDbEntity pEnt,
OdDb::Intersect  intType,
const OdGePlane projPlane,
OdGePoint3dArray points,
OdGsMarker  thisGsMarker = 0,
OdGsMarker  otherGsMarker = 0 
)
virtual

Overrules OdDbEntity::subIntersectWith() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pThisEnt[in] A raw pointer to an entity.
pEnt[in] An entity with which this entity is intersected.
intType[in] Type of intersection.
projPlane[in] A projection plane for the intersection of the two entities.
points[out] An array of points in which the intersection points should be appended.
thisGsMarker[in] GS marker of the subentity of this entity which is involved in the intersection.
otherGsMarker[in] GS marker of the subentity of the entity pointed to by pEnt which is involved in the intersection.

◆ intersectWith() [2/2]

virtual OdResult OdDbGeometryOverrule::intersectWith ( const OdDbEntity pThisEnt,
const OdDbEntity pEnt,
OdDb::Intersect  intType,
OdGePoint3dArray points,
OdGsMarker  thisGsMarker = 0,
OdGsMarker  otherGsMarker = 0 
)
virtual

Overrules OdDbEntity::subIntersectWith() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pThisEnt[in] A raw pointer to an entity.
pEnt[in] An entity with which this entity is intersected.
intType[in] Type of intersection.
points[out] An array of points in which the intersection points should be appended.
thisGsMarker[in] GS marker of the subentity of this entity which is involved in the intersection.
otherGsMarker[in] GS marker of the subentity of the entity pointed to by pEnt which is involved in the intersection.

◆ ODRX_DECLARE_MEMBERS()

OdDbGeometryOverrule::ODRX_DECLARE_MEMBERS ( OdDbGeometryOverrule  )

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