Home Page > KernelCAD Components > Modes of KernelCAD Control
Modes of the control
Modes of KernelCAD controls
Starting from version 1.3 KernelCAD components support an additional
"Modify" mode as opposed to "View" mode. These modes are
analogous to the correspondent modes in 3D Debugger.
Modes are different
with respect to how user mouse moves are processed. "View" is the
default mode. In View mode mouse moves allow changing point of view by
Pan/Zoom/Rotate viewing transformations. In "Modify" mode mouse
moves change position or orientation of the current object in the model. In
modify mode, similar to viewing transformations, mouse moves with Shift key down
will perform translations of the object. If Shift key is not down rotations of
the object will be performed.
IViewModal interface allows switching between two "View" and
"Modify" modes of the view, which implements this interface. IViewModal can be queried from IView interface.
Constraints, which are available in Modify mode allow restriction of object
movements in different ways. For example rotational constrains can restrain
rotations of the object, the user can perform, to rotations around a certain
axis in 3D space.
See also Interface List
|