C# Class HelixToolkit.Wpf.Manipulator

An abstract base class for manipulators.
Inheritance: System.Windows.UIElement3D
Afficher le fichier Open project: litdev1/LitDev

Méthodes publiques

Свойство Type Description
ColorProperty System.Windows.DependencyProperty
OffsetProperty System.Windows.DependencyProperty
PositionProperty System.Windows.DependencyProperty
TargetTransformProperty System.Windows.DependencyProperty
ValueProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode Description
Bind ( System.Windows.Media.Media3D.ModelVisual3D source ) : void

Binds this manipulator to a given Visual3D.

UnBind ( ) : void

Releases the binding of this manipulator.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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. ///
Résultat void

GeometryChanged() protected static méthode

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. ///
Résultat void

GetHitPlanePoint() protected méthode

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). ///
Résultat Point3D?

Manipulator() protected méthode

Initializes a new instance of the Manipulator class.
protected Manipulator ( ) : System.Windows
Résultat System.Windows

OnGeometryChanged() protected abstract méthode

Called when the geometry changed.
protected abstract OnGeometryChanged ( ) : void
Résultat void

OnMouseDown() protected méthode

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

OnMouseUp() protected méthode

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

OnPositionChanged() protected méthode

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

OnValueChanged() protected méthode

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

ToLocal() protected méthode

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). ///
Résultat System.Windows.Media.Media3D.Point3D

ToWorld() protected méthode

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). ///
Résultat System.Windows.Media.Media3D.Point3D

ToWorld() protected méthode

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). ///
Résultat System.Windows.Media.Media3D.Vector3D

UnBind() public méthode

Releases the binding of this manipulator.
public UnBind ( ) : void
Résultat void

Property Details

ColorProperty public_oe static_oe property

Identifies the Color dependency property.
public static DependencyProperty,System.Windows ColorProperty
Résultat System.Windows.DependencyProperty

OffsetProperty public_oe static_oe property

Identifies the Offset dependency property.
public static DependencyProperty,System.Windows OffsetProperty
Résultat System.Windows.DependencyProperty

PositionProperty public_oe static_oe property

Identifies the Position dependency property.
public static DependencyProperty,System.Windows PositionProperty
Résultat System.Windows.DependencyProperty

TargetTransformProperty public_oe static_oe property

Identifies the TargetTransform dependency property.
public static DependencyProperty,System.Windows TargetTransformProperty
Résultat System.Windows.DependencyProperty

ValueProperty public_oe static_oe property

Identifies the Value dependency property.
public static DependencyProperty,System.Windows ValueProperty
Résultat System.Windows.DependencyProperty