CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
OdGsBaseModel Class Reference

#include <GsBaseModel.h>

Inheritance diagram for OdGsBaseModel:
OdGsModel OdRxObject

Classes

struct  SectioningSettings
 

Public Types

enum  AdditionMode { kAddDrawable = 0 , kUneraseDrawable }
 
typedef std::pair< OdGsViewImpl *, OdUInt32ViewRef
 
typedef std::pair< const OdGsBaseModule *, OdUInt32ModuleRef
 
- Public Types inherited from OdGsModel
enum  InvalidationHint {
  kInvalidateIsolines = 0 , kInvalidateViewportCache = 1 , kInvalidateAll = 2 , kInvalidateMaterials = 3 ,
  kInvalidateLinetypes = 4
}
 
enum  RenderType {
  kMinRenderType = -3 , kUserBg1 = -3 , kUserBg2 = -2 , kUserBg3 = -1 ,
  kMain = 0 , kSprite , kDirect , kHighlight ,
  kHighlightSelection , kDirectTopmost , kContrast , kCount ,
  kUserFg1 = kCount , kUserFg2 , kUserFg3 , kMaxRenderType ,
  kNumRenderTypes = kMaxRenderType - kMinRenderType
}
 

Public Member Functions

virtual void invalidateEntRect (OdGiDrawable *pDrawable, OdGiDrawable *pParent, bool bForceIfNoExtents=false)
 
virtual void invalidateEntRect (OdGsEntityNode *pNode, OdGsContainerNode *pParent, bool bForceIfNoExtents)
 
bool checkFaded () const
 
void setCheckFaded (bool bOn)
 
void setVectorizing ()
 
void resetVectorizing ()
 
virtual bool disableNotifications () const
 
void setDisableNotifications (bool bOn)
 
bool trySetDisableInvalidate (bool bOn)
 
const ViewPropsArraygetViewProps () const
 
OdGsViewImplrefView () const
 
OdGsBaseVectorizeDevicerefDevice () const
 
OdUInt32 refModulesCount () const
 
virtual void attachLocalViewportId (OdGsViewImpl *pView, OdGsViewImpl *pFrom=NULL)
 
virtual OdUInt32 getLocalViewportId (OdGsViewImpl *pView)
 
virtual OdUInt32 getMaxLocalViewportId () const
 
bool invalidVp (unsigned int viewportId) const
 
OdGsBaseModelImpl * impl ()
 
void invalidateRegenDrawBlocks (OdGsViewImpl &view, const OdDbStub *layoutId)
 
void invalidateSectionableBlocks ()
 
virtual OdGsNodegsNode (OdGiDrawable *pDrawable)
 
virtual void detach (OdGsNode *pNode)
 
virtual void detachAll ()
 
void detachAllFromDb (const OdDbBaseDatabase *pDb)
 
OdGiDrawablePtr open (OdDbStub *objectId)
 
void setDrawableGsNode (OdGiDrawable *pDrawable, OdGsCache *pNode)
 
OdGsCachedrawableGsNode (const OdGiDrawable *pDrawable)
 
void setOpenDrawableFn (OdGiOpenDrawableFn openDrawableFn)
 
OdGiOpenDrawableFn openDrawableFn () const
 
void onAdded (OdGiDrawable *pAdded, OdGiDrawable *pParent)
 
void onAdded (OdGiDrawable *pAdded, OdDbStub *parentID)
 
virtual void onAddedImpl (OdGiDrawable *pAdded, OdGiDrawable *pParent, AdditionMode additionMode=kAddDrawable)
 
void onModified (OdGiDrawable *pModified, OdGiDrawable *pParent)
 
void onModified (OdGiDrawable *pModified, OdDbStub *parentID)
 
virtual void onModifiedImpl (OdGiDrawable *pModified, OdGiDrawable *pParent)
 
virtual void onModifiedGraphics (const OdGiDrawable *pModified, OdDbStub *parentID) ODRX_OVERRIDE
 
void onErased (OdGiDrawable *pErased, OdGiDrawable *pParent)
 
void onErased (OdGiDrawable *pErased, OdDbStub *parentID)
 
virtual void onErasedImpl (OdGiDrawable *pErased, OdGiDrawable *pParent)
 
void onUnerased (OdGiDrawable *pUnerased, OdGiDrawable *pParent)
 
void onUnerased (OdGiDrawable *pUnerased, OdDbStub *parentID)
 
void invalidate (InvalidationHint hint)
 
void invalidate (OdGsView *pView)
 
void invalidateVisible (OdGsDevice *pDevice)
 
void invalidate (OdGsViewImpl &view, OdUInt32 mask)
 
OdUInt32 viewChanges (OdUInt32 viewportId) const
 
OdUInt32 numViewProps () const
 
const ViewPropsviewProps (OdUInt32 viewportId) const
 
virtual void updateViewProps (const OdGsViewImpl &viewport)
 
virtual bool isViewPropsValid (OdUInt32 viewportId) const
 
const OdGsViewImplviewById (OdUInt32 viewportId) const
 
virtual OdGsLayerNodegsLayerNode (OdDbStub *layerId, const OdGsBaseVectorizer *pView)
 
virtual void propagateLayerChanges (OdGsBaseVectorizeDevice &device)
 
void setTransform (const OdGeMatrix3d &xForm)
 
OdGeMatrix3d transform () const
 
bool isIdentityTransform () const
 
OdGeExtents3dtransformExtents (OdGeExtents3d &pExts) const
 
OdGsView::RenderMode renderModeOverride () const
 
void setRenderModeOverride (OdGsView::RenderMode mode=OdGsView::kNone)
 
void highlight (const OdGiPathNode &path, bool bDoIt=true, OdUInt32 nStyle=0, const OdGsView *pView=NULL)
 
void highlight (const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool bDoIt=true, OdUInt32 nStyle=0, const OdGsView *pView=NULL)
 
virtual void highlightImpl (const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool bDoIt=true, OdUInt32 nStyle=0, const OdGsView *pView=NULL)
 
void hide (const OdGiPathNode &path, bool bDoIt=true, bool bSelectHidden=false, const OdGsView *pView=NULL)
 
void hide (const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool bDoIt=true, bool bSelectHidden=false, const OdGsView *pView=NULL)
 
virtual void hideImpl (const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool bDoIt=true, bool bSelectHidden=false, const OdGsView *pView=NULL)
 
OdGsMaterialCachematerialCache ()
 
void setRenderType (RenderType renderType)
 
RenderType renderType () const
 
void setBackground (OdDbStub *backgroundId)
 
OdDbStub * background () const
 
void setVisualStyle (OdDbStub *visualStyleId)
 
OdDbStub * visualStyle () const
 
void setVisualStyle (const OdGiVisualStyle &visualStyle)
 
bool visualStyle (OdGiVisualStyle &visualStyle) const
 
const OdGiDrawablevisualStyleDrawable () const
 
virtual bool makeStock (OdDbStub *layoutId)
 
virtual void releaseStock (OdDbStub *layoutId)
 
bool hasChangedLayers () const
 
void addModelReactor (OdGsModelReactor *pReactor)
 
void removeModelReactor (OdGsModelReactor *pReactor)
 
void setEnableSectioning (bool bEnable)
 
bool isSectioningEnabled () const
 
bool setSectioning (const OdGePoint3dArray &points, const OdGeVector3d &upVector)
 
bool setSectioning (const OdGePoint3dArray &points, const OdGeVector3d &upVector, double dTop, double dBottom)
 
void setSectioningVisualStyle (OdDbStub *visualStyleId)
 
const SectioningSettingsgetSectioning () const
 
void setViewClippingOverride (bool bEnable)
 
bool viewClippingOverride () const
 
void setEnableLinetypes (bool bEnable)
 
bool isLinetypesEnabled () const
 
void setSelectable (bool bEnable)
 
bool isSelectable () const
 
void setEnableViewExtentsCalculation (bool bEnable)
 
bool isViewExtentsCalculationEnabled () const
 
void setEnableLightsInBlocks (bool bEnable)
 
bool isLightsInBlocksEnabled () const
 
void setViewSectioningOverride (bool bEnable)
 
bool viewSectioningOverride () const
 
virtual bool saveModelState (OdGsFiler *pFiler, OdGsBaseVectorizer *pVectorizer=NULL) const
 
virtual bool loadModelState (OdGsFiler *pFiler, OdGsBaseVectorizer *pVectorizer=NULL)
 
virtual bool saveClientModelState (OdGsFiler *pFiler) const
 
virtual bool loadClientModelState (OdGsFiler *pFiler)
 
bool postprocessModelLoading (OdGsFiler *pFiler)
 
virtual OdGsNodenewNode (ENodeType ntp, const OdGiDrawable *drawable, bool bSetGsNode)
 
- Public Member Functions inherited from OdGsModel
 ODRX_DECLARE_MEMBERS (OdGsModel)
 
virtual void setOpenDrawableFn (OdGiOpenDrawableFn openDrawableFn)=0
 
virtual void onAdded (OdGiDrawable *pAdded, OdGiDrawable *pParent)=0
 
virtual void onAdded (OdGiDrawable *pAdded, OdDbStub *parentID)=0
 
virtual void onModified (OdGiDrawable *pModified, OdGiDrawable *pParent)=0
 
virtual void onModified (OdGiDrawable *pModified, OdDbStub *parentID)=0
 
virtual void onModifiedGraphics (const OdGiDrawable *pModified, OdDbStub *parentID)=0
 
virtual void onErased (OdGiDrawable *pErased, OdGiDrawable *pParent)=0
 
virtual void onErased (OdGiDrawable *pErased, OdDbStub *parentID)=0
 
virtual void onUnerased (OdGiDrawable *pUnerased, OdGiDrawable *pParent)
 
virtual void onUnerased (OdGiDrawable *pUnerased, OdDbStub *parentID)
 
virtual void invalidate (InvalidationHint hint)=0
 
virtual void invalidate (OdGsView *pView)=0
 
virtual void invalidateVisible (OdGsDevice *pDevice)=0
 
virtual void setTransform (const OdGeMatrix3d &)=0
 
virtual OdGeMatrix3d transform () const =0
 
virtual void highlight (const OdGiPathNode &path, bool bDoIt=true, OdUInt32 nStyle=0, const OdGsView *pView=NULL)=0
 
virtual void highlight (const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool bDoIt=true, OdUInt32 nStyle=0, const OdGsView *pView=NULL)=0
 
virtual void hide (const OdGiPathNode &path, bool bDoIt=true, bool bSelectHidden=false, const OdGsView *pView=NULL)=0
 
virtual void hide (const OdGiPathNode &path, const OdGsMarker *pMarkers, OdUInt32 nMarkers, bool bDoIt=true, bool bSelectHidden=false, const OdGsView *pView=0)=0
 
virtual void setRenderType (RenderType renderType)=0
 
virtual RenderType renderType () const =0
 
virtual void setRenderModeOverride (OdGsView::RenderMode mode=OdGsView::kNone)=0
 
virtual OdGsView::RenderMode renderModeOverride () const =0
 
virtual void setViewClippingOverride (bool bEnable)=0
 
virtual bool viewClippingOverride () const =0
 
virtual void setBackground (OdDbStub *backgroundId)=0
 
virtual OdDbStub * background () const =0
 
virtual void setVisualStyle (OdDbStub *visualStyleId)=0
 
virtual OdDbStub * visualStyle () const =0
 
virtual void setVisualStyle (const OdGiVisualStyle &visualStyle)=0
 
virtual bool visualStyle (OdGiVisualStyle &visualStyle) const =0
 
virtual void addModelReactor (OdGsModelReactor *pReactor)=0
 
virtual void removeModelReactor (OdGsModelReactor *pReactor)=0
 
virtual void setEnableSectioning (bool bEnable)=0
 
virtual bool isSectioningEnabled () const =0
 
virtual bool setSectioning (const OdGePoint3dArray &points, const OdGeVector3d &upVector)=0
 
virtual bool setSectioning (const OdGePoint3dArray &points, const OdGeVector3d &upVector, double dTop, double dBottom)=0
 
virtual void setSectioningVisualStyle (OdDbStub *visualStyleId)=0
 
virtual void setEnableLinetypes (bool bEnable)=0
 
virtual bool isLinetypesEnabled () const =0
 
virtual void setSelectable (bool bEnable)=0
 
virtual bool isSelectable () const =0
 
virtual void setEnableViewExtentsCalculation (bool bEnable)=0
 
virtual bool isViewExtentsCalculationEnabled () const =0
 
virtual void setEnableLightsInBlocks (bool bEnable)=0
 
virtual bool isLightsInBlocksEnabled () const =0
 
virtual void setViewSectioningOverride (bool bEnable)=0
 
virtual bool viewSectioningOverride () 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
 

Public Attributes

OdRefCounter m_nMfCached
 
OdRefCounter m_nMfReused
 
OdArray< ViewRef, OdMemoryAllocator< ViewRef > > m_views
 
OdArray< ModuleRef, OdMemoryAllocator< ModuleRef > > m_modules
 

Protected Types

enum  GsModelFlags {
  kCheckFaded = (1 << 0) , kEnableLinetypes = (1 << 1) , kModelSelectable = (1 << 2) , kLightsInBlocks = (1 << 3) ,
  kSkipViewClip = (1 << 4) , kViewExtCalcs = (1 << 5) , kSkipViewSection = (1 << 6) , kIdentityXform = (1 << 7) ,
  kVectorizing = (1 << 8) , kKeepSelStyles = (1 << 9) , kDisableNotifications = (1 << 10) , kDisableInvalidate = (1 << 11)
}
 
typedef std::map< const OdGsNode *, OdUInt32SelectionStyleRefMap
 

Protected Member Functions

virtual void addNode (OdGsNode *pNode)
 
void addViewRef (OdGsViewImpl *pView)
 
void removeViewRef (OdGsViewImpl *pView)
 
void setInvalidVp (unsigned int viewportId, bool val)
 
virtual void clearChangedLayersList ()
 
bool supportSelectionStyles () const
 
void setSelectionStyleRef (const OdGsNode *pNode, OdUInt32 nStyle)
 
OdUInt32 selectionStyleRef (const OdGsNode *pNode) const
 
void extendSelStyleFlag (OdGsViewImpl *pView)
 
void rescanSelStyleFlag ()
 
 OdGsBaseModel ()
 
 ~OdGsBaseModel ()
 
void onModifiedNode (OdGsNode *pCache, OdGiDrawable *pDrawable, OdGiDrawable *pParent)
 
void onModifiedDrawable (OdGiDrawable *pDrawable, OdGiDrawable *pParent)
 
void onModifiedNodeImp (OdGsNode *pCache, OdGiDrawable *pDrawable, OdGiDrawable *pParent, bool bGraphicsOnly)
 
void onPropertyModifiedImpl (OdGsBaseModelReactor::ModelProperty nProp, bool &bReturnValue)
 
virtual bool onPropertyModified (OdGsBaseModelReactor::ModelProperty nProp)
 

Protected Attributes

OdGiOpenDrawableFn m_openDrawableFn
 
OdGsNodem_aNodes [kLastNodeType]
 
OdUInt32 m_gsModelFlags
 
OdArray< ViewPropsm_viewProps
 
OdUInt32 m_nLayers
 
OdGsLayerNodem_pFirstChangedLayer
 
OdGsView::RenderMode m_renderModeOverride
 
OdGeMatrix3d m_xForm
 
OdDbStub * m_modelBackground
 
OdDbStub * m_modelVisualStyle
 
OdGiDrawablePtr m_pTransVisualStyle
 
RenderType m_renderType
 
OdRxObjectPtr m_pGsReserved
 
OdGsMaterialCachePtr m_pMaterialCache
 
OdGsBaseModelImpl * m_impl
 
SectioningSettings m_sectioning
 
OdGsBaseModelLocalIdsPtr m_pViewIds
 
OdGsCacheRedirectionManagerm_pRedirectionMgr
 
OdVector< OdGsModelReactor *, OdMemoryAllocator< OdGsModelReactor * > > m_modelReactors
 
OdVector< OdGsBaseModelReactor *, OdMemoryAllocator< OdGsBaseModelReactor * > > m_baseModelReactors
 
SelectionStyleRefMap m_selStyleRefs
 

Friends

class CFxGsExtension
 
class OdGsNode
 
class OdGsViewImpl
 
class OdGsBaseVectorizer
 
class OdGsBaseVectorizeDevice
 
GS_TOOLKIT_EXPORT OdGiDrawablePtr fxOpenDrawable (OdGsBaseModel *, OdDbStub *)
 

Additional Inherited Members

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

Detailed Description

This class is the base class for custom GsBaseModel objects which coordinate custom caching support for client vectorization applications.

Remarks
Clients should derive their custom model classes from this class.

Corresponding C++ library: TD_Gs

<group OdGs_Classes>

Definition at line 95 of file GsBaseModel.h.

Member Typedef Documentation

◆ ModuleRef

typedef std::pair<const OdGsBaseModule*, OdUInt32> OdGsBaseModel::ModuleRef

Definition at line 177 of file GsBaseModel.h.

◆ SelectionStyleRefMap

typedef std::map<const OdGsNode*, OdUInt32> OdGsBaseModel::SelectionStyleRefMap
protected

Definition at line 271 of file GsBaseModel.h.

◆ ViewRef

Definition at line 175 of file GsBaseModel.h.

Member Enumeration Documentation

◆ AdditionMode

Enumerator
kAddDrawable 
kUneraseDrawable 

Definition at line 326 of file GsBaseModel.h.

◆ GsModelFlags

Enumerator
kCheckFaded 
kEnableLinetypes 
kModelSelectable 
kLightsInBlocks 
kSkipViewClip 
kViewExtCalcs 
kSkipViewSection 
kIdentityXform 
kVectorizing 
kKeepSelStyles 
kDisableNotifications 
kDisableInvalidate 

Definition at line 142 of file GsBaseModel.h.

Constructor & Destructor Documentation

◆ OdGsBaseModel()

OdGsBaseModel::OdGsBaseModel ( )
protected

◆ ~OdGsBaseModel()

OdGsBaseModel::~OdGsBaseModel ( )
protected

Member Function Documentation

◆ addModelReactor()

void OdGsBaseModel::addModelReactor ( OdGsModelReactor pReactor)
virtual

Adds a model reactor to process notifications.

Parameters
pReactor[in] Pointer to a model reactor.

Implements OdGsModel.

◆ addNode()

virtual void OdGsBaseModel::addNode ( OdGsNode pNode)
protectedvirtual

Adds the specified Node object to this BaseModel object.

Parameters
pNode[in] Pointer to the Node to be added.

◆ addViewRef()

void OdGsBaseModel::addViewRef ( OdGsViewImpl pView)
protected

◆ attachLocalViewportId()

virtual void OdGsBaseModel::attachLocalViewportId ( OdGsViewImpl pView,
OdGsViewImpl pFrom = NULL 
)
virtual

◆ background()

OdDbStub * OdGsBaseModel::background ( ) const
virtual

Returns the background.

See also
<link tv_working_with_attributes_view_backgrounds, Work with View Backgrounds>

Implements OdGsModel.

◆ checkFaded()

bool OdGsBaseModel::checkFaded ( ) const
inline

Definition at line 162 of file GsBaseModel.h.

◆ clearChangedLayersList()

virtual void OdGsBaseModel::clearChangedLayersList ( )
protectedvirtual

◆ detach()

virtual void OdGsBaseModel::detach ( OdGsNode pNode)
virtual

Removes the associations between the specified Node object and this BaseModel object.

Parameters
pNode[in] Pointer to the Node object.

◆ detachAll()

virtual void OdGsBaseModel::detachAll ( )
virtual

Removes all Node objects from this BaseModel object.

◆ detachAllFromDb()

void OdGsBaseModel::detachAllFromDb ( const OdDbBaseDatabase pDb)

◆ disableNotifications()

virtual bool OdGsBaseModel::disableNotifications ( ) const
inlinevirtual

Definition at line 166 of file GsBaseModel.h.

◆ drawableGsNode()

OdGsCache * OdGsBaseModel::drawableGsNode ( const OdGiDrawable pDrawable)

Gets OdGsCache object from specified Drawable object.

Parameters
pDrawable[in] Drawable object pointer.

◆ extendSelStyleFlag()

void OdGsBaseModel::extendSelStyleFlag ( OdGsViewImpl pView)
protected

◆ getLocalViewportId()

virtual OdUInt32 OdGsBaseModel::getLocalViewportId ( OdGsViewImpl pView)
virtual

◆ getMaxLocalViewportId()

virtual OdUInt32 OdGsBaseModel::getMaxLocalViewportId ( ) const
virtual

◆ getSectioning()

const SectioningSettings & OdGsBaseModel::getSectioning ( ) const
inline

Sets the visual style for the objects on the clipped side of the sectioning.

Parameters
visualStyleId[in] Visual style object ID.
Remarks
If the input parameter is a null object ID, the clipped side should not be drawn.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>
<link tv_planarClip_classes, Main Classes for Planar Clipping Section Generation>
<link tv_working_with_attributes_visual_styles, Work with Visual Styles>

Definition at line 687 of file GsBaseModel.h.

◆ getViewProps()

const ViewPropsArray & OdGsBaseModel::getViewProps ( ) const
inline

Definition at line 179 of file GsBaseModel.h.

◆ gsLayerNode()

virtual OdGsLayerNode * OdGsBaseModel::gsLayerNode ( OdDbStub *  layerId,
const OdGsBaseVectorizer pView 
)
virtual

Checks whether view properties are valid for the specified viewport.

Parameters
layerId[in] Pointer to the persistent layer identifier.
pView[in] Pointer to the view for .

◆ gsNode()

virtual OdGsNode * OdGsBaseModel::gsNode ( OdGiDrawable pDrawable)
virtual

Returns the OdGsNode object associated with the specified Drawable.

Parameters
pDrawable[in] Pointer to the Drawable object.
Remarks
If no Node object is associated with the Drawable object, one is created.

◆ hasChangedLayers()

bool OdGsBaseModel::hasChangedLayers ( ) const
inline

Checks whether this model has changed layers.

Returns
true if this model has changed layers, false otherwise.
See also
<link tv_working_with_attributes_layers, Work with Layers>

Definition at line 592 of file GsBaseModel.h.

◆ hide() [1/2]

void OdGsBaseModel::hide ( const OdGiPathNode path,
bool  bDoIt = true,
bool  bSelectHidden = false,
const OdGsView pView = NULL 
)
virtual

Hides the specified entity in this Model object.

Parameters
path[in] Path to the entity for hide.
bDoIt[in] Flag that indicates whether hiding is enabled (true value) or disabled (false value).
bSelectHidden[in] Flag that indicates whether hidden object is selectable or not.
pView[in] Pointer to the view where the specified entity should be hidden.

Implements OdGsModel.

◆ hide() [2/2]

void OdGsBaseModel::hide ( const OdGiPathNode path,
const OdGsMarker pMarkers,
OdUInt32  nMarkers,
bool  bDoIt = true,
bool  bSelectHidden = false,
const OdGsView pView = NULL 
)
virtual

Hides the specified subentities of entity in this Model object..

Parameters
path[in] Path to the entity for hide.
pMarkers[in] Array of subentity markers.
nMarkers[in] Count of subentity markers.
bDoIt[in] Flag that indicates whether hiding is enabled (true value) or disabled (false value).
bSelectHidden[in] Flag that indicates whether hidden object is selectable or not.
pView[in] Pointer to the view where the specified entity should be hidden.

Implements OdGsModel.

◆ hideImpl()

virtual void OdGsBaseModel::hideImpl ( const OdGiPathNode path,
const OdGsMarker pMarkers,
OdUInt32  nMarkers,
bool  bDoIt = true,
bool  bSelectHidden = false,
const OdGsView pView = NULL 
)
virtual

Hides the specified subentities of entity in this Model object..

Parameters
path[in] Path to the entity for hide.
pMarkers[in] Array of subentity markers.
nMarkers[in] Count of subentity markers.
bDoIt[in] Flag that indicates whether hiding is enabled (true value) or disabled (false value).
bSelectHidden[in] Flag that indicates whether hidden object is selectable or not.
pView[in] Pointer to the view where the specified entity should be hidden.

◆ highlight() [1/2]

void OdGsBaseModel::highlight ( const OdGiPathNode path,
bool  bDoIt = true,
OdUInt32  nStyle = 0,
const OdGsView pView = NULL 
)
virtual

Highlights or unhighlights the passed path.

Parameters
path[in] A path to subitems that should be highlighted.
bDoIt[in] A flag value that determines whether highlighting is enabled (if true) or disabled (if false). This flag can switch the highlighting on or off.
nStyle[in] Selection style index.
pView[in] Pointer to the view in which to highlight or unhighlight the path.
See also
<link tv_working_with_features_highlighting, Work with Highlighting>

Implements OdGsModel.

◆ highlight() [2/2]

void OdGsBaseModel::highlight ( const OdGiPathNode path,
const OdGsMarker pMarkers,
OdUInt32  nMarkers,
bool  bDoIt = true,
OdUInt32  nStyle = 0,
const OdGsView pView = NULL 
)
virtual

Highlights or unhighlights the passed path.

Parameters
path[in] A path to subitems that should be highlighted.
pMarkers[in] Pointer to an array of markers.
nMarkers[in] Number of markers in the array.
bDoIt[in] A flag value that determines whether highlighting is enabled (if true) or disabled (if false). This flag can switch the highlighting on or off.
nStyle[in] Selection style index.
pView[in] Pointer to the view in which to highlight or unhighlight the path.
See also
<link tv_working_with_features_highlighting, Work with Highlighting>

Implements OdGsModel.

◆ highlightImpl()

virtual void OdGsBaseModel::highlightImpl ( const OdGiPathNode path,
const OdGsMarker pMarkers,
OdUInt32  nMarkers,
bool  bDoIt = true,
OdUInt32  nStyle = 0,
const OdGsView pView = NULL 
)
virtual

◆ impl()

OdGsBaseModelImpl * OdGsBaseModel::impl ( )
inline

Definition at line 197 of file GsBaseModel.h.

◆ invalidate() [1/3]

void OdGsBaseModel::invalidate ( InvalidationHint  hint)
virtual

Invalidates the specified cached data contained in this Model object.

Parameters
hint[in] Invalidation hint.
Remarks
Hint must be one of the following:

Value kInvalidateIsolines 0 kInvalidateViewportCache 1 kInvalidateAll 2 kInvalidateMaterials 3 kInvalidateLinetypes 4

Implements OdGsModel.

◆ invalidate() [2/3]

void OdGsBaseModel::invalidate ( OdGsView pView)
virtual

Invalidates cached data associated with the specified View object.

Parameters
pView[in] Pointer to the OdGsView object for which data is to be invalidated.

Implements OdGsModel.

◆ invalidate() [3/3]

void OdGsBaseModel::invalidate ( OdGsViewImpl view,
OdUInt32  mask 
)
Parameters
view[in] BaseVectorizeView object for which data are to be invalidated.
mask[in] Mask.

◆ invalidateEntRect() [1/2]

virtual void OdGsBaseModel::invalidateEntRect ( OdGiDrawable pDrawable,
OdGiDrawable pParent,
bool  bForceIfNoExtents = false 
)
virtual

◆ invalidateEntRect() [2/2]

virtual void OdGsBaseModel::invalidateEntRect ( OdGsEntityNode pNode,
OdGsContainerNode pParent,
bool  bForceIfNoExtents 
)
virtual

◆ invalidateRegenDrawBlocks()

void OdGsBaseModel::invalidateRegenDrawBlocks ( OdGsViewImpl view,
const OdDbStub *  layoutId 
)

◆ invalidateSectionableBlocks()

void OdGsBaseModel::invalidateSectionableBlocks ( )

◆ invalidateVisible()

void OdGsBaseModel::invalidateVisible ( OdGsDevice pDevice)
virtual

Invalidates cached data that visible on the device.

Parameters
pView[in] Pointer to the OdGsDevice object for which data is to be invalidated.

Implements OdGsModel.

◆ invalidVp()

bool OdGsBaseModel::invalidVp ( unsigned int  viewportId) const
inline

For internal needs. Do not use!

Definition at line 190 of file GsBaseModel.h.

◆ isIdentityTransform()

bool OdGsBaseModel::isIdentityTransform ( ) const
inline

Checks whether this object stores an identity matrix (default matrix) for transformations.

Returns
true if this object has an identity matrix, false otherwise.

Definition at line 866 of file GsBaseModel.h.

◆ isLightsInBlocksEnabled()

bool OdGsBaseModel::isLightsInBlocksEnabled ( ) const
virtual

Checks whether lights are enabled inside blocks.

Returns
true if lights are enabled inside blocks, false otherwise.
See also
<link tv_working_with_lights, Work with Lights>
<link tv_working_with_base_classes_reference_geometry, Work with Reference Geometry>

Implements OdGsModel.

◆ isLinetypesEnabled()

bool OdGsBaseModel::isLinetypesEnabled ( ) const
virtual

Checks whether linetype display in any OdGsView object that views this Model object is enabled.

Returns
true if linetype display is enabled, false otherwise.

Implements OdGsModel.

◆ isSectioningEnabled()

bool OdGsBaseModel::isSectioningEnabled ( ) const
virtual

Checks whether sectioning is enabled for this model.

Returns
true if sectioning is enabled for this model, false otherwise.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>
<link tv_planarClip_classes, Main Classes for Planar Clipping Section Generation>

Implements OdGsModel.

◆ isSelectable()

bool OdGsBaseModel::isSelectable ( ) const
virtual

Checks whether this model is selectable (provides an ability to select entities inside this Model object).

Returns
true if this model is selectable, false otherwise.

Implements OdGsModel.

◆ isViewExtentsCalculationEnabled()

bool OdGsBaseModel::isViewExtentsCalculationEnabled ( ) const
virtual

Checks whether extents calculation for entities inside this Model object is enabled.

Returns
true if extents calculation for entities inside this Model object is enabled, false otherwise.

Implements OdGsModel.

◆ isViewPropsValid()

virtual bool OdGsBaseModel::isViewPropsValid ( OdUInt32  viewportId) const
virtual

Checks whether view properties are valid for the specified viewport.

Parameters
viewport[in] Viewport.

◆ loadClientModelState()

virtual bool OdGsBaseModel::loadClientModelState ( OdGsFiler pFiler)
virtual

◆ loadModelState()

virtual bool OdGsBaseModel::loadModelState ( OdGsFiler pFiler,
OdGsBaseVectorizer pVectorizer = NULL 
)
virtual

◆ makeStock()

virtual bool OdGsBaseModel::makeStock ( OdDbStub *  layoutId)
virtual

◆ materialCache()

OdGsMaterialCache * OdGsBaseModel::materialCache ( )
inline

Retrieves material cache.

Definition at line 514 of file GsBaseModel.h.

◆ newNode()

virtual OdGsNode * OdGsBaseModel::newNode ( ENodeType  ntp,
const OdGiDrawable drawable,
bool  bSetGsNode 
)
virtual

◆ numViewProps()

OdUInt32 OdGsBaseModel::numViewProps ( ) const
inline

Returns the size of the ViewProperties array for this BaseModel object.

Definition at line 838 of file GsBaseModel.h.

◆ onAdded() [1/2]

void OdGsBaseModel::onAdded ( OdGiDrawable pAdded,
OdDbStub *  parentID 
)
virtual

Notification function called whenever a drawable object is added to this Model object.

Parameters
pAdded[in] Pointer to the added Drawable object.
parentID[in] Object ID of the parent of the added Drawable object.

Implements OdGsModel.

◆ onAdded() [2/2]

void OdGsBaseModel::onAdded ( OdGiDrawable pAdded,
OdGiDrawable pParent 
)
virtual

Notification function called whenever a drawable object is added to this Model object.

Parameters
pAdded[in] Pointer to the added Drawable object.
pParent[in] Pointer to the parent of the added Drawable object.

Implements OdGsModel.

◆ onAddedImpl()

virtual void OdGsBaseModel::onAddedImpl ( OdGiDrawable pAdded,
OdGiDrawable pParent,
AdditionMode  additionMode = kAddDrawable 
)
virtual

◆ onErased() [1/2]

void OdGsBaseModel::onErased ( OdGiDrawable pErased,
OdDbStub *  parentID 
)
virtual

Notification function called whenever a drawable object is erased from this Model object.

Parameters
pErased[in] Pointer to the erased Drawable object.
parentID[in] Object ID of the parent of the erased Drawable object.

Implements OdGsModel.

◆ onErased() [2/2]

void OdGsBaseModel::onErased ( OdGiDrawable pErased,
OdGiDrawable pParent 
)
virtual

Notification function called whenever a drawable object is erased from this Model object.

Parameters
pErased[in] Pointer to the erased Drawable object.
pParent[in] Pointer to the parent of the erased Drawable object.

Implements OdGsModel.

◆ onErasedImpl()

virtual void OdGsBaseModel::onErasedImpl ( OdGiDrawable pErased,
OdGiDrawable pParent 
)
virtual

◆ onModified() [1/2]

void OdGsBaseModel::onModified ( OdGiDrawable pModified,
OdDbStub *  parentID 
)
virtual

Notification function called whenever a drawable object is modified in this Model object.

Parameters
pModified[in] Pointer to the modified Drawable object.
parentID[in] Object ID of the parent of the modified Drawable object.

Implements OdGsModel.

◆ onModified() [2/2]

void OdGsBaseModel::onModified ( OdGiDrawable pModified,
OdGiDrawable pParent 
)
virtual

Notification function called whenever a drawable object is modified in this Model object.

Parameters
pModified[in] Pointer to the modified Drawable object.
pParent[in] Pointer to the parent of the modified Drawable object.

Implements OdGsModel.

◆ onModifiedDrawable()

void OdGsBaseModel::onModifiedDrawable ( OdGiDrawable pDrawable,
OdGiDrawable pParent 
)
protected

◆ onModifiedGraphics()

virtual void OdGsBaseModel::onModifiedGraphics ( const OdGiDrawable pModified,
OdDbStub *  parentID 
)
virtual

Function to call directly whenever a drawable object's graphics has been modified but not the drawable itself

Parameters
pModified[in] Pointer to the Drawable object with modified graphics
parentID[in] Object ID of the parent of the modified Drawable object.

Implements OdGsModel.

◆ onModifiedImpl()

virtual void OdGsBaseModel::onModifiedImpl ( OdGiDrawable pModified,
OdGiDrawable pParent 
)
virtual

◆ onModifiedNode()

void OdGsBaseModel::onModifiedNode ( OdGsNode pCache,
OdGiDrawable pDrawable,
OdGiDrawable pParent 
)
protected

◆ onModifiedNodeImp()

void OdGsBaseModel::onModifiedNodeImp ( OdGsNode pCache,
OdGiDrawable pDrawable,
OdGiDrawable pParent,
bool  bGraphicsOnly 
)
protected

◆ onPropertyModified()

virtual bool OdGsBaseModel::onPropertyModified ( OdGsBaseModelReactor::ModelProperty  nProp)
protectedvirtual

◆ onPropertyModifiedImpl()

void OdGsBaseModel::onPropertyModifiedImpl ( OdGsBaseModelReactor::ModelProperty  nProp,
bool &  bReturnValue 
)
protected

◆ onUnerased() [1/2]

void OdGsBaseModel::onUnerased ( OdGiDrawable pUnerased,
OdDbStub *  parentID 
)
virtual

Notification function called whenever a drawable object is unerased in this Model object.

Parameters
pUnerased[in] Pointer to the unerased Drawable object.
parentID[in] Object ID of the parent of the unerased Drawable object.

Reimplemented from OdGsModel.

◆ onUnerased() [2/2]

void OdGsBaseModel::onUnerased ( OdGiDrawable pUnerased,
OdGiDrawable pParent 
)
virtual

Notification function called whenever a drawable object is unerased in this Model object.

Parameters
pUnerased[in] Pointer to the unerased Drawable object.
pParent[in] Pointer to the parent of the unerased Drawable object.

Reimplemented from OdGsModel.

◆ open()

OdGiDrawablePtr OdGsBaseModel::open ( OdDbStub *  objectId)
inline

Opens the specified object.

Parameters
objectID[in] Object ID of the Drawable object to be opened.
Returns
Returns a SmartPointer to the opened object.

Definition at line 825 of file GsBaseModel.h.

◆ openDrawableFn()

OdGiOpenDrawableFn OdGsBaseModel::openDrawableFn ( ) const

◆ postprocessModelLoading()

bool OdGsBaseModel::postprocessModelLoading ( OdGsFiler pFiler)

◆ propagateLayerChanges()

virtual void OdGsBaseModel::propagateLayerChanges ( OdGsBaseVectorizeDevice device)
virtual

Notifies layer changes to the specified device.

Parameters
device[in] Vectorization device.

◆ refDevice()

OdGsBaseVectorizeDevice * OdGsBaseModel::refDevice ( ) const

◆ refModulesCount()

OdUInt32 OdGsBaseModel::refModulesCount ( ) const
inline

Definition at line 182 of file GsBaseModel.h.

◆ refView()

OdGsViewImpl * OdGsBaseModel::refView ( ) const
inline

Definition at line 854 of file GsBaseModel.h.

◆ releaseStock()

virtual void OdGsBaseModel::releaseStock ( OdDbStub *  layoutId)
virtual

◆ removeModelReactor()

void OdGsBaseModel::removeModelReactor ( OdGsModelReactor pReactor)
virtual

Removes a model reactor.

Parameters
pReactor[in] Pointer to a model reactor.

Implements OdGsModel.

◆ removeViewRef()

void OdGsBaseModel::removeViewRef ( OdGsViewImpl pView)
protected

◆ renderModeOverride()

OdGsView::RenderMode OdGsBaseModel::renderModeOverride ( ) const
inlinevirtual

Returns the render mode override.

See also
<exref target="https://docs.opendesign.com/tv/tv_working_with_base_classes_view_functionality.html#7">Managing Render Modes</exref>

Implements OdGsModel.

Definition at line 808 of file GsBaseModel.h.

◆ renderType()

OdGsModel::RenderType OdGsBaseModel::renderType ( ) const
inlinevirtual

Returns the render type.

See also
<exref target="https://docs.opendesign.com/tv/tv_working_with_base_classes_view_functionality.html#7">Managing Render Modes</exref>

Implements OdGsModel.

Definition at line 861 of file GsBaseModel.h.

◆ rescanSelStyleFlag()

void OdGsBaseModel::rescanSelStyleFlag ( )
protected

◆ resetVectorizing()

void OdGsBaseModel::resetVectorizing ( )
inline

Definition at line 165 of file GsBaseModel.h.

◆ saveClientModelState()

virtual bool OdGsBaseModel::saveClientModelState ( OdGsFiler pFiler) const
virtual

◆ saveModelState()

virtual bool OdGsBaseModel::saveModelState ( OdGsFiler pFiler,
OdGsBaseVectorizer pVectorizer = NULL 
) const
virtual

◆ selectionStyleRef()

OdUInt32 OdGsBaseModel::selectionStyleRef ( const OdGsNode pNode) const
protected

◆ setBackground()

void OdGsBaseModel::setBackground ( OdDbStub *  backgroundId)
virtual

Sets the background.

Parameters
backgroundId[in] Persistent identifier of a background.
See also
<link tv_working_with_attributes_view_backgrounds, Work with View Backgrounds>

Implements OdGsModel.

◆ setCheckFaded()

void OdGsBaseModel::setCheckFaded ( bool  bOn)
inline

Definition at line 163 of file GsBaseModel.h.

◆ setDisableNotifications()

void OdGsBaseModel::setDisableNotifications ( bool  bOn)
inline

Definition at line 167 of file GsBaseModel.h.

◆ setDrawableGsNode()

void OdGsBaseModel::setDrawableGsNode ( OdGiDrawable pDrawable,
OdGsCache pNode 
)

Sets OdGsCache object in specified Drawable object.

Parameters
pDrawable[in] Drawable object pointer.
pNode[in] OdGsCache object to set.

◆ setEnableLightsInBlocks()

void OdGsBaseModel::setEnableLightsInBlocks ( bool  bEnable)
virtual

Enables or disables lights in blocks.

Parameters
bEnable[in] Flag that specifies whether to enable lights inside blocks.
See also
<link tv_working_with_lights, Work with Lights>
<link tv_working_with_base_classes_reference_geometry, Work with Reference Geometry>

Implements OdGsModel.

◆ setEnableLinetypes()

void OdGsBaseModel::setEnableLinetypes ( bool  bEnable)
virtual

Enables or disables linetype display in any OdGsView object that views this Model object.

Parameters
bEnable[in] Flag that specifies whether to enable linetype display.

Implements OdGsModel.

◆ setEnableSectioning()

void OdGsBaseModel::setEnableSectioning ( bool  bEnable)
virtual

Specifies whether sectioning should be enabled for this model.

Parameters
bEnable[in] Enables or disables sectioning.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>
<link tv_planarClip_classes, Main Classes for Planar Clipping Section Generation>

Implements OdGsModel.

◆ setEnableViewExtentsCalculation()

void OdGsBaseModel::setEnableViewExtentsCalculation ( bool  bEnable)
virtual

Enables or disables extents calculation for entities inside this Model object.

Parameters
bEnable[in] Extents calculation for entities inside this model.

Implements OdGsModel.

◆ setInvalidVp()

void OdGsBaseModel::setInvalidVp ( unsigned int  viewportId,
bool  val 
)
inlineprotected

For internal needs. Do not use!

Definition at line 229 of file GsBaseModel.h.

◆ setOpenDrawableFn()

void OdGsBaseModel::setOpenDrawableFn ( OdGiOpenDrawableFn  openDrawableFn)
virtual

Specifies the function called for drawable object open by this Model object.

Parameters
openDrawableFn[in] Function to be called.

Implements OdGsModel.

◆ setRenderModeOverride()

void OdGsBaseModel::setRenderModeOverride ( OdGsView::RenderMode  mode = OdGsView::kNone)
virtual

Sets the render mode override.

Parameters
mode[in] Render mode override.
See also
<exref target="https://docs.opendesign.com/tv/tv_working_with_base_classes_view_functionality.html#7">Managing Render Modes</exref>

Implements OdGsModel.

◆ setRenderType()

void OdGsBaseModel::setRenderType ( RenderType  renderType)
virtual

Sets the render type.

Parameters
renderType[in] Render mode.
See also
<exref target="https://docs.opendesign.com/tv/tv_working_with_base_classes_view_functionality.html#7">Managing Render Modes</exref>

Implements OdGsModel.

◆ setSectioning() [1/2]

bool OdGsBaseModel::setSectioning ( const OdGePoint3dArray points,
const OdGeVector3d upVector 
)
virtual

Sets active sectioning for this model. After specifying the sectioning, it should be enabled by the setEnableSectioning() method.

Parameters
points[in] Array of co-planar points specifying a sectioning region.
upVector[in] Vector that specifies the orientation of the plane that contains points.
Returns
true if the specified sectioning is valid. Returns false if the specified sectioning is invalid or malformed.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>
<link tv_planarClip_classes, Main Classes for Planar Clipping Section Generation>

Implements OdGsModel.

◆ setSectioning() [2/2]

bool OdGsBaseModel::setSectioning ( const OdGePoint3dArray points,
const OdGeVector3d upVector,
double  dTop,
double  dBottom 
)
virtual

Sets active sectioning for this model. The sectioning is capped vertically using the specified top and bottom heights. After specifying the sectioning, it should be enabled by the setEnableSectioning() method.

Parameters
points[in] Array of co-planar points specifying a sectioning region.
upVector[in] Vector that specifies the orientation of the plane that contains points.
dTop[in] Specifies the top capping height of the sectioning.
dBottom[in] Specifies the bottom capping height of the sectioning.
Returns
true if the specified sectioning is valid. Returns false if the specified sectioning is invalid or malformed.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>
<link tv_planarClip_classes, Main Classes for Planar Clipping Section Generation>

Implements OdGsModel.

◆ setSectioningVisualStyle()

void OdGsBaseModel::setSectioningVisualStyle ( OdDbStub *  visualStyleId)
virtual

Sets the visual style for the objects on the clipped side of the sectioning.

Parameters
visualStyleId[in] Visual style object ID.
Remarks
If the input parameter is a null object ID, the clipped side should not be drawn.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>
<link tv_planarClip_classes, Main Classes for Planar Clipping Section Generation>
<link tv_working_with_attributes_visual_styles, Work with Visual Styles>

Implements OdGsModel.

◆ setSelectable()

void OdGsBaseModel::setSelectable ( bool  bEnable)
virtual

Enables or disables selectability of this model (ability to select entities inside this Model object).

Parameters
bEnable[in] Flag that specifies whether to enable selectability of this model.

Implements OdGsModel.

◆ setSelectionStyleRef()

void OdGsBaseModel::setSelectionStyleRef ( const OdGsNode pNode,
OdUInt32  nStyle 
)
protected

◆ setTransform()

void OdGsBaseModel::setTransform ( const OdGeMatrix3d xForm)
virtual

Sets transformation matrix.

Parameters
xForm[in] Transformation matrix.

Implements OdGsModel.

◆ setVectorizing()

void OdGsBaseModel::setVectorizing ( )
inline

Definition at line 164 of file GsBaseModel.h.

◆ setViewClippingOverride()

void OdGsBaseModel::setViewClippingOverride ( bool  bEnable)
virtual

Specifies whether this model's geometry should ignore the view's front and back clipping planes (if any) and viewport 3d clipping (if set). If the method's input value is false, the view's clipping planes and viewport 3d clipping are allowed by this Model object.

Parameters
bEnable[in] Flag that specifies whether the model ignores the view's clipping planes and viewport 3d clipping.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>

Implements OdGsModel.

◆ setViewSectioningOverride()

void OdGsBaseModel::setViewSectioningOverride ( bool  bEnable)
virtual

Specifies whether this model's geometry should ignore the view's front and back clipping planes (if any) and viewport 3d clipping (if set). If the method's input value is false, the view's clipping planes and viewport 3d clipping are allowed by this Model object.

Parameters
bEnable[in] Flag that specifies whether to enable view sectioning override in this Model object.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>
<link tv_planarClip, Main Classes for Planar Clipping Section Generation>

Implements OdGsModel.

◆ setVisualStyle() [1/2]

void OdGsBaseModel::setVisualStyle ( const OdGiVisualStyle visualStyle)
virtual

Sets the visual style.

Parameters
visualStyle[in] Visual style to set.
See also
<link tv_working_with_attributes_visual_styles, Work with Visual Styles>

Implements OdGsModel.

◆ setVisualStyle() [2/2]

void OdGsBaseModel::setVisualStyle ( OdDbStub *  visualStyleId)
virtual

Sets the visual style.

Parameters
visualStyleId[in] Persistent identifier of a background.
See also
<link tv_working_with_attributes_visual_styles, Work with Visual Styles>

Implements OdGsModel.

◆ supportSelectionStyles()

bool OdGsBaseModel::supportSelectionStyles ( ) const
inlineprotected

Definition at line 236 of file GsBaseModel.h.

◆ transform()

OdGeMatrix3d OdGsBaseModel::transform ( ) const
virtual

Returns transformation matrix.

Implements OdGsModel.

◆ transformExtents()

OdGeExtents3d & OdGsBaseModel::transformExtents ( OdGeExtents3d pExts) const

Transforms extents of the passed object by the transformation matrix of this object and returns the transformed extents.

Parameters
pExts[in/out] Pointer to the extents to transform.

◆ trySetDisableInvalidate()

bool OdGsBaseModel::trySetDisableInvalidate ( bool  bOn)

◆ updateViewProps()

virtual void OdGsBaseModel::updateViewProps ( const OdGsViewImpl viewport)
virtual

Updates the ViewProps structure for the specified Viewport.

Parameters
viewport[in] Viewport.

◆ viewById()

const OdGsViewImpl * OdGsBaseModel::viewById ( OdUInt32  viewportId) const

Returns view pointer by specified Viewport ID.

Parameters
viewportId[in] Viewport ID.

◆ viewChanges()

OdUInt32 OdGsBaseModel::viewChanges ( OdUInt32  viewportId) const
inline

Returns the view properties that have changed for the specified Viewport

Parameters
viewportId[in] Viewport ID.

Definition at line 849 of file GsBaseModel.h.

◆ viewClippingOverride()

bool OdGsBaseModel::viewClippingOverride ( ) const
inlinevirtual

Checks whether view clipping override is enabled for this Model object.

Returns
true if view clipping override is enabled for this Model object, false otherwise.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>

Implements OdGsModel.

Definition at line 813 of file GsBaseModel.h.

◆ viewProps()

const ViewProps & OdGsBaseModel::viewProps ( OdUInt32  viewportId) const
inline

Returns a reference to the the ViewProp structure for the specified Viewport.

Parameters
viewportId[in] Viewport ID.

Definition at line 843 of file GsBaseModel.h.

◆ viewSectioningOverride()

bool OdGsBaseModel::viewSectioningOverride ( ) const
inlinevirtual

Checks the current state of view sectioning override.

Returns
true if view sectioning override is enabled, false otherwise.
See also
<link tv_working_with_features_cutting_planes, Work with Cutting Planes>
<link tv_planarClip, Main Classes for Planar Clipping Section Generation>

Implements OdGsModel.

Definition at line 820 of file GsBaseModel.h.

◆ visualStyle() [1/2]

OdDbStub * OdGsBaseModel::visualStyle ( ) const
virtual

Returns the visual style.

See also
<link tv_working_with_attributes_visual_styles, Work with Visual Styles>

Implements OdGsModel.

◆ visualStyle() [2/2]

bool OdGsBaseModel::visualStyle ( OdGiVisualStyle visualStyle) const
virtual

Returns the visual style.

Parameters
visualStyleId[out] Receives visual style.
See also
<link tv_working_with_attributes_visual_styles, Work with Visual Styles>

Implements OdGsModel.

◆ visualStyleDrawable()

const OdGiDrawable * OdGsBaseModel::visualStyleDrawable ( ) const
inline

Definition at line 871 of file GsBaseModel.h.

Friends And Related Function Documentation

◆ CFxGsExtension

friend class CFxGsExtension
friend

Definition at line 98 of file GsBaseModel.h.

◆ fxOpenDrawable

GS_TOOLKIT_EXPORT OdGiDrawablePtr fxOpenDrawable ( OdGsBaseModel ,
OdDbStub *   
)
friend

◆ OdGsBaseVectorizeDevice

friend class OdGsBaseVectorizeDevice
friend

Definition at line 108 of file GsBaseModel.h.

◆ OdGsBaseVectorizer

friend class OdGsBaseVectorizer
friend

Definition at line 107 of file GsBaseModel.h.

◆ OdGsNode

friend class OdGsNode
friend

Definition at line 105 of file GsBaseModel.h.

◆ OdGsViewImpl

friend class OdGsViewImpl
friend

Definition at line 106 of file GsBaseModel.h.

Member Data Documentation

◆ m_aNodes

OdGsNode* OdGsBaseModel::m_aNodes[kLastNodeType]
protected

Definition at line 103 of file GsBaseModel.h.

◆ m_baseModelReactors

OdVector<OdGsBaseModelReactor*, OdMemoryAllocator<OdGsBaseModelReactor*> > OdGsBaseModel::m_baseModelReactors
protected

Definition at line 269 of file GsBaseModel.h.

◆ m_gsModelFlags

OdUInt32 OdGsBaseModel::m_gsModelFlags
mutableprotected

Definition at line 160 of file GsBaseModel.h.

◆ m_impl

OdGsBaseModelImpl* OdGsBaseModel::m_impl
protected

Definition at line 261 of file GsBaseModel.h.

◆ m_modelBackground

OdDbStub* OdGsBaseModel::m_modelBackground
protected

Definition at line 250 of file GsBaseModel.h.

◆ m_modelReactors

OdVector<OdGsModelReactor*, OdMemoryAllocator<OdGsModelReactor*> > OdGsBaseModel::m_modelReactors
protected

Definition at line 268 of file GsBaseModel.h.

◆ m_modelVisualStyle

OdDbStub* OdGsBaseModel::m_modelVisualStyle
protected

Definition at line 251 of file GsBaseModel.h.

◆ m_modules

OdArray<ModuleRef, OdMemoryAllocator<ModuleRef> > OdGsBaseModel::m_modules

Definition at line 178 of file GsBaseModel.h.

◆ m_nLayers

OdUInt32 OdGsBaseModel::m_nLayers
protected

Definition at line 245 of file GsBaseModel.h.

◆ m_nMfCached

OdRefCounter OdGsBaseModel::m_nMfCached

Definition at line 138 of file GsBaseModel.h.

◆ m_nMfReused

OdRefCounter OdGsBaseModel::m_nMfReused

Definition at line 139 of file GsBaseModel.h.

◆ m_openDrawableFn

OdGiOpenDrawableFn OdGsBaseModel::m_openDrawableFn
protected

Definition at line 102 of file GsBaseModel.h.

◆ m_pFirstChangedLayer

OdGsLayerNode* OdGsBaseModel::m_pFirstChangedLayer
protected

Definition at line 246 of file GsBaseModel.h.

◆ m_pGsReserved

OdRxObjectPtr OdGsBaseModel::m_pGsReserved
protected

Definition at line 256 of file GsBaseModel.h.

◆ m_pMaterialCache

OdGsMaterialCachePtr OdGsBaseModel::m_pMaterialCache
protected

Definition at line 259 of file GsBaseModel.h.

◆ m_pRedirectionMgr

OdGsCacheRedirectionManager* OdGsBaseModel::m_pRedirectionMgr
protected

Definition at line 266 of file GsBaseModel.h.

◆ m_pTransVisualStyle

OdGiDrawablePtr OdGsBaseModel::m_pTransVisualStyle
protected

Definition at line 252 of file GsBaseModel.h.

◆ m_pViewIds

OdGsBaseModelLocalIdsPtr OdGsBaseModel::m_pViewIds
protected

Definition at line 265 of file GsBaseModel.h.

◆ m_renderModeOverride

OdGsView::RenderMode OdGsBaseModel::m_renderModeOverride
protected

Definition at line 248 of file GsBaseModel.h.

◆ m_renderType

RenderType OdGsBaseModel::m_renderType
protected

Definition at line 254 of file GsBaseModel.h.

◆ m_sectioning

SectioningSettings OdGsBaseModel::m_sectioning
protected

Definition at line 263 of file GsBaseModel.h.

◆ m_selStyleRefs

SelectionStyleRefMap OdGsBaseModel::m_selStyleRefs
protected

Definition at line 272 of file GsBaseModel.h.

◆ m_viewProps

OdArray<ViewProps> OdGsBaseModel::m_viewProps
protected

Definition at line 244 of file GsBaseModel.h.

◆ m_views

OdArray<ViewRef, OdMemoryAllocator<ViewRef> > OdGsBaseModel::m_views

Definition at line 176 of file GsBaseModel.h.

◆ m_xForm

OdGeMatrix3d OdGsBaseModel::m_xForm
protected

Definition at line 249 of file GsBaseModel.h.


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