Table of Contents

Class BillboardImage3D

Namespace
HelixToolkit.SharpDX
Assembly
HelixToolkit.SharpDX.dll
public class BillboardImage3D : BillboardBase, INotifyPropertyChanged, IGUID, IBillboardText
Inheritance
BillboardImage3D
Implements
Inherited Members

Constructors

BillboardImage3D(TextureModel?)

public BillboardImage3D(TextureModel? texture)

Parameters

texture TextureModel

BillboardImage3D(Stream)

public BillboardImage3D(Stream imageStream)

Parameters

imageStream Stream

Properties

ImageInfos

public ObservableCollection<ImageInfo> ImageInfos { get; set; }

Property Value

ObservableCollection<ImageInfo>

MaskColor

If color in image is equal to the mask color, the color will set to transparent in image. Default color is Transparent, which did not mask any color.

public Color4 MaskColor { get; set; }

Property Value

Color4

Type

Gets the type.

public override BillboardType Type { get; }

Property Value

BillboardType

The type.

Methods

HitTest(HitTestContext?, Matrix4x4, ref List<HitTestResult>, object?, bool)

Hits the test.

public override bool HitTest(HitTestContext? context, Matrix4x4 modelMatrix, ref List<HitTestResult> hits, object? originalSource, bool fixedSize)

Parameters

context HitTestContext

The context.

modelMatrix Matrix4x4

The model matrix.

hits List<HitTestResult>

The hits.

originalSource object

The original source.

fixedSize bool

if set to true [fixed size].

Returns

bool

OnAssignTo(Geometry3D)

protected override void OnAssignTo(Geometry3D target)

Parameters

target Geometry3D

OnUpdateTextureAndBillboardVertices(IDeviceResources)

protected override void OnUpdateTextureAndBillboardVertices(IDeviceResources deviceResources)

Parameters

deviceResources IDeviceResources

UpdateBounds()

Manually call this function to update AABB and Bounding Sphere

public override void UpdateBounds()