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


View Point Sample

View Point sample demonstrates programmatic access to Eye Frame and its manipulation.

Running the application

"Direction of line of view" group of controls on the form displays coordinates of z-axis of the Eye Frame relative to the global axes. For the user the line of view is the line at the center of the 3D View window orthogonal to the screen and directed to the viewer.

Coordinates of the direction are displayed in two forms: Standard Cartesian (respective to global axes) and as (Azimuth, Altitude) parameters.

Azimuth of a ray from origin of the global axes to a point in 3D is measured as angle of projection of the ray to x and z plane with x-axis.

Altitude is the angle between the ray and its projection to x and z plane.

"Apply" button changes the current point of view to one entered in the Azimuth and Altitude edit boxes. For example, setting both parameters to 0 will display x and y projection of the object.

In addition to the standard view manipulation with the mouse two sliders on the form perform rotations around the global x and y axes respectively. 

Manipulation of view with sliders has two modes which are selected with "Slider View Control" group. The modes differ in location or center around which the viewing rotation is performed. In "walk around" mode rotation is performed around the origin of the global axes. In "look around" mode rotation is performed around a point specified in "Location of observer" boxed enabled for this case.

See also Viewing Interfaces, Sample List.