23 #ifndef __OD_GS_VIEW_LOCAL_ID__
24 #define __OD_GS_VIEW_LOCAL_ID__
88 : m_pLocalIdModel(
NULL)
107 if (m_pLocalIdModel == pModel)
109 m_pLocalIdModel = pModel;
110 return m_localId = getLocalViewportId(pModel);
118 m_pLocalIdModel =
NULL;
124 return m_localIdRefs;
128 #define ODGS_LOCAL_IDS
#define GS_TOOLKIT_EXPORT
OdSmartPtr< OdGsBaseModelLocalIds > OdGsBaseModelLocalIdsPtr
virtual void resetViewId(OdGsViewImpl *pView, OdUInt32 nId)=0
virtual void onViewDelete(OdGsViewImpl *pView)=0
virtual OdUInt32 registerView(OdGsViewImpl *pView)=0
virtual OdUInt32 getMaxId() const =0
static OdSmartPtr< OdGsBaseModelLocalIds > createObject()
virtual OdUInt32 getViewId(OdGsViewImpl *pView)=0
void setView(OdGsViewImpl *pView)
OdUInt32 getLocalViewportId(const OdGsBaseModel *pModel) const
const OdGsBaseModel * m_pLocalIdModel
OdArray< OdGsBaseModelLocalIdsPtr > m_localIdRefs
OdUInt32 localViewportId(const OdGsBaseModel *pModel) const
OdArray< OdGsBaseModelLocalIdsPtr > & refs()
OdGsViewLocalId(OdGsViewImpl *pView=NULL)
OdGsViewImpl * view() const