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 ViewsViews
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


Modal View Sample

Source code for Modal View sample is available in Samples\NET\C# folder of the installation directory. 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 colour demonstrates selection of the current object by picking the object in 3D view. The default model  has a single object.

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. Please remember to hold Shift key for translational movements.

Implementation demonstrates usage of IViewModal, IConstraint, IFrame, IView2 and  ISection interfaces.

See also C# Samples,   All samples.