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
IsRenderingProperty
Indicates, if this element should be rendered, default is true
public static readonly DependencyProperty IsRenderingProperty
Field Value
MouseDown3DEvent
public static readonly RoutedEvent MouseDown3DEvent
Field Value
MouseMove3DEvent
public static readonly RoutedEvent MouseMove3DEvent
Field Value
MouseUp3DEvent
public static readonly RoutedEvent MouseUp3DEvent
Field Value
RenderOrderProperty
The render order property
public static readonly DependencyProperty RenderOrderProperty
Field Value
TransformProperty
public static readonly DependencyProperty TransformProperty
Field Value
VisibilityProperty
public static readonly DependencyProperty VisibilityProperty
Field Value
Properties
IsHitTestVisible
Indicates, if this element should be hit-tested. default is true
public bool IsHitTestVisible { get; set; }
Property Value
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
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
Visibility
public Visibility Visibility { get; set; }
Property Value
Methods
FindVisualAncestor<T>(DependencyObject)
Looks for the first visual ancestor of type T.
public static T? FindVisualAncestor<T>(DependencyObject obj) where T : DependencyObject
Parameters
objDependencyObjectThe respective DependencyObject.
Returns
- T
The first visual ancestor of type
Tif exists, elsenull.
Type Parameters
TThe type of visual ancestor.
OnMouse3DDown(object?, RoutedEventArgs)
protected virtual void OnMouse3DDown(object? sender, RoutedEventArgs e)
Parameters
senderobjecteRoutedEventArgs
OnMouse3DMove(object?, RoutedEventArgs)
protected virtual void OnMouse3DMove(object? sender, RoutedEventArgs e)
Parameters
senderobjecteRoutedEventArgs
OnMouse3DUp(object?, RoutedEventArgs)
protected virtual void OnMouse3DUp(object? sender, RoutedEventArgs e)
Parameters
senderobjecteRoutedEventArgs
Events
Mouse3DDown
public event EventHandler<MouseDown3DEventArgs?>? Mouse3DDown
Event Type
Mouse3DMove
public event EventHandler<MouseMove3DEventArgs?>? Mouse3DMove
Event Type
Mouse3DUp
public event EventHandler<MouseUp3DEventArgs?>? Mouse3DUp
Event Type
MouseDown3D
Provide CLR accessors for the event
public event RoutedEventHandler MouseDown3D
Event Type
MouseMove3D
Provide CLR accessors for the event
public event RoutedEventHandler MouseMove3D
Event Type
MouseUp3D
Provide CLR accessors for the event
public event RoutedEventHandler MouseUp3D
Event Type
Operators
implicit operator Element3D?(SceneNode)
public static implicit operator Element3D?(SceneNode node)
Parameters
nodeSceneNode