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


Rotation Sample

Source code for Rotation sample is available in Samples\VC  folder of the installation directory. It is recommended to copy whole VC directory to location outside of the installation folder before loading or compilation. 

Rotation is a simple sample which demonstrates  manipulation of .Eye frame  and hence the view point using IFrame interface. 

See also C# .NET Samples, All samples

The application  

The "Axis Of Rotation" group allows defining of axis around which the rotation will be performed. Change radio buttons on the top to see the difference between rotation of the global and Eye frames 

Implementation

All implementation is contained in the main form class named CRotationDlg.

The rotation is performed in CRotationDlg::OnRotate()  with the help of IFrame.Rotate.

The actual IFrame interface can be either one implemented by the Eye frame or by the global frame depending on selection of the radio button.