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 > Programming Samples and Tutorials > C++ Samples > Point Of View
Point Of View VC Sample

Point Of View Sample

Point Of View sample demonstrates usage and programming of View Points. Source Files for the sample are located in Samples\VC\PointOfView folder of the installation directory.

The application

By default the application loads Samples\PointOfView.glm model, which is a modification of Cow.glm model and consists of two objects and has three predefined View Points, the first of which is the default view point.

The application has two modes: Stored and Transient to handle Persistent and Transient View Points respectively. The mode is displayed and can be changed in the "View Point Type" group.

View Points list box displays available persistent view points.

In Stored mode "Add Current" button creates a new view point which will keep the current configuration of view.

In Transient mode the same button, which will be renamed to "Store Current" stores the current configuration of view in the Transient View Point of Kernel CAD View.

Selected View Point group displays actions and properties for the view point selected in the list (Stored mode) or of the Transient View Point (Transient mode).

Activate button restores configuration of view stored in the selected view point.

Make Default button (Stored mode only) toggles Default property of the selected view point.

The selected view point can be renamed.

"View Point" check box is the Show group will display Viewing Volume of the view point with a blue wire frame box. Zoom out to see the box.

"Frame" check box is the Show group will display location and orientation of local frame of the view point

File menu allows loading and saving models, which makes this sample fully functional view point array editor. It can be used for example to quickly add a default view point to be displayed on load of any model.

View Point > Geometry submenu allows modification of location and direction of line of view for the selected view point.

View Point > Geometry > "Viewing Volume" dialog displays dimensions of the Viewing Volume, which determines zoom. Only the first two components are modifiable.

View Point > Geometry > Direction allows editing direction of line of view. It can be done either by using Look At interface or by rotations of the local frame of the view point. Note that functionality of the Rotation dialog can be easily modified to include rotation around any axis, for example around the global y axis.

Delete command in View Point menu deletes the currently selected view point.

Implementation

To be added

See also BirdsEye Sample