C# Class HelixToolkit.Wpf.Manipulator

An abstract base class for manipulators.
Inheritance: System.Windows.UIElement3D
ファイルを表示 Open project: litdev1/LitDev

Public Properties

Property Type Description
ColorProperty System.Windows.DependencyProperty
OffsetProperty System.Windows.DependencyProperty
PositionProperty System.Windows.DependencyProperty
TargetTransformProperty System.Windows.DependencyProperty
ValueProperty System.Windows.DependencyProperty

Public Methods

Method Description
Bind ( System.Windows.Media.Media3D.ModelVisual3D source ) : void

Binds this manipulator to a given Visual3D.

UnBind ( ) : void

Releases the binding of this manipulator.

Protected Methods

Method Description
GeometryChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when Geometry is changed.

GetHitPlanePoint ( Point p, System.Windows.Media.Media3D.Point3D hitPlaneOrigin, System.Windows.Media.Media3D.Vector3D hitPlaneNormal ) : Point3D?

Projects the point on the hit plane.

Manipulator ( ) : System.Windows

Initializes a new instance of the Manipulator class.

OnGeometryChanged ( ) : void

Called when the geometry changed.

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

The on mouse down.

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

The on mouse up.

OnPositionChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when position is changed.

OnValueChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when value is changed.

ToLocal ( System.Windows.Media.Media3D.Point3D worldPoint ) : System.Windows.Media.Media3D.Point3D

Transforms from world to local coordinates.

ToWorld ( System.Windows.Media.Media3D.Point3D point ) : System.Windows.Media.Media3D.Point3D

Transforms from local to world coordinates.

ToWorld ( System.Windows.Media.Media3D.Vector3D vector ) : System.Windows.Media.Media3D.Vector3D

Transforms from local to world coordinates.

Private Methods

Method Description
ColorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

The color changed.

OnColorChanged ( ) : void

The on color changed.

PositionChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when position has been changed.

ValueChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when value has been changed.

Method Details

Bind() public method

Binds this manipulator to a given Visual3D.
public Bind ( System.Windows.Media.Media3D.ModelVisual3D source ) : void
source System.Windows.Media.Media3D.ModelVisual3D /// Source Visual3D which receives the manipulator transforms. ///
return void

GeometryChanged() protected static method

Called when Geometry is changed.
protected static GeometryChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject /// The sender. ///
e System.Windows.DependencyPropertyChangedEventArgs /// The instance containing the event data. ///
return void

GetHitPlanePoint() protected method

Projects the point on the hit plane.
protected GetHitPlanePoint ( Point p, System.Windows.Media.Media3D.Point3D hitPlaneOrigin, System.Windows.Media.Media3D.Vector3D hitPlaneNormal ) : Point3D?
p System.Windows.Point /// The p. ///
hitPlaneOrigin System.Windows.Media.Media3D.Point3D /// The hit Plane Origin. ///
hitPlaneNormal System.Windows.Media.Media3D.Vector3D /// The hit plane normal (world coordinate system). ///
return Point3D?

Manipulator() protected method

Initializes a new instance of the Manipulator class.
protected Manipulator ( ) : System.Windows
return System.Windows

OnGeometryChanged() protected abstract method

Called when the geometry changed.
protected abstract 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

OnMouseUp() protected method

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

OnPositionChanged() protected method

Called when position is changed.
protected OnPositionChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs /// The e. ///
return void

OnValueChanged() protected method

Called when value is changed.
protected OnValueChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void
e System.Windows.DependencyPropertyChangedEventArgs /// The e. ///
return void

ToLocal() protected method

Transforms from world to local coordinates.
protected ToLocal ( System.Windows.Media.Media3D.Point3D worldPoint ) : System.Windows.Media.Media3D.Point3D
worldPoint System.Windows.Media.Media3D.Point3D /// The point (world coordinates). ///
return System.Windows.Media.Media3D.Point3D

ToWorld() protected method

Transforms from local to world coordinates.
protected ToWorld ( System.Windows.Media.Media3D.Point3D point ) : System.Windows.Media.Media3D.Point3D
point System.Windows.Media.Media3D.Point3D /// The point (local coordinates). ///
return System.Windows.Media.Media3D.Point3D

ToWorld() protected method

Transforms from local to world coordinates.
protected ToWorld ( System.Windows.Media.Media3D.Vector3D vector ) : System.Windows.Media.Media3D.Vector3D
vector System.Windows.Media.Media3D.Vector3D /// The vector (local coordinates). ///
return System.Windows.Media.Media3D.Vector3D

UnBind() public method

Releases the binding of this manipulator.
public UnBind ( ) : void
return void

Property Details

ColorProperty public_oe static_oe property

Identifies the Color dependency property.
public static DependencyProperty,System.Windows ColorProperty
return System.Windows.DependencyProperty

OffsetProperty public_oe static_oe property

Identifies the Offset dependency property.
public static DependencyProperty,System.Windows OffsetProperty
return System.Windows.DependencyProperty

PositionProperty public_oe static_oe property

Identifies the Position dependency property.
public static DependencyProperty,System.Windows PositionProperty
return System.Windows.DependencyProperty

TargetTransformProperty public_oe static_oe property

Identifies the TargetTransform dependency property.
public static DependencyProperty,System.Windows TargetTransformProperty
return System.Windows.DependencyProperty

ValueProperty public_oe static_oe property

Identifies the Value dependency property.
public static DependencyProperty,System.Windows ValueProperty
return System.Windows.DependencyProperty