C# Class HelixToolkit.Wpf.RotateHandler

Handles rotation.
Inheritance: MouseGestureHandler
ファイルを表示 Open project: litdev1/LitDev Class Usage Examples

Public Methods

Method Description
Completed ( HelixToolkit.Wpf.ManipulationEventArgs e ) : void

Occurs when the manipulation is completed.

Delta ( HelixToolkit.Wpf.ManipulationEventArgs e ) : void

Occurs when the position is changed during a manipulation.

LookAt ( System.Windows.Media.Media3D.Point3D target, double animationTime ) : void

Change the "look-at" point.

Rotate ( Point p0, Point p1, System.Windows.Media.Media3D.Point3D rotateAround ) : void

Rotate the camera around the specified point.

Rotate ( System.Windows.Vector delta ) : void

The rotate.

RotateHandler ( CameraController controller, bool changeLookAt = false ) : System

Initializes a new instance of the RotateHandler class.

RotateTurnball ( Point p1, Point p2, System.Windows.Media.Media3D.Point3D rotateAround ) : void

Rotate around three axes.

RotateTurntable ( System.Windows.Vector delta, System.Windows.Media.Media3D.Point3D rotateAround ) : void

Rotate camera using 'Turntable' rotation.

Started ( HelixToolkit.Wpf.ManipulationEventArgs e ) : void

Occurs when the manipulation is started.

Protected Methods

Method Description
CanExecute ( ) : bool

The can execute.

GetCursor ( ) : System.Windows.Input.Cursor

Gets the cursor.

OnInertiaStarting ( int elapsedTime ) : void

Called when inertia is starting.

Private Methods

Method Description
InitTurnballRotationAxes ( Point p1 ) : void

The init turnball rotation axes.

ProjectToTrackball ( Point point, double w, double h ) : System.Windows.Media.Media3D.Vector3D

Projects a screen position to the trackball unit sphere.

RotateAroundUpAndRight ( Point p1, Point p2, System.Windows.Media.Media3D.Point3D rotateAround ) : void

Rotates around the camera up and right axes.

RotateTrackball ( Point p1, Point p2, System.Windows.Media.Media3D.Point3D rotateAround ) : void

The rotate trackball.

Method Details

CanExecute() protected method

The can execute.
protected CanExecute ( ) : bool
return bool

Completed() public method

Occurs when the manipulation is completed.
public Completed ( HelixToolkit.Wpf.ManipulationEventArgs e ) : void
e HelixToolkit.Wpf.ManipulationEventArgs The instance containing the event data.
return void

Delta() public method

Occurs when the position is changed during a manipulation.
public Delta ( HelixToolkit.Wpf.ManipulationEventArgs e ) : void
e HelixToolkit.Wpf.ManipulationEventArgs The instance containing the event data.
return void

GetCursor() protected method

Gets the cursor.
protected GetCursor ( ) : System.Windows.Input.Cursor
return System.Windows.Input.Cursor

LookAt() public method

Change the "look-at" point.
public LookAt ( System.Windows.Media.Media3D.Point3D target, double animationTime ) : void
target System.Windows.Media.Media3D.Point3D /// The target. ///
animationTime double /// The animation time. ///
return void

OnInertiaStarting() protected method

Called when inertia is starting.
protected OnInertiaStarting ( int elapsedTime ) : void
elapsedTime int /// The elapsed time. ///
return void

Rotate() public method

Rotate the camera around the specified point.
public Rotate ( Point p0, Point p1, System.Windows.Media.Media3D.Point3D rotateAround ) : void
p0 Point /// The p 0. ///
p1 Point /// The p 1. ///
rotateAround System.Windows.Media.Media3D.Point3D /// The rotate around. ///
return void

Rotate() public method

The rotate.
public Rotate ( System.Windows.Vector delta ) : void
delta System.Windows.Vector /// The delta. ///
return void

RotateHandler() public method

Initializes a new instance of the RotateHandler class.
public RotateHandler ( CameraController controller, bool changeLookAt = false ) : System
controller CameraController /// The controller. ///
changeLookAt bool /// The change look at. ///
return System

RotateTurnball() public method

Rotate around three axes.
public RotateTurnball ( Point p1, Point p2, System.Windows.Media.Media3D.Point3D rotateAround ) : void
p1 Point /// The previous mouse position. ///
p2 Point /// The current mouse position. ///
rotateAround System.Windows.Media.Media3D.Point3D /// The point to rotate around. ///
return void

RotateTurntable() public method

Rotate camera using 'Turntable' rotation.
public RotateTurntable ( System.Windows.Vector delta, System.Windows.Media.Media3D.Point3D rotateAround ) : void
delta System.Windows.Vector /// The relative change in position. ///
rotateAround System.Windows.Media.Media3D.Point3D /// The point to rotate around. ///
return void

Started() public method

Occurs when the manipulation is started.
public Started ( HelixToolkit.Wpf.ManipulationEventArgs e ) : void
e HelixToolkit.Wpf.ManipulationEventArgs The instance containing the event data.
return void