C# Class HelixToolkit.Wpf.BillboardVisual3D

A visual element that contains a billboard (a quadrilateral that always faces camera). The size of the billboard is defined in screen space.
Inheritance: RenderingModelVisual3D
ファイルを表示 Open project: litdev1/LitDev

Public Properties

Property Type Description
DepthOffsetProperty System.Windows.DependencyProperty
HeightProperty System.Windows.DependencyProperty
HorizontalAlignmentProperty System.Windows.DependencyProperty
MaterialProperty System.Windows.DependencyProperty
PositionProperty System.Windows.DependencyProperty
VerticalAlignmentProperty System.Windows.DependencyProperty
WidthProperty System.Windows.DependencyProperty

Public Methods

Method Description
BillboardVisual3D ( ) : System.Windows

Initializes a new instance of the BillboardVisual3D class.

OnMaterialChanged ( ) : void

The on material changed.

Protected Methods

Method Description
GeometryChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

The geometry changed.

OnCompositionTargetRendering ( object sender, System.Windows.Media.RenderingEventArgs e ) : void

The composition target_ rendering.

OnVisualParentChanged ( DependencyObject oldParent ) : void

Called when the parent of the 3-D visual object is changed.

UpdateGeometry ( ) : void

Updates the geometry.

UpdateTransforms ( ) : bool

Updates the transforms.

Private Methods

Method Description
MaterialChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

The color changed.

OnGeometryChanged ( ) : void

Called when geometry properties have changed.

Method Details

BillboardVisual3D() public method

Initializes a new instance of the BillboardVisual3D class.
public BillboardVisual3D ( ) : System.Windows
return System.Windows

GeometryChanged() protected static method

The geometry changed.
protected static GeometryChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject /// The sender. ///
e System.Windows.DependencyPropertyChangedEventArgs /// The event arguments. ///
return void

OnCompositionTargetRendering() protected method

The composition target_ rendering.
protected OnCompositionTargetRendering ( object sender, System.Windows.Media.RenderingEventArgs e ) : void
sender object /// The sender. ///
e System.Windows.Media.RenderingEventArgs /// The event arguments. ///
return void

OnMaterialChanged() public method

The on material changed.
public OnMaterialChanged ( ) : void
return void

OnVisualParentChanged() protected method

Called when the parent of the 3-D visual object is changed.
protected OnVisualParentChanged ( DependencyObject oldParent ) : void
oldParent System.Windows.DependencyObject /// A value of type that represents the previous parent of the /// /// object. If the /// /// object did not have a previous parent, the value of the parameter is null. ///
return void

UpdateGeometry() protected method

Updates the geometry.
protected UpdateGeometry ( ) : void
return void

UpdateTransforms() protected method

Updates the transforms.
protected UpdateTransforms ( ) : bool
return bool

Property Details

DepthOffsetProperty public_oe static_oe property

Identifies the DepthOffset dependency property.
public static DependencyProperty,System.Windows DepthOffsetProperty
return System.Windows.DependencyProperty

HeightProperty public_oe static_oe property

Identifies the Height dependency property.
public static DependencyProperty,System.Windows HeightProperty
return System.Windows.DependencyProperty

HorizontalAlignmentProperty public_oe static_oe property

Identifies the HorizontalAlignment dependency property.
public static DependencyProperty,System.Windows HorizontalAlignmentProperty
return System.Windows.DependencyProperty

MaterialProperty public_oe static_oe property

Identifies the Material dependency property.
public static DependencyProperty,System.Windows MaterialProperty
return System.Windows.DependencyProperty

PositionProperty public_oe static_oe property

Identifies the Position dependency property.
public static DependencyProperty,System.Windows PositionProperty
return System.Windows.DependencyProperty

VerticalAlignmentProperty public_oe static_oe property

Identifies the VerticalAlignment dependency property.
public static DependencyProperty,System.Windows VerticalAlignmentProperty
return System.Windows.DependencyProperty

WidthProperty public_oe static_oe property

Identifies the Width dependency property.
public static DependencyProperty,System.Windows WidthProperty
return System.Windows.DependencyProperty