MeiCam SDK For Android  3.14.0
Public Member Functions | Protected Member Functions | List of all members
com.meicam.sdk.NvsParticleSystemContext Class Reference

Particle effect context The particle system is composed of several particle emitters and sub-emitters. The particle emitter emits particles over time, and the sub-emitter emits particles from the particles emitted by the particle emitter. More...

Public Member Functions

void setEmitterEnabled (String emitterName, boolean enable)
 Set whether to enable the emitter. More...
 
void setEmitterPosition (String emitterName, float emitterPositionX, float emitterPositionY)
 Set the particle emitter's position. More...
 
void appendPositionToEmitterPositionCurve (String emitterName, float timeSec, float emitterPositionX, float emitterPositionY)
 Append a path position to the particle emitter curve at the specified time point. More...
 
void setEmitterRateGain (String emitterName, float emitterGain)
 Set the rate gain of the particles emitted by the particle emitter. More...
 
void setEmitterParticleSizeGain (String emitterName, float emitterGain)
 Set the size gain of the particles emitted by the particle emitter. More...
 

Protected Member Functions

void setContextInterface (long contextInterface)
 
void finalize () throws Throwable
 

Detailed Description

Particle effect context The particle system is composed of several particle emitters and sub-emitters. The particle emitter emits particles over time, and the sub-emitter emits particles from the particles emitted by the particle emitter.

Warning
In the NvsParticleSystemContext class, all public APIs are used in the UI thread! ! !

Member Function Documentation

◆ appendPositionToEmitterPositionCurve()

void com.meicam.sdk.NvsParticleSystemContext.appendPositionToEmitterPositionCurve ( String  emitterName,
float  timeSec,
float  emitterPositionX,
float  emitterPositionY 
)
inline

Append a path position to the particle emitter curve at the specified time point.

Parameters
emitterNameemitter name
timeSectime point
emitterPositionXparticle emitter's X coordinate
emitterPositionYparticle emitter's Y coordinate

◆ finalize()

void com.meicam.sdk.NvsParticleSystemContext.finalize ( ) throws Throwable
inlineprotected

◆ setContextInterface()

void com.meicam.sdk.NvsParticleSystemContext.setContextInterface ( long  contextInterface)
inlineprotected

◆ setEmitterEnabled()

void com.meicam.sdk.NvsParticleSystemContext.setEmitterEnabled ( String  emitterName,
boolean  enable 
)
inline

Set whether to enable the emitter.

Parameters
emitterNameemitter name
enableenable or disable, default mode is enable.

◆ setEmitterParticleSizeGain()

void com.meicam.sdk.NvsParticleSystemContext.setEmitterParticleSizeGain ( String  emitterName,
float  emitterGain 
)
inline

Set the size gain of the particles emitted by the particle emitter.

Parameters
emitterNameemitter name
emitterGainemission size gain

◆ setEmitterPosition()

void com.meicam.sdk.NvsParticleSystemContext.setEmitterPosition ( String  emitterName,
float  emitterPositionX,
float  emitterPositionY 
)
inline

Set the particle emitter's position.

Parameters
emitterNameemitter name
emitterPositionXparticle emitter's X coordinate
emitterPositionYparticle emitter's Y coordinate

◆ setEmitterRateGain()

void com.meicam.sdk.NvsParticleSystemContext.setEmitterRateGain ( String  emitterName,
float  emitterGain 
)
inline

Set the rate gain of the particles emitted by the particle emitter.

Parameters
emitterNameemitter name
emitterGainemission rate gain

The documentation for this class was generated from the following file: