Rotation Sample
Source code for Rotation sample is available in Samples\VC folder of the installation directory. It is recommended to
copy whole VC directory to location outside of the installation folder
before loading or compilation.
Rotation is a simple sample which demonstrates manipulation of .Eye frame
and hence the view point using IFrame
interface.
See also C# .NET Samples, All samples
The application
The "Axis Of Rotation" group allows defining of axis around which
the rotation will be performed. Change radio buttons on the top to see the
difference between rotation of the global and Eye frames
Implementation
All implementation is contained in the main form class named CRotationDlg.
The rotation is performed in CRotationDlg::OnRotate() with the help of IFrame.Rotate.
The actual IFrame interface can be either one implemented by the Eye frame
or by the global frame depending on selection of the radio button.
|