|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.ParticleEmitter
public class ParticleEmitter
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
ParticleEmitter(InstancePointer p)
This constructor is public for internal useage only! |
protected |
ParticleEmitter(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
ParticleEmitter(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
int |
_getEmissionCount(float timeElapsed)
Gets the number of particles which this emitter would like to emit based on the time elapsed. |
void |
_initParticle(IParticle pParticle)
Initialises a particle based on the emitter's approach and parameters. |
void |
_notifyOwner(IParticleSystem owner)
Internal method for notifying the particle of it's owner. |
void |
_notifyVisualData(IParticleVisualData vis)
Internal method for notifying the particle of it's optional visual data. |
static void |
cleanupDictionary()
Cleans up the static 'msDictionary' required to reset , otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the implementers (e.g. ) initializes. |
void |
copyParametersTo(IStringInterface dest)
Method for copying this object's parameters to another object. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
IRadian |
getAngle()
Returns the maximum angle which the initial particle direction can deviate from the emitters base direction. |
IColourValue |
getColour()
Gets the colour of particles to be emitted. |
void |
getcolour(IColourValue returnValue)
|
IColourValue |
getColourRangeEnd()
Gets the maximum colour of particles to be emitted. |
IColourValue |
getColourRangeStart()
Gets the minimum colour of particles to be emitted. |
IVector3 |
getDirection()
Returns the base direction of the emitter. |
void |
getdirection(IVector3 returnValue)
|
float |
getDuration()
Gets the duration of the emitter from when it is created or re-enabled. |
float |
getEmissionRate()
Returns the emission rate set for this emitter. |
java.lang.String |
getEmittedEmitter()
Returns the name of the emitter to be emitted |
boolean |
getEnabled()
Gets the flag indicating if this emitter is enabled or not. |
float |
getMaxDuration()
Gets the maximum duration of this emitter in seconds (see setDuration for more details) |
float |
getMaxParticleVelocity()
Returns the maximum particle velocity. |
float |
getMaxRepeatDelay()
Gets the maximum duration of this emitter in seconds (see setRepeatDelay for more details) |
float |
getMaxTimeToLive()
Gets the maximum time each particle will live for. |
float |
getmHeight()
|
float |
getMinDuration()
Gets the minimum duration of this emitter in seconds (see setDuration for more details) |
float |
getMinParticleVelocity()
Returns the minimum particle velocity. |
float |
getMinRepeatDelay()
Gets the minimum duration of this emitter in seconds (see setRepeatDelay for more details) |
float |
getMinTimeToLive()
Gets the minimum time each particle will live for. |
boolean |
getmOwnDimensions()
|
float |
getmWidth()
|
java.lang.String |
getName()
Returns the name of the emitter |
float |
getOwnHeight()
Retrieves the particle's personal width, if hasOwnDimensions is true. |
float |
getOwnWidth()
Retrieves the particle's personal width, if hasOwnDimensions is true. |
IParamDictionary |
getParamDictionary_const()
|
IParamDictionary |
getParamDictionary()
Retrieves the parameter dictionary for this class. |
java.lang.String |
getParameter(java.lang.String name)
Generic parameter retrieval method. |
IParameterList |
getParameters()
Retrieves a list of parameters valid for this object. |
Particle.ParticleType |
getparticleType()
|
float |
getParticleVelocity()
Returns the initial velocity of particles emitted. |
IVector3 |
getPosition()
Returns the position of this emitter relative to the center of the particle system. |
void |
getposition(IVector3 returnValue)
|
float |
getRepeatDelay()
Gets the duration of the emitter from when it is created or re-enabled. |
IRadian |
getRotation()
|
void |
getrotation(IRadian returnValue)
|
void |
getrotationSpeed(IRadian returnValue)
|
float |
getStartTime()
Gets the start time of the emitter. |
float |
gettimeToLive()
|
float |
getTimeToLive()
Gets the time each particle will live for. |
float |
gettotalTimeToLive()
|
java.lang.String |
getType()
Returns the name of the type of emitter. |
IParticleVisualData |
getVisualData()
|
boolean |
hasOwnDimensions()
Returns true if this particle deviates from the ParticleSystem's default dimensions (i.e. if the particle::setDimensions method has been called for this instance). |
boolean |
isEmitted()
Return 'true' if the emitter is emitted by another emitter |
void |
resetDimensions()
|
void |
setAngle(IRadian angle)
Sets the maximum angle away from the emitter direction which particle will be emitted. |
void |
setcolour(IColourValue _jni_value_)
|
void |
setColour(IColourValue colour)
Sets the initial colour of particles emitted. |
void |
setColour(IColourValue colourStart,
IColourValue colourEnd)
Sets the range of colours for emitted particles. |
void |
setColourRangeEnd(IColourValue colour)
Sets the maximum colour of particles to be emitted. |
void |
setColourRangeStart(IColourValue colour)
Sets the minimum colour of particles to be emitted. |
void |
setDimensions(float width,
float height)
Sets the width and height for this particle. |
void |
setdirection(IVector3 _jni_value_)
|
void |
setDirection(IVector3 direction)
Sets the direction of the emitter. |
void |
setDuration(float duration)
Sets the duration of the emitter. |
void |
setDuration(float _min,
float _max)
Sets the range of random duration for this emitter. |
void |
setEmissionRate(float particlesPerSecond)
Sets the emission rate for this emitter. |
void |
setEmitted(boolean emitted)
Set the indication (true/false) to indicate that the emitter is emitted by another emitter |
void |
setEmittedEmitter(java.lang.String emittedEmitter)
Sets the name of the emitter to be emitted |
void |
setEnabled(boolean enabled)
Sets whether or not the emitter is enabled. |
void |
setMaxDuration(float _max)
Sets the maximum duration of this emitter in seconds (see setDuration for more details) |
void |
setMaxParticleVelocity(float _max)
Returns the maximum particle velocity. |
void |
setMaxRepeatDelay(float _max)
Sets the maximum duration of this emitter in seconds (see setRepeatDelay for more details) |
void |
setMaxTimeToLive(float _max)
Sets the maximum time each particle will live for. |
void |
setmHeight(float _jni_value_)
|
void |
setMinDuration(float _min)
Sets the minimum duration of this emitter in seconds (see setDuration for more details) |
void |
setMinParticleVelocity(float _min)
Returns the minimum particle velocity. |
void |
setMinRepeatDelay(float _min)
Sets the minimum duration of this emitter in seconds (see setRepeatDelay for more details) |
void |
setMinTimeToLive(float _min)
Sets the minimum time each particle will live for. |
void |
setmOwnDimensions(boolean _jni_value_)
|
void |
setmWidth(float _jni_value_)
|
void |
setName(java.lang.String newName)
Sets the name of the emitter |
boolean |
setParameter(java.lang.String name,
java.lang.String value)
Generic parameter setting method. |
void |
setParameterList(INameValuePairList paramList)
Generic multiple parameter setting method. |
void |
setparticleType(Particle.ParticleType _jni_value_)
|
void |
setParticleVelocity(float speed)
Sets the initial velocity of particles emitted. |
void |
setParticleVelocity(float _min,
float _max)
Sets the initial velocity range of particles emitted. |
void |
setposition(IVector3 _jni_value_)
|
void |
setPosition(IVector3 pos)
Sets the position of this emitter relative to the particle system center. |
void |
setRepeatDelay(float duration)
Sets the time between repeats of the emitter. |
void |
setRepeatDelay(float _min,
float _max)
Sets the range of random duration for this emitter. |
void |
setrotation(IRadian _jni_value_)
|
void |
setRotation(IRadian rad)
Sets the current rotation |
void |
setrotationSpeed(IRadian _jni_value_)
|
void |
setStartTime(float startTime)
Sets the 'start time' of this emitter. |
void |
settimeToLive(float _jni_value_)
|
void |
setTimeToLive(float ttl)
Sets the lifetime of all particles emitted. |
void |
setTimeToLive(float minTtl,
float maxTtl)
Sets the range of lifetime for particles emitted. |
void |
settotalTimeToLive(float _jni_value_)
|
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public ParticleEmitter(InstancePointer p)
protected ParticleEmitter(InstancePointer p,
boolean remote)
public ParticleEmitter(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic void setPosition(IVector3 pos)
setPosition in interface IParticleEmitterpublic IVector3 getPosition()
getPosition in interface IParticleEmitterpublic void setDirection(IVector3 direction)
setDirection in interface IParticleEmitterpublic IVector3 getDirection()
getDirection in interface IParticleEmitterpublic void setAngle(IRadian angle)
setAngle in interface IParticleEmitterpublic IRadian getAngle()
getAngle in interface IParticleEmitterpublic void setParticleVelocity(float speed)
setParticleVelocity in interface IParticleEmitter
public void setParticleVelocity(float _min,
float _max)
setParticleVelocity in interface IParticleEmitterpublic void setMinParticleVelocity(float _min)
setMinParticleVelocity in interface IParticleEmitterpublic void setMaxParticleVelocity(float _max)
setMaxParticleVelocity in interface IParticleEmitterpublic float getParticleVelocity()
getParticleVelocity in interface IParticleEmitterpublic float getMinParticleVelocity()
getMinParticleVelocity in interface IParticleEmitterpublic float getMaxParticleVelocity()
getMaxParticleVelocity in interface IParticleEmitterpublic void setEmissionRate(float particlesPerSecond)
setEmissionRate in interface IParticleEmitterpublic float getEmissionRate()
getEmissionRate in interface IParticleEmitterpublic void setTimeToLive(float ttl)
setTimeToLive in interface IParticleEmitter
public void setTimeToLive(float minTtl,
float maxTtl)
setTimeToLive in interface IParticleEmitterpublic void setMinTimeToLive(float _min)
setMinTimeToLive in interface IParticleEmitterpublic void setMaxTimeToLive(float _max)
setMaxTimeToLive in interface IParticleEmitterpublic float getTimeToLive()
getTimeToLive in interface IParticleEmitterpublic float getMinTimeToLive()
getMinTimeToLive in interface IParticleEmitterpublic float getMaxTimeToLive()
getMaxTimeToLive in interface IParticleEmitterpublic void setColour(IColourValue colour)
setColour in interface IParticleEmitter
public void setColour(IColourValue colourStart,
IColourValue colourEnd)
setColour in interface IParticleEmitterpublic void setColourRangeStart(IColourValue colour)
setColourRangeStart in interface IParticleEmitterpublic void setColourRangeEnd(IColourValue colour)
setColourRangeEnd in interface IParticleEmitterpublic IColourValue getColour()
getColour in interface IParticleEmitterpublic IColourValue getColourRangeStart()
getColourRangeStart in interface IParticleEmitterpublic IColourValue getColourRangeEnd()
getColourRangeEnd in interface IParticleEmitterpublic int _getEmissionCount(float timeElapsed)
_getEmissionCount in interface IParticleEmitterpublic void _initParticle(IParticle pParticle)
_initParticle in interface IParticleEmitterpublic java.lang.String getType()
getType in interface IParticleEmitterpublic void setEnabled(boolean enabled)
setEnabled in interface IParticleEmitterpublic boolean getEnabled()
getEnabled in interface IParticleEmitterpublic void setStartTime(float startTime)
setStartTime in interface IParticleEmitterpublic float getStartTime()
getStartTime in interface IParticleEmitterpublic void setDuration(float duration)
setDuration in interface IParticleEmitterpublic float getDuration()
getDuration in interface IParticleEmitter
public void setDuration(float _min,
float _max)
setDuration in interface IParticleEmitterpublic void setMinDuration(float _min)
setMinDuration in interface IParticleEmitterpublic void setMaxDuration(float _max)
setMaxDuration in interface IParticleEmitterpublic float getMinDuration()
getMinDuration in interface IParticleEmitterpublic float getMaxDuration()
getMaxDuration in interface IParticleEmitterpublic void setRepeatDelay(float duration)
setRepeatDelay in interface IParticleEmitterpublic float getRepeatDelay()
getRepeatDelay in interface IParticleEmitter
public void setRepeatDelay(float _min,
float _max)
setRepeatDelay in interface IParticleEmitterpublic void setMinRepeatDelay(float _min)
setMinRepeatDelay in interface IParticleEmitterpublic void setMaxRepeatDelay(float _max)
setMaxRepeatDelay in interface IParticleEmitterpublic float getMinRepeatDelay()
getMinRepeatDelay in interface IParticleEmitterpublic float getMaxRepeatDelay()
getMaxRepeatDelay in interface IParticleEmitterpublic java.lang.String getName()
getName in interface IParticleEmitterpublic void setName(java.lang.String newName)
setName in interface IParticleEmitterpublic java.lang.String getEmittedEmitter()
getEmittedEmitter in interface IParticleEmitterpublic void setEmittedEmitter(java.lang.String emittedEmitter)
setEmittedEmitter in interface IParticleEmitterpublic boolean isEmitted()
isEmitted in interface IParticleEmitterpublic void setEmitted(boolean emitted)
setEmitted in interface IParticleEmitterpublic IParamDictionary getParamDictionary()
getParamDictionary in interface IStringInterfacepublic IParamDictionary getParamDictionary_const()
getParamDictionary_const in interface IStringInterfacepublic IParameterList getParameters()
getParameters in interface IStringInterface
public boolean setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface IStringInterfacepublic void setParameterList(INameValuePairList paramList)
setParameterList in interface IStringInterfacepublic java.lang.String getParameter(java.lang.String name)
getParameter in interface IStringInterfacepublic void copyParametersTo(IStringInterface dest)
copyParametersTo in interface IStringInterfacepublic static void cleanupDictionary()
public void setDimensions(float width,
float height)
setDimensions in interface IParticlepublic boolean hasOwnDimensions()
hasOwnDimensions in interface IParticlepublic float getOwnWidth()
getOwnWidth in interface IParticlepublic float getOwnHeight()
getOwnHeight in interface IParticlepublic void setRotation(IRadian rad)
setRotation in interface IParticlepublic IRadian getRotation()
getRotation in interface IParticlepublic void _notifyOwner(IParticleSystem owner)
_notifyOwner in interface IParticlepublic void _notifyVisualData(IParticleVisualData vis)
_notifyVisualData in interface IParticlepublic IParticleVisualData getVisualData()
getVisualData in interface IParticlepublic void resetDimensions()
resetDimensions in interface IParticlepublic boolean getmOwnDimensions()
getmOwnDimensions in interface IParticlepublic void setmOwnDimensions(boolean _jni_value_)
setmOwnDimensions in interface IParticlepublic float getmWidth()
getmWidth in interface IParticlepublic void setmWidth(float _jni_value_)
setmWidth in interface IParticlepublic float getmHeight()
getmHeight in interface IParticlepublic void setmHeight(float _jni_value_)
setmHeight in interface IParticlepublic void getrotation(IRadian returnValue)
getrotation in interface IParticlepublic void setrotation(IRadian _jni_value_)
setrotation in interface IParticlepublic void getposition(IVector3 returnValue)
getposition in interface IParticlepublic void setposition(IVector3 _jni_value_)
setposition in interface IParticlepublic void getdirection(IVector3 returnValue)
getdirection in interface IParticlepublic void setdirection(IVector3 _jni_value_)
setdirection in interface IParticlepublic void getcolour(IColourValue returnValue)
getcolour in interface IParticlepublic void setcolour(IColourValue _jni_value_)
setcolour in interface IParticlepublic float gettimeToLive()
gettimeToLive in interface IParticlepublic void settimeToLive(float _jni_value_)
settimeToLive in interface IParticlepublic float gettotalTimeToLive()
gettotalTimeToLive in interface IParticlepublic void settotalTimeToLive(float _jni_value_)
settotalTimeToLive in interface IParticlepublic void getrotationSpeed(IRadian returnValue)
getrotationSpeed in interface IParticlepublic void setrotationSpeed(IRadian _jni_value_)
setrotationSpeed in interface IParticlepublic Particle.ParticleType getparticleType()
getparticleType in interface IParticlepublic void setparticleType(Particle.ParticleType _jni_value_)
setparticleType in interface IParticle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||