v2.11
IModelView Interface Reference

Base interface for views that work with model objects. More...

Inheritance diagram for IModelView:
IView

Public Member Functions

HRESULT SetObjectsVisibility ([in] SAFEARRAY(int) objectIds, [in] VARIANT_BOOL visible_)
 Changes the visibility state of a set of objects. More...
 
HRESULT IsObjectVisible ([in] int objectId, [out, retval] VARIANT_BOOL *pVisible)
 Returns the object's visibility state. More...
 
HRESULT SetObjectsVisualStyle ([in] SAFEARRAY(int) objectIds, [in] enum VisualStyle visualStyle_)
 Changes the visual style of a set of objects. More...
 
HRESULT GetObjectVisualStyle ([in] int objectId, [out, retval] enum VisualStyle *pVisualStyle)
 Returns the object's visual style. More...
 
HRESULT ShowObjects ([in] SAFEARRAY(int) objectIds)
 Show objects by a collection of their IDs. Implemented only for 3D view. More...
 

Properties

VisualStyle VisualStyle [get, set]
 The view's default visual style.
 
- Properties inherited from IView
int Id [get]
 The view ID.
 
ViewType Type [get]
 The actual type of the view.
 

Detailed Description

Base interface for views that work with model objects.

Member Function Documentation

◆ GetObjectVisualStyle()

HRESULT IModelView::GetObjectVisualStyle ( [in] int  objectId,
[out, retval] enum VisualStyle pVisualStyle 
)

Returns the object's visual style.

Parameters
[in]objectIdObject's identifier.
[out]pVisualStyleThe requested object visual style.

◆ IsObjectVisible()

HRESULT IModelView::IsObjectVisible ( [in] int  objectId,
[out, retval] VARIANT_BOOL *  pVisible 
)

Returns the object's visibility state.

Parameters
[in]objectIdObject's identifier.
[out]pVisibleTRUE if the object is visible, FALSE otherwise.

◆ SetObjectsVisibility()

HRESULT IModelView::SetObjectsVisibility ( [in] SAFEARRAY(int)  objectIds,
[in] VARIANT_BOOL  visible_ 
)

Changes the visibility state of a set of objects.

Parameters
[in]objectIdsArray of object identifiers.
[in]visible_New visibility state.

◆ SetObjectsVisualStyle()

HRESULT IModelView::SetObjectsVisualStyle ( [in] SAFEARRAY(int)  objectIds,
[in] enum VisualStyle  visualStyle_ 
)

Changes the visual style of a set of objects.

Parameters
[in]objectIdsArray of object identifiers.
[in]visualStyle_New visual style.

◆ ShowObjects()

HRESULT IModelView::ShowObjects ( [in] SAFEARRAY(int)  objectIds)

Show objects by a collection of their IDs. Implemented only for 3D view.

Parameters
[in]objectIdsAn array of IDs of object to select.