DGKC Control Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlDG Kernel Control
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
Support
Skip Navigation Links Go to ActiveX docs Search Documentation


Modal View Sample

Modal View is an application, which demonstrates usage of both View and Modify modes in a single application. 

When running the application, select "Modify" View Model and click outside the object in the Control window. Changing object color demonstrates selection of the current object by picking the object in 3D view. The default model has a single object. We suggest as an exercise to change model path property to one with several objects or implement loading any object (with additional checks in the code).

In Modify mode mouse movements cause modification of the position and orientation of the current object as opposed to manipulation of point of view in View mode. 

The sample also demonstrates usage of constraints. The user interface allows selection of degree of freedom for translation and rotation types of movements separately. It also allows to modify orientation of the constrained subspace where the object is allowed to move. The button "Apply constraint orientation changes" has to be pressed to enter values in the edit boxes. Hold Shift key for translational movements.

See also: Sample List.