v2.33
 
IModelView Interface Reference

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

Inheritance diagram for IModelView:
IView

Public Member Functions

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

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 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 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 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 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 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.