Table of Contents

Class ViewCubeVisual3D

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

A visual element that shows a view cube.

public class ViewCubeVisual3D : ModelVisual3D, IAnimatable, IAddChild
Inheritance
ViewCubeVisual3D
Implements
Inherited Members
Extension Methods

Constructors

ViewCubeVisual3D()

Initializes a new instance of the ViewCubeVisual3D class.

public ViewCubeVisual3D()

Fields

BackTextProperty

Identifies the BackText dependency property.

public static readonly DependencyProperty BackTextProperty

Field Value

DependencyProperty

BottomTextProperty

Identifies the BottomText dependency property.

public static readonly DependencyProperty BottomTextProperty

Field Value

DependencyProperty

CenterProperty

Identifies the Center dependency property.

public static readonly DependencyProperty CenterProperty

Field Value

DependencyProperty

EnableEdgeClicksProperty

Identifies the EnableEdgeClicks dependency property.

public static readonly DependencyProperty EnableEdgeClicksProperty

Field Value

DependencyProperty

FrontTextProperty

Identifies the FrontText dependency property.

public static readonly DependencyProperty FrontTextProperty

Field Value

DependencyProperty

IsEnabledProperty

Identifies the IsEnabled dependency property.

public static readonly DependencyProperty IsEnabledProperty

Field Value

DependencyProperty

IsTopBottomViewOrientedToFrontBackProperty

Identifies the IsTopBottomViewOrientedToFrontBack dependency property.

public static readonly DependencyProperty IsTopBottomViewOrientedToFrontBackProperty

Field Value

DependencyProperty

IsTopBottomViewReverseOrientedProperty

Identifies the IsTopBottomViewReverseOriented dependency property.

public static readonly DependencyProperty IsTopBottomViewReverseOrientedProperty

Field Value

DependencyProperty

LeftTextProperty

Identifies the LeftText dependency property.

public static readonly DependencyProperty LeftTextProperty

Field Value

DependencyProperty

ModelUpDirectionProperty

Identifies the ModelUpDirection dependency property.

public static readonly DependencyProperty ModelUpDirectionProperty

Field Value

DependencyProperty

RightTextProperty

Identifies the RightText dependency property.

public static readonly DependencyProperty RightTextProperty

Field Value

DependencyProperty

SizeProperty

Identifies the Size dependency property.

public static readonly DependencyProperty SizeProperty

Field Value

DependencyProperty

TopTextProperty

Identifies the TopText dependency property.

public static readonly DependencyProperty TopTextProperty

Field Value

DependencyProperty

ViewportProperty

Identifies the Viewport dependency property.

public static readonly DependencyProperty ViewportProperty

Field Value

DependencyProperty

Properties

BackText

Gets or sets the back text.

public string BackText { get; set; }

Property Value

string

The back text.

BottomText

Gets or sets the bottom text.

public string BottomText { get; set; }

Property Value

string

The bottom text.

Center

Gets or sets the center.

public Point3D Center { get; set; }

Property Value

Point3D

The center.

EnableEdgeClicks

Set or Get if view cube edge clickable.

public bool EnableEdgeClicks { get; set; }

Property Value

bool

FrontText

Gets or sets the front text.

public string FrontText { get; set; }

Property Value

string

The front text.

IsEnabled

Gets or sets a value indicating whether the view cube is enabled.

public bool IsEnabled { get; set; }

Property Value

bool

IsTopBottomViewOrientedToFrontBack

Gets or sets a value indicating whether the top and bottom views are oriented to front and back.

public bool IsTopBottomViewOrientedToFrontBack { get; set; }

Property Value

bool

IsTopBottomViewReverseOriented

Gets or sets a value indicating whether the top and bottom views reverse oriented.

public bool IsTopBottomViewReverseOriented { get; set; }

Property Value

bool

LeftText

Gets or sets the left text.

public string LeftText { get; set; }

Property Value

string

The left text.

ModelUpDirection

Gets or sets the model up direction.

public Vector3D ModelUpDirection { get; set; }

Property Value

Vector3D

The model up direction.

RightText

Gets or sets the right text.

public string RightText { get; set; }

Property Value

string

The right text.

Size

Gets or sets the size.

public double Size { get; set; }

Property Value

double

The size.

TopText

Gets or sets the top text.

public string TopText { get; set; }

Property Value

string

The top text.

Viewport

Gets or sets the viewport that is being controlled by the view cube.

[Browsable(false)]
public Viewport3D Viewport { get; set; }

Property Value

Viewport3D

The viewport.

Methods

OnClicked(Vector3D, Vector3D)

Raises the Clicked event.

protected virtual void OnClicked(Vector3D lookDirection, Vector3D upDirection)

Parameters

lookDirection Vector3D

The look direction.

upDirection Vector3D

Up direction.

Events

Clicked

Occurs when a face has been clicked on.

public event EventHandler<ViewCubeVisual3D.ClickedEventArgs>? Clicked

Event Type

EventHandler<ViewCubeVisual3D.ClickedEventArgs>