C# Class HelixToolkit.Wpf.ViewCubeVisual3D

A visual element that shows a view cube.
Inheritance: System.Windows.Media.Media3D.ModelVisual3D
显示文件 Open project: litdev1/LitDev Class Usage Examples

Public Properties

Property Type Description
BackTextProperty System.Windows.DependencyProperty
BottomTextProperty System.Windows.DependencyProperty
CenterProperty System.Windows.DependencyProperty
FrontTextProperty System.Windows.DependencyProperty
LeftTextProperty System.Windows.DependencyProperty
ModelUpDirectionProperty System.Windows.DependencyProperty
RightTextProperty System.Windows.DependencyProperty
SizeProperty System.Windows.DependencyProperty
TopTextProperty System.Windows.DependencyProperty
ViewportProperty System.Windows.DependencyProperty

Public Methods

Method Description
ViewCubeVisual3D ( ) : System

Initializes a new instance of the ViewCubeVisual3D class.

Protected Methods

Method Description
OnClicked ( System.Windows.Media.Media3D.Vector3D lookDirection, System.Windows.Media.Media3D.Vector3D upDirection ) : void

Called when a face was clicked.

Private Methods

Method Description
AddFace ( System.Windows.Media.Media3D.Vector3D normal, System.Windows.Media.Media3D.Vector3D up, System.Windows.Media.Brush b, string text ) : void

Adds a face.

AnimateOpacity ( Animatable obj, double toOpacity, double animationTime ) : void

The animate opacity.

AnimationCompleted ( object sender, EventArgs e ) : void

Called when the animation completed.

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

Called when mouse left button is clicked on a face.

OnViewportChanged ( ) : void

The on viewport changed.

UpdateVisuals ( ) : void

The update visuals.

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

The viewport changed.

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

The visual model changed.

Method Details

OnClicked() protected method

Called when a face was clicked.
protected OnClicked ( System.Windows.Media.Media3D.Vector3D lookDirection, System.Windows.Media.Media3D.Vector3D upDirection ) : void
lookDirection System.Windows.Media.Media3D.Vector3D The look direction.
upDirection System.Windows.Media.Media3D.Vector3D Up direction.
return void

ViewCubeVisual3D() public method

Initializes a new instance of the ViewCubeVisual3D class.
public ViewCubeVisual3D ( ) : System
return System

Property Details

BackTextProperty public_oe static_oe property

Identifies the BackText dependency property.
public static DependencyProperty,System.Windows BackTextProperty
return System.Windows.DependencyProperty

BottomTextProperty public_oe static_oe property

Identifies the BottomText dependency property.
public static DependencyProperty,System.Windows BottomTextProperty
return System.Windows.DependencyProperty

CenterProperty public_oe static_oe property

Identifies the Center dependency property.
public static DependencyProperty,System.Windows CenterProperty
return System.Windows.DependencyProperty

FrontTextProperty public_oe static_oe property

Identifies the FrontText dependency property.
public static DependencyProperty,System.Windows FrontTextProperty
return System.Windows.DependencyProperty

LeftTextProperty public_oe static_oe property

Identifies the LeftText dependency property.
public static DependencyProperty,System.Windows LeftTextProperty
return System.Windows.DependencyProperty

ModelUpDirectionProperty public_oe static_oe property

Identifies the ModelUpDirection dependency property.
public static DependencyProperty,System.Windows ModelUpDirectionProperty
return System.Windows.DependencyProperty

RightTextProperty public_oe static_oe property

Identifies the RightText dependency property.
public static DependencyProperty,System.Windows RightTextProperty
return System.Windows.DependencyProperty

SizeProperty public_oe static_oe property

Identifies the Size dependency property.
public static DependencyProperty,System.Windows SizeProperty
return System.Windows.DependencyProperty

TopTextProperty public_oe static_oe property

Identifies the TopText dependency property.
public static DependencyProperty,System.Windows TopTextProperty
return System.Windows.DependencyProperty

ViewportProperty public_oe static_oe property

Identifies the Viewport dependency property.
public static DependencyProperty,System.Windows ViewportProperty
return System.Windows.DependencyProperty