Class PointNode
- Namespace
- HelixToolkit.SharpDX.Model.Scene
- Assembly
- HelixToolkit.SharpDX.dll
public class PointNode : MaterialGeometryNode, IDisposable, IComparable<SceneNode>, IAnimationNode, IHitable, IThrowingShadow, IInstancing, IBoundable, IApplyPostEffect
- Inheritance
-
PointNode
- Implements
- Inherited Members
- Extension Methods
Properties
HitTestThickness
Used only for point/line hit test
public double HitTestThickness { get; set; }
Property Value
Methods
CanRender(RenderContext)
Determine if this can be rendered.
protected override bool CanRender(RenderContext context)
Parameters
contextRenderContext
Returns
CreateRasterState()
Create raster state description.
protected override RasterizerStateDescription CreateRasterState()
Returns
- RasterizerStateDescription
DistanceRayToPoint(Ray, Vector3)
Distances the ray to point.
public static double DistanceRayToPoint(Ray r, Vector3 p)
Parameters
Returns
OnCheckGeometry(Geometry3D?)
Called when [check geometry].
protected override bool OnCheckGeometry(Geometry3D? geometry)
Parameters
geometryGeometry3DThe geometry.
Returns
OnCreateBufferModel(Guid, Geometry3D?)
Called when [create buffer model].
protected override IAttachableBufferModel OnCreateBufferModel(Guid modelGuid, Geometry3D? geometry)
Parameters
modelGuidGuidgeometryGeometry3D
Returns
OnCreateRenderCore()
Called when [create render core].
protected override RenderCore OnCreateRenderCore()
Returns
OnCreateRenderTechnique(IEffectsManager)
Override this function to set render technique during Attach Host.
If OnSetRenderTechnique is set, then OnSetRenderTechnique instead of OnCreateRenderTechnique(IEffectsManager) function will be called.
protected override IRenderTechnique? OnCreateRenderTechnique(IEffectsManager effectsManager)
Parameters
effectsManagerIEffectsManager
Returns
- IRenderTechnique
Return RenderTechnique
OnHitTest(HitTestContext?, Matrix4x4, ref List<HitTestResult>)
Called when [hit test].
protected override bool OnHitTest(HitTestContext? context, Matrix4x4 totalModelMatrix, ref List<HitTestResult> hits)
Parameters
contextHitTestContextThe context.
totalModelMatrixMatrix4x4The total model matrix.
hitsList<HitTestResult>The hits.
Returns
PreHitTestOnBounds(HitTestContext?)
Pre hit test on BoundsWithTransform and BoundsSphereWithTransform. If return false, OnHitTest(HitTestContext?, Matrix4x4, ref List<HitTestResult>) will not be called.
protected override bool PreHitTestOnBounds(HitTestContext? context)
Parameters
contextHitTestContext