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


Zoom Sample

Source code for Zoom 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. Zoom sample demonstrates  manipulation of .viewing volume using ILook interface. It also demonstrates manipulation of the Eye frame with the help of it IFrame interface 

See also C# .NET Samples, All samples

The application  

The "Center of zoom" group allows entering a point in pixels with respect to which zoom operation will be performed. "Translate Eye Frame" group allows manipulation of the vieving plane

Implementation

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

CZoomDlg::OnZoom() handler converts screen coordinates of the zoom center to global 3D coordinates using ILookEx.creenTo3DEx. The point has to be converted to loca to the Eye frame to use the ILook.ZoomEx method. This is accomplished via IFrameEx.ToLocal.for the IFrame of the Eye Frame.