CFx SDK Documentation 2024 SP0
|
#include <GsModel.h>
Public Types | |
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 | |
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 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
The class represents collections of drawable objects in the ODA Platform framework.
Corresponding C++ library: TD_Gs
<group OdGs_Classes>
The InvalidationHint enumeration specifies how the Graphic System should process the invalidate() method.
Enumerator | |
---|---|
kInvalidateIsolines | |
kInvalidateViewportCache | |
kInvalidateAll | |
kInvalidateMaterials | |
kInvalidateLinetypes |
|
pure virtual |
Adds a model reactor for this Model object.
pReactor | [in] Model reactor |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns the OdDbBackground object ID if the background was set to this Model object.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Hides the specified entity in this Model object.
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. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Hides the specified subentities of entity in this Model object..
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. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Highlights the specified entity in this Model object.
path | [in] Path to the entity for highlighting. |
bDoIt | [in] Flag that indicates whether highlighting is enabled (true value) or disabled (false value). |
nStyle | [in] Selection style index. |
pView | [in] Pointer to the view where the specified entity should be highlighted. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Highlights the specified subentities of entity in this Model object.
path | [in] Path to the entity |
pMarkers | [in] Array of subentity markers |
nMarkers | [in] Count of subentity markers |
bDoIt | [in] Flag that indicates whether highlighting is enabled (true value) or disabled (false value). |
nStyle | [in] Selection style index. |
pView | [in] Pointer to the view where the specified entity should be highlighted. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Invalidates the specified cached data contained in this Model object.
hint | [in] Invalidation hint. |
Value kInvalidateIsolines 0 kInvalidateViewportCache 1 kInvalidateAll 2 kInvalidateMaterials 3 kInvalidateLinetypes 4
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
Invalidates cached data associated with the specified View object.
pView | [in] Pointer to the OdGsView object for which data is to be invalidated. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Invalidates cached data that visible on the device.
pView | [in] Pointer to the OdGsDevice object for which data is to be invalidated. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns true if lights in blocks are enabled or returns false in the other case.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns true if the linetype display is enabled or returns false in the other case.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns true if the sectioning is active in the views displaying this Model object. Returns false in the other case.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Checks whether entities inside this Model object is selectable. If the returning value is true, entities inside this Model object is selectable. If the returning value is false, entities inside this Model object is not selectable.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Checks whether entities inside this Model object is used for view extents calculation. If the returning value is true, entities inside this Model object will be used in view extents calculation. If the returning value is false, entities inside this Model object will be not used in view extents calculation.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
OdGsModel::ODRX_DECLARE_MEMBERS | ( | OdGsModel | ) |
|
pure virtual |
Notification function called whenever a drawable object is added to this Model object.
pAdded | [in] Pointer to the added Drawable object. |
parentID | [in] Object ID of the parent of the added Drawable object. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Notification function called whenever a drawable object is added to this Model object.
pAdded | [in] Pointer to the added Drawable object. |
pParent | [in] Pointer to the parent of the added Drawable object. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Notification function called whenever a drawable object is erased from this Model object.
pErased | [in] Pointer to the erased Drawable object. |
parentID | [in] Object ID of the parent of the erased Drawable object. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Notification function called whenever a drawable object is erased from this Model object.
pErased | [in] Pointer to the erased Drawable object. |
pParent | [in] Pointer to the parent of the erased Drawable object. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Notification function called whenever a drawable object is modified in this Model object.
pModified | [in] Pointer to the modified Drawable object. |
parentID | [in] Object ID of the parent of the modified Drawable object. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Notification function called whenever a drawable object is modified in this Model object.
pModified | [in] Pointer to the modified Drawable object. |
pParent | [in] Pointer to the parent of the modified Drawable object. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Function to call directly whenever a drawable object's graphics has been modified but not the drawable itself
pModified | [in] Pointer to the Drawable object with modified graphics |
parentID | [in] Object ID of the parent of the modified Drawable object. |
Implemented in OdGsModelRedirectionWrapper< Client, Base >, OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >, and OdGsBaseModel.
|
virtual |
Notification function called whenever a drawable object is unerased in this Model object.
pUnerased | [in] Pointer to the unerased Drawable object. |
parentID | [in] Object ID of the parent of the unerased Drawable object. |
Reimplemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
virtual |
Notification function called whenever a drawable object is unerased in this Model object.
pUnerased | [in] Pointer to the unerased Drawable object. |
pParent | [in] Pointer to the parent of the unerased Drawable object. |
Reimplemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Removes the specified model reactor from this Model object.
pReactor | [in] Pointer to the model reactor that should be removed |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns rendering mode override, specified for this Model object.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns the render type of this Model object.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Sets the background of this Model object.
backgroundId | [in] OdDbBackground object ID. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Enables or disables lights in blocks.
bEnable | [in] Boolean flag which enables (true value) or disables (false value) lights in blocks. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Enables or disables linetype display in any OdGsView object that views this Model object.
bEnable | [in] Boolean flag which enables (true value) or disables (false value) linetype display. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Enables the currently specified sectioning in the views displaying this Model object.
bEnable | [in] Boolean flag which indicates whether sectioning should be enabled |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Enables or disables extents calculation for entities inside this Model object. If the input value is true, entities inside this Model object will be used during view extents calculation. If the input value is false, entities inside this Model object will be not used in view extents calculations.
bEnable | [in] Boolean flag which indicates that Model entities which will be used during view extents calculation. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Specifies the function called for drawable object open by this Model object.
openDrawableFn | [in] Function to be called. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Sets the specified rendering mode override for this Model object.
mode | [in] Render mode override. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Sets the render type for this Model object.
renderType | [in] Render type. |
Implemented in OdGsModelRedirectionWrapper< Client, Base >, OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >, and OdGsBaseModel.
|
pure virtual |
Sets the active sectioning for this Model object. After specifying the sectioning, it should be enabled by the setEnableSectioning() method.
points | [in] Array of co-planar points specifying a sectioning region |
upVector | [in] Vector that specifies the orientation of the plane that contains points |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Sets the active sectioning for this Model object. The sectioning is capped vertically using the specified top and bottom heights. After specifying the sectioning, it should be enabled by the setEnableSectioning() method.
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 |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Sets the visual style for the objects on the clipped side of the sectioning.
visualStyleId | [in] Visual style object ID. Null by default. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Enables or disables the ability to select entities inside this Model object. If the input value is true, entities inside this Model object is selectable. If the input value is false, entities inside this Model object is not selectable.
bEnable | [in] Boolean flag which indicates whether this Model object is selectable. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Transforms this Model object by applying the specified transformation matrix to the model contents.
OdGeMatrix3d | [in] Transformation matrix. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Enables this model's geometry to 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.
bEnable | [in] Boolean flag which indicates that the model ignores the view's clipping planes and viewport 3d clipping (true value). |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Enables or disables view sectioning override. In case if view sectioning override enabled, sectioning, which is enabled for View object (which is represents this Model object), will be ignored for Drawable objects in this Model object.
bEnable | [in] Boolean flag which enabled (true value) or disables (false value) view sectioning override in this Model object. |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Sets the visual style for this Model object. This method is used to direct views to display the model in the specified visual style. By default, models are displayed in the visual style assigned to the view.
visualStyle | [in] Visual style object |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Sets the visual style for this Model object. This method is used to direct views to display the model in the specified visual style. By default, models are displayed in the visual style assigned to the view.
visualStyleId | [in] Visual style object ID used by objects in this model |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Obtains the current transformation matrix of this Model object.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns true in case if view clipping override enabled for this Model object, elsewhere returns false.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns current state of view sectioning override (true value in case if view sectioning override enabled or false elsewhere).
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns the visual style of this Model object.
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.
|
pure virtual |
Returns the visual style of this Model object.
visualStyle | [out] Visual style |
Implemented in OdGsBaseModel, OdGsModelRedirectionWrapper< Client, Base >, and OdGsModelRedirectionWrapper< OdGsModelRedirectionHandler >.