Class SortingVisual3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that sorts the children by distance from camera.
public class SortingVisual3D : RenderingModelVisual3D, IAnimatable, IAddChild
- Inheritance
-
SortingVisual3D
- Implements
- Inherited Members
- Extension Methods
Remarks
The children are sorted by the distance to the camera position. This will not always work when you have overlapping objects.
Constructors
SortingVisual3D()
Initializes a new instance of the SortingVisual3D class.
public SortingVisual3D()
Fields
CheckForOpaqueVisualsProperty
Identifies the CheckForOpaqueVisuals dependency property.
public static readonly DependencyProperty CheckForOpaqueVisualsProperty
Field Value
IsSortingProperty
Identifies the IsSorting dependency property.
public static readonly DependencyProperty IsSortingProperty
Field Value
MethodProperty
Identifies the Method dependency property.
public static readonly DependencyProperty MethodProperty
Field Value
SortingFrequencyProperty
Identifies the SortingFrequency dependency property.
public static readonly DependencyProperty SortingFrequencyProperty
Field Value
Properties
CheckForOpaqueVisuals
Gets or sets a value indicating whether to check if there are opaque child visuals.
public bool CheckForOpaqueVisuals { get; set; }
Property Value
IsSorting
Gets or sets a value indicating whether this instance is being sorted. When the visual is removed from the Viewport3D, this property should be set to false to unsubscribe the rendering event.
public bool IsSorting { get; set; }
Property Value
Method
Gets or sets the sorting method.
public SortingMethod Method { get; set; }
Property Value
- SortingMethod
The method.
SortingFrequency
Gets or sets the sorting frequency (Hz).
public double SortingFrequency { get; set; }
Property Value
- double
The sorting frequency.
Methods
OnCompositionTargetRendering(object?, RenderingEventArgs?)
The composition target_ rendering.
protected override void OnCompositionTargetRendering(object? sender, RenderingEventArgs? e)
Parameters
senderobjectThe sender.
eRenderingEventArgsThe event arguments.