Table of Contents

Class ParticleStormNode

Namespace
HelixToolkit.SharpDX.Model.Scene
Assembly
HelixToolkit.SharpDX.dll
public class ParticleStormNode : SceneNode, IDisposable, IComparable<SceneNode>, IAnimationNode, IInstancing, IBoundable
Inheritance
ParticleStormNode
Implements
Inherited Members
Extension Methods

Constructors

ParticleStormNode()

public ParticleStormNode()

Fields

boundChanged

protected volatile bool boundChanged

Field Value

bool

Properties

AlphaBlend

Gets or sets the alpha blend.

public BlendOperation AlphaBlend { get; set; }

Property Value

BlendOperation

The alpha blend.

AnimateSpriteByEnergy

Gets or sets a value indicating whether [animate sprite by energy].

public bool AnimateSpriteByEnergy { get; set; }

Property Value

bool

true if [animate sprite by energy]; otherwise, false.

Blend

Gets or sets the blend.

public BlendOperation Blend { get; set; }

Property Value

BlendOperation

The blend.

BlendColor

Gets or sets the color of the blend.

public Color4 BlendColor { get; set; }

Property Value

Color4

The color of the blend.

BlendFactor

Gets or sets the blend factor for blending

public Color4 BlendFactor { get; set; }

Property Value

Color4

The blend factor.

Bounds

public override BoundingBox Bounds { get; }

Property Value

BoundingBox

The bounds.

BoundsSphere

public override BoundingSphere BoundsSphere { get; }

Property Value

BoundingSphere

The bounds sphere.

BoundsSphereWithTransform

public override BoundingSphere BoundsSphereWithTransform { get; }

Property Value

BoundingSphere

The bounds sphere with transform.

BoundsWithTransform

public override BoundingBox BoundsWithTransform { get; }

Property Value

BoundingBox

The bounds with transform.

ConsumerGravity

Gets or sets the consumer gravity.

public float ConsumerGravity { get; set; }

Property Value

float

The consumer gravity.

ConsumerLocation

Gets or sets the consumer location.

public Vector3 ConsumerLocation { get; set; }

Property Value

Vector3

The consumer location.

ConsumerRadius

Gets or sets the consumer radius.

public float ConsumerRadius { get; set; }

Property Value

float

The consumer radius.

CumulateAtBound

Gets or sets a value indicating whether [cumulate at bound].

public bool CumulateAtBound { get; set; }

Property Value

bool

true if [cumulate at bound]; otherwise, false.

DestAlphaBlend

Gets or sets the dest alpha blend.

public BlendOption DestAlphaBlend { get; set; }

Property Value

BlendOption

The dest alpha blend.

DestBlend

Gets or sets the dest blend.

public BlendOption DestBlend { get; set; }

Property Value

BlendOption

The dest blend.

DomainBoundMax

Gets or sets the domain bound maximum.

public Vector3 DomainBoundMax { get; set; }

Property Value

Vector3

The domain bound maximum.

DomainBoundMin

Gets or sets the domain bound minimum.

public Vector3 DomainBoundMin { get; set; }

Property Value

Vector3

The domain bound minimum.

EmitterLocation

Gets or sets the emitter location.

public Vector3 EmitterLocation { get; set; }

Property Value

Vector3

The emitter location.

EmitterRadius

Gets or sets the emitter radius.

public float EmitterRadius { get; set; }

Property Value

float

The emitter radius.

EnableViewFrustumCheck

Gets or sets a value indicating whether [enable view frustum check].

public bool EnableViewFrustumCheck { get; set; }

Property Value

bool

true if [enable view frustum check]; otherwise, false.

EnergyDissipationRate

Gets or sets the energy dissipation rate.

public float EnergyDissipationRate { get; set; }

Property Value

float

The energy dissipation rate.

HasInstances

Gets a value indicating whether this instance has instances.

public bool HasInstances { get; }

Property Value

bool

true if this instance has instances; otherwise, false.

InitAcceleration

Gets or sets the initialize acceleration.

public Vector3 InitAcceleration { get; set; }

Property Value

Vector3

The initialize acceleration.

InitialEnergy

Gets or sets the initial energy.

public float InitialEnergy { get; set; }

Property Value

float

The initial energy.

InitialVelocity

Gets or sets the initial velocity.

public float InitialVelocity { get; set; }

Property Value

float

The initial velocity.

InstanceBuffer

Gets the instance buffer.

public IElementsBufferModel<Matrix4x4> InstanceBuffer { get; }

Property Value

IElementsBufferModel<Matrix4x4>

The instance buffer.

Instances

Gets or sets the instances.

public IList<Matrix4x4>? Instances { get; set; }

Property Value

IList<Matrix4x4>

The instances.

NumTextureColumn

Gets or sets the number texture column.

public uint NumTextureColumn { get; set; }

Property Value

uint

The number texture column.

NumTextureRow

Gets or sets the number texture row.

public uint NumTextureRow { get; set; }

Property Value

uint

The number texture row.

OriginalBounds

public override BoundingBox OriginalBounds { get; }

Property Value

BoundingBox

The original bounds.

OriginalBoundsSphere

public override BoundingSphere OriginalBoundsSphere { get; }

Property Value

BoundingSphere

The original bounds sphere.

ParticleCount

Gets or sets the particle count.

public int ParticleCount { get; set; }

Property Value

int

The particle count.

ParticleSize

Gets or sets the size of the particle.

public Vector2 ParticleSize { get; set; }

Property Value

Vector2

The size of the particle.

ParticleTexture

Gets or sets the particle texture.

public TextureModel? ParticleTexture { get; set; }

Property Value

TextureModel

The particle texture.

RandomVectorGenerator

Gets or sets the random vector generator.

public IRandomVector? RandomVectorGenerator { get; set; }

Property Value

IRandomVector

The random vector generator.

SampleMask

Gets or sets the sample mask for blending

public int SampleMask { get; set; }

Property Value

int

The sample mask.

SourceAlphaBlend

Gets or sets the source alpha blend.

public BlendOption SourceAlphaBlend { get; set; }

Property Value

BlendOption

The source alpha blend.

SourceBlend

Gets or sets the source blend.

public BlendOption SourceBlend { get; set; }

Property Value

BlendOption

The source blend.

Turbulance

Gets or sets the turbulance.

public float Turbulance { get; set; }

Property Value

float

The turbulance.

Methods

HitTest(HitTestContext?, ref List<HitTestResult>)

Hits the test.

public override sealed bool HitTest(HitTestContext? context, ref List<HitTestResult> hits)

Parameters

context HitTestContext

The context.

hits List<HitTestResult>

The hits.

Returns

bool

OnAttach(IEffectsManager)

To override Attach routine, please override this.

protected override bool OnAttach(IEffectsManager effectsManager)

Parameters

effectsManager IEffectsManager

Returns

bool

Return true if attached

OnCreateRenderCore()

Called when [create render core].

protected override RenderCore OnCreateRenderCore()

Returns

RenderCore

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

effectsManager IEffectsManager

Returns

IRenderTechnique

Return RenderTechnique

OnDetach()

Called when [detach].

protected override void OnDetach()

OnHitTest(HitTestContext?, Matrix4x4, ref List<HitTestResult>)

Called when [hit test].

protected override sealed bool OnHitTest(HitTestContext? context, Matrix4x4 totalModelMatrix, ref List<HitTestResult> hits)

Parameters

context HitTestContext

The context.

totalModelMatrix Matrix4x4

The total model matrix.

hits List<HitTestResult>

The hits.

Returns

bool

TestViewFrustum(ref BoundingFrustum)

Tests the view frustum.

public override bool TestViewFrustum(ref BoundingFrustum viewFrustum)

Parameters

viewFrustum BoundingFrustum

The view frustum.

Returns

bool

Update(RenderContext)

Updates the specified context.

public override void Update(RenderContext context)

Parameters

context RenderContext

The context.