Class Element3DCore
- Namespace
- HelixToolkit.WinUI.SharpDX.Model
- Assembly
- HelixToolkit.WinUI.SharpDX.dll
External Wrapper core to be used for different platform
public abstract class Element3DCore : Control, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, IDisposable
- Inheritance
-
Element3DCore
- Implements
-
IWinRTObject
- Derived
- Inherited Members
Properties
Bounds
Gets the bounds.
public BoundingBox Bounds { get; }
Property Value
- BoundingBox
The bounds.
BoundsSphere
Gets the bounds sphere.
public BoundingSphere BoundsSphere { get; }
Property Value
- BoundingSphere
The bounds sphere.
BoundsSphereWithTransform
Gets the bounds sphere with transform.
public BoundingSphere BoundsSphereWithTransform { get; }
Property Value
- BoundingSphere
The bounds sphere with transform.
BoundsWithTransform
Gets the bounds with transform.
public BoundingBox BoundsWithTransform { get; }
Property Value
- BoundingBox
The bounds with transform.
GUID
public Guid GUID { get; }
Property Value
IsAttached
public bool IsAttached { get; }
Property Value
SceneNode
public SceneNode SceneNode { get; }
Property Value
TotalModelMatrix
public Matrix4x4 TotalModelMatrix { get; }
Property Value
Visible
public bool Visible { get; }
Property Value
Methods
AssignDefaultValuesToSceneNode(SceneNode)
protected virtual void AssignDefaultValuesToSceneNode(SceneNode node)
Parameters
nodeSceneNode
Dispose()
Releases unmanaged and - optionally - managed resources.
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
Parameters
disposingbooltrueto release both managed and unmanaged resources;falseto release only unmanaged resources.
HitTest(HitTestContext?, ref List<HitTestResult>)
Hits the test.
public virtual bool HitTest(HitTestContext? context, ref List<HitTestResult> hits)
Parameters
contextHitTestContextThe context.
hitsList<HitTestResult>The hits.
Returns
InvalidateRender()
public void InvalidateRender()
OnCreateSceneNode()
Called when [create scene node].
protected abstract SceneNode OnCreateSceneNode()
Returns
Events
OnSceneNodeCreated
Occurs when [on scene node created]. Make sure to hook up this event at the top of constructor of class, otherwise may miss the event.
public event EventHandler<Element3DCore.SceneNodeCreatedEventArgs>? OnSceneNodeCreated
Event Type
Operators
explicit operator SceneNode?(Element3DCore)
public static explicit operator SceneNode?(Element3DCore core)
Parameters
coreElement3DCore