CFx SDK Documentation
2020SP3
|
#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 | 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, 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 void | setViewClippingOverride (bool bEnable)=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 | setEnableLightsInBlocks (bool bEnable)=0 |
virtual bool | isLightsInBlocksEnabled () 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 Teigha 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.
|
pure virtual |
Returns the OdDbBackground object ID if the background was set to this Model object.
Implemented in OdGsBaseModel.
|
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). |
pView | [in] Pointer to the view where the specified entity should be highlighted. |
Implemented in OdGsBaseModel.
|
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.
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.
|
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.
|
pure virtual |
Returns true if lights in blocks are enabled or returns false in the other case.
Implemented in OdGsBaseModel.
|
pure virtual |
Returns true if the linetype display is enabled or returns false in the other case.
Implemented in OdGsBaseModel.
|
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.
|
pure virtual |
Checks whether this Model object is selected. If the returning value is true, the Model object is selectable. If the returning value is false, the Model object is not selectable.
Implemented in OdGsBaseModel.
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
pure virtual |
Returns the render type of this Model object.
Implemented in OdGsBaseModel.
|
pure virtual |
Sets the background of this Model object.
backgroundId | [in] OdDbBackground object ID. |
Implemented in OdGsBaseModel.
|
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.
|
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.
|
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.
|
pure virtual |
Specifies the function called for drawable object open by this Model object.
openDrawableFn | [in] Function to be called. |
Implemented in OdGsBaseModel.
|
pure virtual |
Sets the specified rendering mode override for this Model object.
mode | [in] Render mode override. |
Implemented in OdGsBaseModel.
|
pure virtual |
Sets the render type for this Model object.
renderType | [in] Render type. |
Implemented in 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.
|
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.
|
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.
|
pure virtual |
Enables or disables the ability to select this Model object. If the input value is true, the Model object is selectable. If the input value is false, the Model object is unselectable.
bEnable | [in] Boolean flag which indicates whether this Model object is selectable |
Implemented in OdGsBaseModel.
|
pure virtual |
Transforms this Model object by applying the specified transformation matrix to the model contents.
OdGeMatrix3d | [in] Transformation matrix. |
Implemented in OdGsBaseModel.
|
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.
|
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.
|
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.
|
pure virtual |
Obtains the current transformation matrix of this Model object.
Implemented in OdGsBaseModel.
|
pure virtual |
Returns the visual style of this Model object.
Implemented in OdGsBaseModel.
|
pure virtual |
Returns the visual style of this Model object.
visualStyle | [out] Visual style |
Implemented in OdGsBaseModel.