C# 클래스 HelixToolkit.Wpf.MouseGestureHandler

An abstract base class for the mouse gesture handlers.
파일 보기 프로젝트 열기: litdev1/LitDev

Private Properties

프로퍼티 타입 설명
SetMouseDownPoint void

공개 메소드들

메소드 설명
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.

Execute ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Executes the mousegesture command.

Started ( HelixToolkit.Wpf.ManipulationEventArgs e ) : void

Occurs when the manipulation is started.

UnProject ( Point p ) : Point3D?

Un projects a point from the screen (2D) to a point on the plane trough the camera target point.

UnProject ( Point p, System.Windows.Media.Media3D.Point3D position, System.Windows.Media.Media3D.Vector3D normal ) : Point3D?

Un projects a point from the screen (2D) to a point on plane (3D)

보호된 메소드들

메소드 설명
CanExecute ( ) : bool

Occurs when the command associated with this handler initiates a check to determine whether the command can be executed on the command target.

GetCursor ( ) : System.Windows.Input.Cursor

Gets the cursor for the gesture.

GetRay ( Point position ) : Ray3D

Get the ray into the view volume given by the position in 2D (screen coordinates)

MouseGestureHandler ( CameraController controller ) : System

Initializes a new instance of the MouseGestureHandler class.

OnInertiaStarting ( int elapsedTime ) : void

Called when inertia is starting.

OnMouseDown ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Called when the mouse button is pressed down.

OnMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void

The on mouse move.

OnMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

The on mouse up.

Project ( System.Windows.Media.Media3D.Point3D p ) : Point

Calculate the screen position of a 3D point.

비공개 메소드들

메소드 설명
SetMouseDownPoint ( Point position ) : void

The set mouse down point.

메소드 상세

CanExecute() 보호된 메소드

Occurs when the command associated with this handler initiates a check to determine whether the command can be executed on the command target.
protected CanExecute ( ) : bool
리턴 bool

Completed() 공개 메소드

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

Delta() 공개 메소드

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. ///
리턴 void

Execute() 공개 메소드

Executes the mousegesture command.
public Execute ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
sender object /// The sender. ///
e System.Windows.Input.ExecutedRoutedEventArgs /// The event arguments. ///
리턴 void

GetCursor() 보호된 추상적인 메소드

Gets the cursor for the gesture.
protected abstract GetCursor ( ) : System.Windows.Input.Cursor
리턴 System.Windows.Input.Cursor

GetRay() 보호된 메소드

Get the ray into the view volume given by the position in 2D (screen coordinates)
protected GetRay ( Point position ) : Ray3D
position System.Windows.Point /// A 2D point. ///
리턴 Ray3D

MouseGestureHandler() 보호된 메소드

Initializes a new instance of the MouseGestureHandler class.
protected MouseGestureHandler ( CameraController controller ) : System
controller CameraController /// The controller. ///
리턴 System

OnInertiaStarting() 보호된 메소드

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

OnMouseDown() 보호된 메소드

Called when the mouse button is pressed down.
protected OnMouseDown ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object /// The sender. ///
e System.Windows.Input.MouseEventArgs /// The instance containing the event data. ///
리턴 void

OnMouseMove() 보호된 메소드

The on mouse move.
protected OnMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object /// The sender. ///
e System.Windows.Input.MouseEventArgs /// The event arguments. ///
리턴 void

OnMouseUp() 보호된 메소드

The on mouse up.
protected OnMouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object /// The sender. ///
e System.Windows.Input.MouseButtonEventArgs /// The event arguments. ///
리턴 void

Project() 보호된 메소드

Calculate the screen position of a 3D point.
protected Project ( System.Windows.Media.Media3D.Point3D p ) : Point
p System.Windows.Media.Media3D.Point3D /// The 3D point. ///
리턴 System.Windows.Point

Started() 공개 메소드

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

UnProject() 공개 메소드

Un projects a point from the screen (2D) to a point on the plane trough the camera target point.
public UnProject ( Point p ) : Point3D?
p System.Windows.Point /// The 2D point. ///
리턴 Point3D?

UnProject() 공개 메소드

Un projects a point from the screen (2D) to a point on plane (3D)
public UnProject ( Point p, System.Windows.Media.Media3D.Point3D position, System.Windows.Media.Media3D.Vector3D normal ) : Point3D?
p System.Windows.Point /// The 2D point. ///
position System.Windows.Media.Media3D.Point3D /// A point on the plane . ///
normal System.Windows.Media.Media3D.Vector3D /// The plane normal. ///
리턴 Point3D?