CFx SDK Documentation
2020SP3
|
Go to the documentation of this file.
24 #ifndef __ODGSHIGHLIGHTDATA_H__
25 #define __ODGSHIGHLIGHTDATA_H__
68 , m_pDrawableId(pDrawableId)
69 , m_bPersistentId(
true)
76 , m_pDrawableId(pTransDrawable)
77 , m_bPersistentId(
false)
93 if (!(--m_nRefCounter))
115 const OdDbStub*
id()
const
117 return (m_bPersistentId) ?
reinterpret_cast<const OdDbStub*
>(m_pDrawableId) :
NULL;
121 return (!m_bPersistentId) ?
reinterpret_cast<const OdGiDrawable*
>(m_pDrawableId) :
NULL;
125 return markers().isEmpty() && aChild().isEmpty();
179 #endif // __ODGSHIGHLIGHTDATA_H__
OdArray< OdGsHlBranchPtr > OdGsHlBranchPtrArray
const OdGiDrawable * drw() const
bool removeMarker(OdGsMarker marker)
OdSmartPtr< OdGsHlBranchReactor > OdGsHlBranchReactorPtr
virtual void onChildRemoved(OdGsHlBranch *pHlBranch, OdGsHlBranch *pHlBranchRemoved)=0
OdGsHlBranchReactor * reactor()
void removeChild(const OdGsHlBranch *pChild)
OdRefCounter m_nRefCounter
const OdDbStub * id() const
bool hasMarker(OdGsMarker marker) const
OdGsHlBranchPtrArray m_aChild
const void * m_pDrawableId
virtual void onChildAdded(OdGsHlBranch *pHlBranch, OdGsHlBranch *pHlBranchAdded)=0
OdGsHlBranch(const OdDbStub *pDrawableId)
static void setReactor(OdGsHlBranch *pHlBranch, const void *pModule, OdGsHlBranchReactor *pReactor)
OdGsHlBranch * addChild(const OdGiDrawable *pTransDrawable)
OdGsHlBranch(const OdGiDrawable *pTransDrawable)
static bool isValidMarker(OdGsMarker marker)
OdGsHlBranch * addChild(OdDbStub *pDrawableId)
bool isPersistentId() const
OdGsHlBranch * findChild(const OdGiDrawable *pTransDrawable)
static OdGsHlBranchReactor * getReactor(OdGsHlBranch *pHlBranch, const void *pModule)
const OdGsMarker kNullSubentIndex
const OdGsHlBranchPtrArray & aChild() const
static OdGsHlBranchPtr create(OdDbStub *pDrawableId, OdGsMarker marker)
static OdGsHlBranchPtr create(OdGiDrawable *pTransDrawable, OdGsMarker marker)
bool addMarker(OdGsMarker marker)
#define GS_TOOLKIT_EXPORT
OdGsMarkerArray m_aMarkers
virtual void onMarkerRemoved(OdGsHlBranch *pHlBranch, OdGsMarker gsMarker)=0
void setReactor(OdGsHlBranchReactor *pReactor)
OdGsHlBranchReactorPtr m_pReactor
const OdGsMarkerArray & markers() const
virtual void onMarkerAdded(OdGsHlBranch *pHlBranch, OdGsMarker gsMarker)=0
TPtr< OdGsHlBranch > OdGsHlBranchPtr
OdGsHlBranch * findChild(const OdDbStub *pDrawableId)
static void attach(OdGsHlBranch *pHlBranch, const void *pModule, OdGsHlBranchReactor *pReactor)
static void detach(OdGsHlBranch *pHlBranch, const void *pModule)