DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Expand DG Kernel ComponentsDG Kernel Components
Expand API ReferenceAPI Reference
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > Models > Entities > Model Items > Measurements > Measurements Search Documentation


Measurements

Measurement mode of DG Kernel views allows adding items, which display distances between points, coordinates of a selected point and angles. A measurement can also be modified programmatically to display a single line of text so that it will act as a text label attached to the specified surface.

To enter the measurement mode, make sure the view has focus (click into the window) and press 'm' key. The measurement mode has several sub modes and a "delete all" command. The component exits the measurement mode automatically when the current operation is either completed or interrupted.

The Advanced > Measurements > Add context menu (right mouse click) options offer a user interface for entering the mode.

DG Kernel components have two styles of measurements: Persistent measurements and Transient (default) measurements

Transient measurements disappear once the measurement mode is exited. They can be used to quickly check distances and avoid adding extra items obscuring the scene

Transient measurements style (default) can be re-activated programmatically by setting the MeasurementsStyle property of DG Kernel Context to 1.

Persistent measurements are part of the model. Once added to the scene they persist during viewing manipulations: rotations etc

To switch between the modes at runtime got to Advanced > Measurements > Style in context menu (right mouse click)

Persistent measurements style can also be activated programmatically by setting the MeasurementsStyle property of DG Kernel Context to 0.

See Persistent Measurements topic for more details

When MeasurementsShowOnMouseMove property of DG Kernel Context is set to true (false is the default) the component displays distance between the first point of the measurement and the current position of the mouse during movement from the first to the second point. The distance is measured along plane parallel to plane of the screen and recalculated precisely after the second point has been selected.