Table of Contents

Class Element3D

Namespace
HelixToolkit.Wpf.SharpDX
Assembly
HelixToolkit.Wpf.SharpDX.dll

Base class for renderable elements.

public abstract class Element3D : Element3DCore, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IDisposable, IVisible
Inheritance
Element3D
Implements
Derived
Inherited Members
Extension Methods

Constructors

Element3D()

public Element3D()

Fields

IsHitTestVisibleProperty

The is hit test visible property

public static readonly DependencyProperty IsHitTestVisibleProperty

Field Value

DependencyProperty

IsRenderingProperty

Indicates, if this element should be rendered, default is true

public static readonly DependencyProperty IsRenderingProperty

Field Value

DependencyProperty

MouseDown3DEvent

public static readonly RoutedEvent MouseDown3DEvent

Field Value

RoutedEvent

MouseMove3DEvent

public static readonly RoutedEvent MouseMove3DEvent

Field Value

RoutedEvent

MouseUp3DEvent

public static readonly RoutedEvent MouseUp3DEvent

Field Value

RoutedEvent

RenderOrderProperty

The render order property

public static readonly DependencyProperty RenderOrderProperty

Field Value

DependencyProperty

TransformProperty

public static readonly DependencyProperty TransformProperty

Field Value

DependencyProperty

VisibilityProperty

public static readonly DependencyProperty VisibilityProperty

Field Value

DependencyProperty

Properties

IsHitTestVisible

Indicates, if this element should be hit-tested. default is true

public bool IsHitTestVisible { get; set; }

Property Value

bool

IsRendering

Indicates, if this element should be rendered. Use this also to make the model visible/unvisible default is true

public bool IsRendering { get; set; }

Property Value

bool

RenderOrder

Gets or sets the manual render order.

public int RenderOrder { get; set; }

Property Value

int

The render order.

Transform

public Transform3D Transform { get; set; }

Property Value

Transform3D

Visibility

public Visibility Visibility { get; set; }

Property Value

Visibility

Methods

FindVisualAncestor<T>(DependencyObject)

Looks for the first visual ancestor of type T.

public static T? FindVisualAncestor<T>(DependencyObject obj) where T : DependencyObject

Parameters

obj DependencyObject

The respective DependencyObject.

Returns

T

The first visual ancestor of type T if exists, else null.

Type Parameters

T

The type of visual ancestor.

OnMouse3DDown(object?, RoutedEventArgs)

protected virtual void OnMouse3DDown(object? sender, RoutedEventArgs e)

Parameters

sender object
e RoutedEventArgs

OnMouse3DMove(object?, RoutedEventArgs)

protected virtual void OnMouse3DMove(object? sender, RoutedEventArgs e)

Parameters

sender object
e RoutedEventArgs

OnMouse3DUp(object?, RoutedEventArgs)

protected virtual void OnMouse3DUp(object? sender, RoutedEventArgs e)

Parameters

sender object
e RoutedEventArgs

Events

Mouse3DDown

public event EventHandler<MouseDown3DEventArgs?>? Mouse3DDown

Event Type

EventHandler<MouseDown3DEventArgs>

Mouse3DMove

public event EventHandler<MouseMove3DEventArgs?>? Mouse3DMove

Event Type

EventHandler<MouseMove3DEventArgs>

Mouse3DUp

public event EventHandler<MouseUp3DEventArgs?>? Mouse3DUp

Event Type

EventHandler<MouseUp3DEventArgs>

MouseDown3D

Provide CLR accessors for the event

public event RoutedEventHandler MouseDown3D

Event Type

RoutedEventHandler

MouseMove3D

Provide CLR accessors for the event

public event RoutedEventHandler MouseMove3D

Event Type

RoutedEventHandler

MouseUp3D

Provide CLR accessors for the event

public event RoutedEventHandler MouseUp3D

Event Type

RoutedEventHandler

Operators

implicit operator Element3D?(SceneNode)

public static implicit operator Element3D?(SceneNode node)

Parameters

node SceneNode

Returns

Element3D