org.ogre4j
Class ParticleAffector

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.ParticleAffector
All Implemented Interfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IParticleAffector, ISceneObjAllocatedObject, IStringInterface, INativeObject

public class ParticleAffector
extends NativeObject
implements IParticleAffector


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ParticleAffector(InstancePointer p)
          This constructor is public for internal useage only!
protected ParticleAffector(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ParticleAffector(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _affectParticles(IParticleSystem pSystem, float timeElapsed)
          Method called to allow the affector to 'do it's stuff' on all active particles in the system.
 void _initParticle(IParticle pParticle)
          Method called to allow the affector to initialize all newly created particles in the system.
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()
           
 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.
 java.lang.String getType()
          Returns the name of the type of affector.
 boolean setParameter(java.lang.String name, java.lang.String value)
          Generic parameter setting method.
 void setParameterList(INameValuePairList paramList)
          Generic multiple parameter setting method.
 
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

ParticleAffector

public ParticleAffector(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


ParticleAffector

protected ParticleAffector(InstancePointer p,
                           boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


ParticleAffector

public ParticleAffector(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

_initParticle

public void _initParticle(IParticle pParticle)
Method called to allow the affector to initialize all newly created particles in the system.

Specified by:
_initParticle in interface IParticleAffector

_affectParticles

public void _affectParticles(IParticleSystem pSystem,
                             float timeElapsed)
Method called to allow the affector to 'do it's stuff' on all active particles in the system.

Specified by:
_affectParticles in interface IParticleAffector

getType

public java.lang.String getType()
Returns the name of the type of affector.

Specified by:
getType in interface IParticleAffector

getParamDictionary

public IParamDictionary getParamDictionary()
Retrieves the parameter dictionary for this class.

Specified by:
getParamDictionary in interface IStringInterface

getParamDictionary_const

public IParamDictionary getParamDictionary_const()
Specified by:
getParamDictionary_const in interface IStringInterface

getParameters

public IParameterList getParameters()
Retrieves a list of parameters valid for this object.

Specified by:
getParameters in interface IStringInterface

setParameter

public boolean setParameter(java.lang.String name,
                            java.lang.String value)
Generic parameter setting method.

Specified by:
setParameter in interface IStringInterface

setParameterList

public void setParameterList(INameValuePairList paramList)
Generic multiple parameter setting method.

Specified by:
setParameterList in interface IStringInterface

getParameter

public java.lang.String getParameter(java.lang.String name)
Generic parameter retrieval method.

Specified by:
getParameter in interface IStringInterface

copyParametersTo

public void copyParametersTo(IStringInterface dest)
Method for copying this object's parameters to another object.

Specified by:
copyParametersTo in interface IStringInterface

cleanupDictionary

public 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.



Copyright © 2007 netAllied GmbH. All Rights Reserved.