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


IModel_KC Interface

GetItemCount
GetItem
Add
Remove
RemoveAll
AddNewItem

IModel_KC Interface is implemented by Two Dimentional models. It manages structure of the model and allows creation of new 2D items

See also: Overlay sample, Interface List


HRESULT GetItemCount(int* count)

Parameters

count - [out, retval] Count of items in the model

Remarks:

Returns count of items in the model


HRESULT GetItem(int index, IItem **item)

Parameters

item - [out, retval] The returned item

Remarks:

Returns the item at index i.


HRESULT Add(IItem *IItem)

Parameters

item - [in] The item to be added to the model

Remarks:

Adds the item to the model


HRESULT Remove(IItem *item)

Remarks:

Removes the item from the model


HRESULT RemoveAll()

Remarks:

Removes all items form the model


HRESULT AddNewItem(EObjectType eType, IItem **item)

Parameters

eType -[in] Identifies the type of item to be added.  In this release is expected to be eObjTypeLineStrip
item - [out, retval] The returned newly created item
Remarks:

Creates a new empty item of the specified type and adds it to the model. Interface implemented by the new item is returned via the item parameter.