Class BillboardVisual3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that contains a billboard (a quadrilateral that always faces camera). The size of the billboard is defined in screen space.
public class BillboardVisual3D : RenderingModelVisual3D, IAnimatable, IAddChild
- Inheritance
-
BillboardVisual3D
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
BillboardVisual3D()
Initializes a new instance of the BillboardVisual3D class.
public BillboardVisual3D()
Fields
DepthOffsetProperty
Identifies the DepthOffset dependency property.
public static readonly DependencyProperty DepthOffsetProperty
Field Value
HeightProperty
Identifies the Height dependency property.
public static readonly DependencyProperty HeightProperty
Field Value
HorizontalAlignmentProperty
Identifies the HorizontalAlignment dependency property.
public static readonly DependencyProperty HorizontalAlignmentProperty
Field Value
MaterialProperty
Identifies the Material dependency property.
public static readonly DependencyProperty MaterialProperty
Field Value
PositionProperty
Identifies the Position dependency property.
public static readonly DependencyProperty PositionProperty
Field Value
VerticalAlignmentProperty
Identifies the VerticalAlignment dependency property.
public static readonly DependencyProperty VerticalAlignmentProperty
Field Value
WidthProperty
Identifies the Width dependency property.
public static readonly DependencyProperty WidthProperty
Field Value
Properties
DepthOffset
Gets or sets the depth offset.
public double DepthOffset { get; set; }
Property Value
- double
The depth offset.
Height
Gets or sets the height.
public double Height { get; set; }
Property Value
- double
The height.
HorizontalAlignment
Gets or sets the horizontal alignment.
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
- HorizontalAlignment
The horizontal alignment.
IsRendering
Gets or sets a value indicating whether this instance is being rendered. When the visual is removed from the visual tree, this property should be set to false.
public bool IsRendering { get; set; }
Property Value
Material
Gets or sets the material.
public Material? Material { get; set; }
Property Value
- Material
The material.
Mesh
Gets or sets the mesh.
protected MeshGeometry3D Mesh { get; set; }
Property Value
Model
Gets or sets the model.
protected GeometryModel3D Model { get; set; }
Property Value
Position
Gets or sets the position (center) of the billboard.
public Point3D Position { get; set; }
Property Value
- Point3D
The position.
VerticalAlignment
Gets or sets the vertical alignment.
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
- VerticalAlignment
The vertical alignment.
Width
Gets or sets the width.
public double Width { get; set; }
Property Value
- double
The width.
Methods
GeometryChanged(DependencyObject, DependencyPropertyChangedEventArgs)
The geometry changed.
protected static void GeometryChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Parameters
dDependencyObjectThe sender.
eDependencyPropertyChangedEventArgsThe event arguments.
OnCompositionTargetRendering(object?, RenderingEventArgs?)
The composition target_ rendering.
protected override void OnCompositionTargetRendering(object? sender, RenderingEventArgs? e)
Parameters
senderobjectThe sender.
eRenderingEventArgsThe event arguments.
OnMaterialChanged()
The on material changed.
public void OnMaterialChanged()
OnVisualParentChanged(DependencyObject)
Called when the parent of the 3-D visual object is changed.
protected override void OnVisualParentChanged(DependencyObject oldParent)
Parameters
oldParentDependencyObjectA value of type DependencyObject that represents the previous parent of the Visual3D object. If the Visual3D object did not have a previous parent, the value of the parameter is null.
UpdateGeometry()
Updates the geometry.
protected void UpdateGeometry()
UpdateTransforms()
Updates the transforms.
protected bool UpdateTransforms()
Returns
- bool
True if the transform is updated.