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
textureTextureModel
BillboardImage3D(Stream)
public BillboardImage3D(Stream imageStream)
Parameters
imageStreamStream
Properties
ImageInfos
public ObservableCollection<ImageInfo> ImageInfos { get; set; }
Property Value
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
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
contextHitTestContextThe context.
modelMatrixMatrix4x4The model matrix.
hitsList<HitTestResult>The hits.
originalSourceobjectThe original source.
fixedSizeboolif set to
true[fixed size].
Returns
OnAssignTo(Geometry3D)
protected override void OnAssignTo(Geometry3D target)
Parameters
targetGeometry3D
OnUpdateTextureAndBillboardVertices(IDeviceResources)
protected override void OnUpdateTextureAndBillboardVertices(IDeviceResources deviceResources)
Parameters
deviceResourcesIDeviceResources
UpdateBounds()
Manually call this function to update AABB and Bounding Sphere
public override void UpdateBounds()