C# Class HelixToolkit.Wpf.BindableTranslateManipulator

Represents a visual element that contains a manipulator that can translate along an axis.
Inheritance: Manipulator
Mostra file Open project: litdev1/LitDev

Public Properties

Property Type Description
DiameterProperty System.Windows.DependencyProperty
DirectionProperty System.Windows.DependencyProperty
LengthProperty System.Windows.DependencyProperty

Protected Methods

Method Description
OnGeometryChanged ( ) : void

Called when geometry has been changed.

OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

The on mouse down.

OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void

The on mouse move.

OnPositionChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Updates the TargetTransform in addition to updating position.

OnValueChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Moves the Manipulator position by the change in value along the direction vector.

Private Methods

Method Description
GetNearestPoint ( Point position, System.Windows.Media.Media3D.Point3D hitPlaneOrigin, System.Windows.Media.Media3D.Vector3D hitPlaneNormal ) : Point3D?

Gets the nearest point on the translation axis.

Method Details

OnGeometryChanged() protected method

Called when geometry has been changed.
protected OnGeometryChanged ( ) : void
return void

OnMouseDown() protected method

The on mouse down.
protected OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs /// The event arguments. ///
return void

OnMouseMove() protected method

The on mouse move.
protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs /// The event arguments. ///
return void

OnPositionChanged() protected method

Updates the TargetTransform in addition to updating position.
protected OnPositionChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs /// The instance containing the event data. ///
return void

OnValueChanged() protected method

Moves the Manipulator position by the change in value along the direction vector.
protected OnValueChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs /// The instance containing the event data. ///
return void

Property Details

DiameterProperty public_oe static_oe property

Identifies the Diameter dependency property.
public static DependencyProperty,System.Windows DiameterProperty
return System.Windows.DependencyProperty

DirectionProperty public_oe static_oe property

Identifies the Direction dependency property.
public static DependencyProperty,System.Windows DirectionProperty
return System.Windows.DependencyProperty

LengthProperty public_oe static_oe property

Identifies the Length dependency property.
public static DependencyProperty,System.Windows LengthProperty
return System.Windows.DependencyProperty