DG Kernel (ActiveX) Documentation


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


ISelection_KC Interface

Gives access to set of selected items in the scene. In the initial implementation this interface was added to enable highlighting of subshapes of bspline brep objects.

See also Shape Explorer Sample

GetSelectedItems
SetSelected
ClearSelection
CloseContext

HRESULT GetSelectedItems(IArray* items)

Parameters

items -[out,retval] Currently selected items. The actual type is IObject_KC

Remarks:

The method returns the array of currently selected items. The elements of the array implement IObject_KC


HRESULT SetSelected(IObject_KC* item, VARIANT_BOOL selected)

Parameters

item-[in] interface queried from the item to be added to the current selection

Remarks:

Makes the item selected and highlighted in the scene.


HRESULT ClearSelection()

Removes all items from the selected items array


HRESULT CloseContext()

DDeletes the selection array. Should be called to free memory when selection functionality is no longer needed. The array is created when ISelection_KC is obtained for the first time