Modal View Sample
Modal View is an application, which
demonstrates usage of both View and Modify modes in a single application.
When running the application, select "Modify" View Model and click
outside the object in the Control window. Changing object color demonstrates
selection of the current object by picking the object in 3D view. The default
model has a single object. We suggest as an exercise to change model path property
to one with several objects or implement loading any object (with additional
checks in the code).
In Modify mode mouse movements cause modification of the position and
orientation of the current object as opposed to manipulation of point of view in
View mode.
The sample also demonstrates usage of constraints. The user interface allows
selection of degree of freedom for translation and rotation types of movements
separately. It also allows to modify orientation of the constrained subspace
where the object is allowed to move. The button "Apply constraint
orientation changes" has to be pressed to enter values in the edit
boxes. Hold Shift key for translational movements.
See also: Sample List.
|