AutoOrbit
The user can rotate the scene by moving the mouse + right mouse button down.
// Enable or Disable the build in Orbit method.
fDrawCtrl1.Document.AutoOrbit = false;
The user may disable the build in AutoOrbit method and only activated the orbit mode when it is needed by the following method :
// Execute the Pan method.
fDrawCtrl1.Document.SetCommandDrawEx("3dorbit");
3D Orbit Center
By default when the 3D orbit mode is turn on, the center of the orbit are calculated on user's right mouse down event.
/// <summary>
/// Toggle to turn on or off the calculation of center of the 3D orbit base on the current cursor position.
/// </summary>
fDrawCtrl1.Document.AutoCalCenterOfOrbit = false;
User might specify a fix center of orbit by double click on the current view and a green sphere may appear
However user can self define a fix center of orbit programmatically by the following code
// Get the center of all the entities.
fDrawCtrl1.Document.OrbitCtr = fDrawCtrl1.Document.GetCtrOfObjects();
// Disable auto center calculation of the 3D orbit
fDrawCtrl1.Document.AutoCalCenterOfOrbit = false;
AutoPan
The user can pan the scene by holding the middle mouse button and move the mouse.
// Enable or Disable the build in Pan method.
fDrawCtrl1.Document.AutoPan = false;
The user may disable the build in AutoPan method and only activated the Pan mode when it is needed by the following method :
// Execute the Pan method.
fDrawCtrl1.Document.SetCommandDrawEx("pan");
AutoZoom
It allow user to scale the view by scrolling the middle mouse button.
The user may disable the build in AutoZoom by the following command
fDrawCtrl1.Document.AutoZoom = false;
Zoom Window
The user may enable the zoom window tool by the following method:
// Execute the zoom window method where the build in tools for zoom window is activated.
fDrawCtrl1.Document.SetCommandDrawEx("ZoomWindow");
The user may execute the ZoomWindow method himself by the following command.
fDrawCtrl1.Document.ZoomWindow(new Point2D(0, 0), new Point2D(10, 10));
View Cube
// Toggles to display the view cube.
fDrawCtrl1.Document.ShowViewCube = true;