org.ogre4j
Class ParticleSystemManager

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.ParticleSystemManager
All Implemented Interfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IParticleSystemManager, ISceneObjAllocatedObject, IScriptLoader, ISingleton<IParticleSystemManager>, INativeObject

public class ParticleSystemManager
extends NativeObject
implements IParticleSystemManager


Nested Class Summary
static class ParticleSystemManager.ParticleAffectorFactoryIterator
           
static class ParticleSystemManager.ParticleAffectorFactoryMap
           
static class ParticleSystemManager.ParticleEmitterFactoryIterator
           
static class ParticleSystemManager.ParticleEmitterFactoryMap
           
static class ParticleSystemManager.ParticleRendererFactoryIterator
           
static class ParticleSystemManager.ParticleSystemRendererFactoryMap
           
static class ParticleSystemManager.ParticleSystemTemplateIterator
           
static class ParticleSystemManager.ParticleTemplateMap
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IParticleSystemManager
IParticleSystemManager.IParticleAffectorFactoryIterator, IParticleSystemManager.IParticleAffectorFactoryMap, IParticleSystemManager.IParticleEmitterFactoryIterator, IParticleSystemManager.IParticleEmitterFactoryMap, IParticleSystemManager.IParticleRendererFactoryIterator, IParticleSystemManager.IParticleSystemRendererFactoryMap, IParticleSystemManager.IParticleSystemTemplateIterator, IParticleSystemManager.IParticleTemplateMap
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ParticleSystemManager()
           
  ParticleSystemManager(InstancePointer p)
          This constructor is public for internal useage only!
protected ParticleSystemManager(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ParticleSystemManager(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 IParticleAffector _createAffector(java.lang.String affectorType, IParticleSystem psys)
          Internal method for creating a new affector from a factory.
 IParticleEmitter _createEmitter(java.lang.String emitterType, IParticleSystem psys)
          Internal method for creating a new emitter from a factory.
 IParticleSystemRenderer _createRenderer(java.lang.String rendererType)
          Internal method for creating a new renderer from a factory.
 void _destroyAffector(IParticleAffector affector)
          Internal method for destroying an affector.
 void _destroyEmitter(IParticleEmitter emitter)
          Internal method for destroying an emitter.
 void _destroyRenderer(IParticleSystemRenderer renderer)
          Internal method for destroying a renderer.
 IParticleSystemFactory _getFactory()
          Get an instance of (internal use).
 void _initialise()
          Init method to be called by OGRE system.
 void addAffectorFactory(IParticleAffectorFactory factory)
          Adds a new 'factory' object for affectors to the list of available affector types.
 void addEmitterFactory(IParticleEmitterFactory factory)
          Adds a new 'factory' object for emitters to the list of available emitter types.
 void addRendererFactory(IParticleSystemRendererFactory factory)
          Registers a factory class for creating instances.
 void addTemplate(java.lang.String name, IParticleSystem sysTemplate)
          Adds a new particle system template to the list of available templates.
 IParticleSystem createTemplate(java.lang.String name, java.lang.String resourceGroup)
          Create a new particle system template.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 void getAffectorFactoryIterator(IParticleSystemManager.IParticleAffectorFactoryIterator returnValue)
          Return an iterator over the affector factories currently registered
 void getEmitterFactoryIterator(IParticleSystemManager.IParticleEmitterFactoryIterator returnValue)
          Return an iterator over the emitter factories currently registered
 float getLoadingOrder()
          Gets the relative loading order of scripts of this type.
 void getRendererFactoryIterator(IParticleSystemManager.IParticleRendererFactoryIterator returnValue)
          Return an iterator over the renderer factories currently registered
 IStringVector getScriptPatterns()
          Gets the file patterns which should be used to find scripts for this class.
static IParticleSystemManager getSingleton()
          Override standard retrieval.
static IParticleSystemManager getSingletonPtr()
          Override standard retrieval.
 IParticleSystem getTemplate(java.lang.String name)
          Retrieves a particle system template for possible modification.
 void getTemplateIterator(IParticleSystemManager.IParticleSystemTemplateIterator returnValue)
          Gets an iterator over the list of particle system templates.
 void parseScript(IDataStreamPtr stream, java.lang.String groupName)
          Parse a script file.
 void removeAllTemplates(boolean deleteTemplate)
          Removes a specified template from the .
 void removeTemplate(java.lang.String name, boolean deleteTemplate)
          Removes a specified template from the .
 
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

ParticleSystemManager

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


ParticleSystemManager

protected ParticleSystemManager(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.


ParticleSystemManager

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

ParticleSystemManager

public ParticleSystemManager()
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

addEmitterFactory

public void addEmitterFactory(IParticleEmitterFactory factory)
Adds a new 'factory' object for emitters to the list of available emitter types.

Specified by:
addEmitterFactory in interface IParticleSystemManager

addAffectorFactory

public void addAffectorFactory(IParticleAffectorFactory factory)
Adds a new 'factory' object for affectors to the list of available affector types.

Specified by:
addAffectorFactory in interface IParticleSystemManager

addRendererFactory

public void addRendererFactory(IParticleSystemRendererFactory factory)
Registers a factory class for creating instances.

Specified by:
addRendererFactory in interface IParticleSystemManager

addTemplate

public void addTemplate(java.lang.String name,
                        IParticleSystem sysTemplate)
Adds a new particle system template to the list of available templates.

Specified by:
addTemplate in interface IParticleSystemManager

removeTemplate

public void removeTemplate(java.lang.String name,
                           boolean deleteTemplate)
Removes a specified template from the .

Specified by:
removeTemplate in interface IParticleSystemManager

removeAllTemplates

public void removeAllTemplates(boolean deleteTemplate)
Removes a specified template from the .

Specified by:
removeAllTemplates in interface IParticleSystemManager

createTemplate

public IParticleSystem createTemplate(java.lang.String name,
                                      java.lang.String resourceGroup)
Create a new particle system template.

Specified by:
createTemplate in interface IParticleSystemManager

getTemplate

public IParticleSystem getTemplate(java.lang.String name)
Retrieves a particle system template for possible modification.

Specified by:
getTemplate in interface IParticleSystemManager

_createEmitter

public IParticleEmitter _createEmitter(java.lang.String emitterType,
                                       IParticleSystem psys)
Internal method for creating a new emitter from a factory.

Specified by:
_createEmitter in interface IParticleSystemManager

_destroyEmitter

public void _destroyEmitter(IParticleEmitter emitter)
Internal method for destroying an emitter.

Specified by:
_destroyEmitter in interface IParticleSystemManager

_createAffector

public IParticleAffector _createAffector(java.lang.String affectorType,
                                         IParticleSystem psys)
Internal method for creating a new affector from a factory.

Specified by:
_createAffector in interface IParticleSystemManager

_destroyAffector

public void _destroyAffector(IParticleAffector affector)
Internal method for destroying an affector.

Specified by:
_destroyAffector in interface IParticleSystemManager

_createRenderer

public IParticleSystemRenderer _createRenderer(java.lang.String rendererType)
Internal method for creating a new renderer from a factory.

Specified by:
_createRenderer in interface IParticleSystemManager

_destroyRenderer

public void _destroyRenderer(IParticleSystemRenderer renderer)
Internal method for destroying a renderer.

Specified by:
_destroyRenderer in interface IParticleSystemManager

_initialise

public void _initialise()
Init method to be called by OGRE system.

Specified by:
_initialise in interface IParticleSystemManager

getScriptPatterns

public IStringVector getScriptPatterns()
Description copied from interface: IScriptLoader
Gets the file patterns which should be used to find scripts for this class.

Specified by:
getScriptPatterns in interface IParticleSystemManager
Specified by:
getScriptPatterns in interface IScriptLoader

parseScript

public void parseScript(IDataStreamPtr stream,
                        java.lang.String groupName)
Description copied from interface: IScriptLoader
Parse a script file.

Specified by:
parseScript in interface IParticleSystemManager
Specified by:
parseScript in interface IScriptLoader

getLoadingOrder

public float getLoadingOrder()
Description copied from interface: IScriptLoader
Gets the relative loading order of scripts of this type.

Specified by:
getLoadingOrder in interface IParticleSystemManager
Specified by:
getLoadingOrder in interface IScriptLoader

getAffectorFactoryIterator

public void getAffectorFactoryIterator(IParticleSystemManager.IParticleAffectorFactoryIterator returnValue)
Return an iterator over the affector factories currently registered

Specified by:
getAffectorFactoryIterator in interface IParticleSystemManager

getEmitterFactoryIterator

public void getEmitterFactoryIterator(IParticleSystemManager.IParticleEmitterFactoryIterator returnValue)
Return an iterator over the emitter factories currently registered

Specified by:
getEmitterFactoryIterator in interface IParticleSystemManager

getRendererFactoryIterator

public void getRendererFactoryIterator(IParticleSystemManager.IParticleRendererFactoryIterator returnValue)
Return an iterator over the renderer factories currently registered

Specified by:
getRendererFactoryIterator in interface IParticleSystemManager

getTemplateIterator

public void getTemplateIterator(IParticleSystemManager.IParticleSystemTemplateIterator returnValue)
Gets an iterator over the list of particle system templates.

Specified by:
getTemplateIterator in interface IParticleSystemManager

_getFactory

public IParticleSystemFactory _getFactory()
Get an instance of (internal use).

Specified by:
_getFactory in interface IParticleSystemManager

getSingleton

public static IParticleSystemManager getSingleton()
Override standard retrieval.


getSingletonPtr

public static IParticleSystemManager getSingletonPtr()
Override standard retrieval.



Copyright © 2007 netAllied GmbH. All Rights Reserved.