Class BillboardTextGroupVisual3D
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A visual element that contains a collection of text billboards.
public class BillboardTextGroupVisual3D : RenderingModelVisual3D, IAnimatable, IAddChild, IBoundsIgnoredVisual3D
- Inheritance
-
BillboardTextGroupVisual3D
- Implements
- Inherited Members
- Extension Methods
Constructors
BillboardTextGroupVisual3D()
Initializes a new instance of the BillboardTextGroupVisual3D class.
public BillboardTextGroupVisual3D()
Fields
BackgroundProperty
Identifies the Background dependency property.
public static readonly DependencyProperty BackgroundProperty
Field Value
BorderBrushProperty
Identifies the BorderBrush dependency property.
public static readonly DependencyProperty BorderBrushProperty
Field Value
BorderThicknessProperty
Identifies the BorderThickness dependency property.
public static readonly DependencyProperty BorderThicknessProperty
Field Value
FontFamilyProperty
Identifies the FontFamily dependency property.
public static readonly DependencyProperty FontFamilyProperty
Field Value
FontSizeProperty
Identifies the FontSize dependency property.
public static readonly DependencyProperty FontSizeProperty
Field Value
FontWeightProperty
Identifies the FontWeight dependency property.
public static readonly DependencyProperty FontWeightProperty
Field Value
ForegroundProperty
Identifies the Foreground dependency property.
public static readonly DependencyProperty ForegroundProperty
Field Value
HeightFactorProperty
Identifies the HeightFactor dependency property.
public static readonly DependencyProperty HeightFactorProperty
Field Value
IsEnabledProperty
Identifies the IsEnabled dependency property.
public static readonly DependencyProperty IsEnabledProperty
Field Value
ItemsProperty
Identifies the Items dependency property.
public static readonly DependencyProperty ItemsProperty
Field Value
OffsetProperty
Identifies the Offset dependency property.
public static readonly DependencyProperty OffsetProperty
Field Value
PaddingProperty
Identifies the Padding dependency property.
public static readonly DependencyProperty PaddingProperty
Field Value
PinBrushProperty
Identifies the PinBrush dependency property.
public static readonly DependencyProperty PinBrushProperty
Field Value
PinWidthProperty
Identifies the PinWidth dependency property.
public static readonly DependencyProperty PinWidthProperty
Field Value
Properties
Background
Gets or sets the background.
public Brush Background { get; set; }
Property Value
- Brush
The background.
BorderBrush
Gets or sets the border brush.
public Brush BorderBrush { get; set; }
Property Value
- Brush
The border brush.
BorderThickness
Gets or sets the border thickness.
public Thickness BorderThickness { get; set; }
Property Value
- Thickness
The border thickness.
FontFamily
Gets or sets the font family.
public FontFamily FontFamily { get; set; }
Property Value
- FontFamily
The font family.
FontSize
Gets or sets the size of the font.
public double FontSize { get; set; }
Property Value
- double
The size of the font.
FontWeight
Gets or sets the font weight.
public FontWeight FontWeight { get; set; }
Property Value
- FontWeight
The font weight.
Foreground
Gets or sets the foreground brush.
public Brush Foreground { get; set; }
Property Value
- Brush
The foreground.
HeightFactor
Gets or sets the height factor.
public double HeightFactor { get; set; }
Property Value
- double
The height factor.
IsEnabled
Gets or sets a value indicating whether updating of this object is enabled.
public bool IsEnabled { get; set; }
Property Value
- bool
trueif this object is enabled; otherwise,false.
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
Items
Gets or sets the items.
public IList<BillboardTextItem> Items { get; set; }
Property Value
- IList<BillboardTextItem>
The items.
Offset
Gets or sets the offset of the billboard text (in screen coordinates).
public Vector Offset { get; set; }
Property Value
- Vector
The offset.
Padding
Gets or sets the padding.
public Thickness Padding { get; set; }
Property Value
- Thickness
The padding.
PinBrush
Gets or sets the pin brush.
public Brush PinBrush { get; set; }
Property Value
- Brush
The pin brush.
PinWidth
Gets or sets the width of the 'pin'.
public double PinWidth { get; set; }
Property Value
- double
The width of the pin.
Remarks
You must set the Offset property for the pin to show up.
Methods
OnCompositionTargetRendering(object?, RenderingEventArgs?)
Handles the CompositionTarget.Rendering event.
protected override void OnCompositionTargetRendering(object? sender, RenderingEventArgs? eventArgs)
Parameters
senderobjectThe sender.
eventArgsRenderingEventArgsThe RenderingEventArgs instance containing the event data.
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.