DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Expand ModelsModels
Expand DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Expand ModelModel
Collapse ViewView
Expand General ComputingGeneral Computing
Expand ViewsViews
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > View > ISelection_DG Go to DGKC docs Search Documentation


ISelection_DG Interface

GetSelectedItems
SetSelected
ClearSelection

ISelection_DG can be queried from IView_DG. Typical query: dgControl.GetView() > ISelection_DG


IArray_DG GetSelectedItems()

The array contains IObject_DG elements. In v6.0 all elements are actually entities, so IEntity_DG and related interfaces can be queried.

Selection can be made by the end user or by the SetSelected() method below.


void SetSelected(IObject_DG item, bool selected)

item must be quried from an entity (IEntity_DG or related interface).


void ClearSelection()