KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Components > Interfaces > Viewing Interfaces > IViewPointArray
IViewPointArray Interface

IViewPointArray Interface

GetCount
GetAt
RemoveAt
Add
Default
GetDefault

IViewPointArray gives access to collection of Persistent Viewpoints.

IViewPointArray can be queried from the IView interface.

Query path: KernelCAD > GetView > IView > IViewPointArray

See also PointOfView SampleInterface List


HRESULT GetCount(int * count)

Parameters

count- [out, retval] Reference to an integer variable which will be set to number of valid members in the array

Returns

S_OK in case of success.

HRESULT GetAt(int index, IViewPoint** vp)

Parameters

index - [in] index of the viewpoint to retrieve.

vp - [out, retval] pointer to a variable, which will be assigned an appropriate  interface pointer, implemented by index-th viewpoint in the array.

Return Values

S_OK in case of success.

DISP_E_BADINDEX - if the index is out of the range

DISP_E_PARAMNOTOPTIONAL - if vp is null

Remarks:
 
Returns IViewPoint implemented by the  index -th viewpoint of the model.

HRESULT RemoveAt(int index)

Parameters

index - [in] index of the viewpoint to be removed..

Returns

S_OK in case of success.

DISP_E_BADINDEX - if the index is out of the range

Remarks:

Will remove the viewpoint at index position. 


HRESULT Add(char* name)

Parameters

name - [in] 0-terminated ASCII string with name of the viewpoint to be added. If NULL name of the viewpoint will be empty string.

Remarks:

The method will add a new viewpoint with name name at the end of the array. The viewpoint will have its properties set to keep the current configuration of view as if IViewPoint.Store() has been immediately called.


HRESULT Default(int index)

Parameters

index - [in] index of the viewpoint to be made the default one. See Remarks.

Remarks:

The viewpoint array keeps index of the default viewpoint, which if -1 by default (no default viewpoint is defined). When this index is in range of the array the correspondent viewpoint will be activated (Set Current) automatically on the model load during the application startup or changing the ModelPath property. This method sets index-th viewpoint as the default one. If is index negative the model will not activate any viewpoints.


HRESULT GetDefault(int* index)

Parameters

index - [out, retval] index of the current default viewpoint. See remarks. for the previous method

Remarks:

See remarks. for the previous method. The method returns index of the current default viewpoint or -1 if no default is defined.