#include <OgreParticleScriptCompiler.h>
Inheritance diagram for Ogre::ParticleScriptCompiler:
Public Types | |
typedef std::map< String, uint32 > | IdMap |
typedef SharedPtr< Error > | ErrorPtr |
typedef std::list< ErrorPtr > | ErrorList |
enum | { CE_STRINGEXPECTED, CE_NUMBEREXPECTED, CE_FEWERPARAMETERSEXPECTED, CE_VARIABLEEXPECTED, CE_UNDEFINEDVARIABLE, CE_OBJECTNAMEEXPECTED, CE_OBJECTALLOCATIONERROR, CE_INVALIDPARAMETERS, CE_DUPLICATEOVERRIDE, CE_UNEXPECTEDTOKEN, CE_OBJECTBASENOTFOUND, CE_UNSUPPORTEDBYRENDERSYSTEM, CE_REFERENCETOANONEXISTINGOBJECT } |
enum | { ID_ON = 1, ID_OFF = 2, ID_TRUE = 1, ID_FALSE = 2, ID_YES = 1, ID_NO = 2 } |
Public Member Functions | |
ParticleScriptCompiler () | |
void | setListener (ParticleScriptCompilerListener *listener) |
Sets the listener for this compiler. | |
ParticleSystem * | getParticleSystem () const |
Returns the particle system currently being compiled. | |
bool | compile (const String &str, const String &source, const String &group) |
bool | compile (const ConcreteNodeListPtr &nodes, const String &group) |
Compiles resources from the given concrete node list. | |
bool | _compile (AbstractNodeListPtr nodes, const String &group) |
Compiles the given abstract syntax tree. | |
void | addError (uint32 code, const String &file, int line, const String &msg="") |
Adds the given error to the compiler's list of errors. | |
void | setListener (ScriptCompilerListener *listener) |
Sets the listener used by the compiler. | |
ScriptCompilerListener * | getListener () |
Returns the currently set listener. | |
const String & | getResourceGroup () const |
Returns the resource group currently set for this compiler. | |
void | addNameExclusion (const String &type) |
Name exclusions identify object types which cannot accept names. | |
void | removeNameExclusion (const String &type) |
Removes a name exclusion. | |
bool | _fireEvent (const String &name, const std::vector< Any > &args, Any *retval) |
Internal method for firing the handleEvent method. | |
Any | _fireCreateObject (const String &type, const std::vector< Any > &args) |
Internal method for firing the createObject event. | |
AllocatedObject () | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
Static Public Member Functions | |
static String | formatErrorCode (uint32 code) |
Protected Member Functions | |
bool | compileImpl (ScriptNodeListPtr nodes) |
This begins the compilation of the particle system from the final transformed AST. | |
bool | processNode (ScriptNodeList::iterator &i, ScriptNodeList::iterator &end) |
Delegates to the listener if it can, otherwise returns false. If it returns true, then some input was consumed. | |
ScriptNodeListPtr | loadImportPath (const String &name) |
This is the override for loading imports. | |
void | preParse () |
Allows a listener to override the word id map before parsing. | |
bool | errorRaised (const ScriptCompilerErrorPtr &error) |
Allows a listener to override error handling in the compiler. | |
Private Member Functions | |
void | compileParticleSystem (const ScriptNodePtr &node) |
void | compileEmitter (const ScriptNodePtr &node) |
void | compileAffector (const ScriptNodePtr &node) |
String | getParameterValue (ScriptNodeList::iterator &i, ScriptNodeList::iterator &end) |
Private Attributes | |
ParticleScriptCompilerListener * | mListener |
ParticleSystem * | mSystem |
|
Definition at line 193 of file OgreScriptCompiler.h. |
|
Definition at line 192 of file OgreScriptCompiler.h. |
|
Definition at line 183 of file OgreScriptCompiler.h. |
|
Definition at line 196 of file OgreScriptCompiler.h. |
|
Definition at line 304 of file OgreScriptCompiler.h. |
|
|
|
Compiles the given abstract syntax tree.
|
|
Internal method for firing the createObject event.
|
|
Internal method for firing the handleEvent method.
|
|
Adds the given error to the compiler's list of errors.
|
|
Name exclusions identify object types which cannot accept names. This means that excluded types will always have empty names. All values in the object header are stored as object values. |
|
Definition at line 55 of file OgreMemoryAllocatedObject.h. |
|
Compiles resources from the given concrete node list.
|
|
|
|
|
|
|
|
This begins the compilation of the particle system from the final transformed AST.
|
|
|
|
Allows a listener to override error handling in the compiler.
|
|
|
|
Returns the currently set listener.
|
|
|
|
Returns the particle system currently being compiled.
|
|
Returns the resource group currently set for this compiler.
|
|
This is the override for loading imports.
Reimplemented from Ogre::ScriptCompiler. |
|
Definition at line 101 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 95 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 89 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 112 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 106 of file OgreMemoryAllocatedObject.h. |
|
placement operator new
Definition at line 73 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 67 of file OgreMemoryAllocatedObject.h. |
|
operator new, with debug line info
Definition at line 62 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 84 of file OgreMemoryAllocatedObject.h. |
|
array operator new, with debug line info
Definition at line 79 of file OgreMemoryAllocatedObject.h. |
|
Allows a listener to override the word id map before parsing.
|
|
Delegates to the listener if it can, otherwise returns false. If it returns true, then some input was consumed.
|
|
Removes a name exclusion.
|
|
Sets the listener used by the compiler.
|
|
Sets the listener for this compiler.
|
|
Reimplemented from Ogre::ScriptCompiler. Definition at line 77 of file OgreParticleScriptCompiler.h. |
|
Definition at line 80 of file OgreParticleScriptCompiler.h. |
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sat Apr 11 13:50:25 2009