Modal View Sample
Source code for Modal View sample is available in Samples\VC folder of the installation directory. 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 colour demonstrates
selection of the current object by picking the object in 3D view. The default
model has a single object.
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. Please remember to hold Shift key for translational movements.
Implementation demonstrates usage of
IViewModal,
IConstraint,
IFrame, IView2 and
ISection interfaces.
See also C# Samples, All samples.
|