This class defines a ParticleAffector which deflects particles. More...
#include <OgreDeflectorPlaneAffector.h>
Classes | |
class | CmdBounce |
Command object for bounce (see ParamCommand). More... | |
class | CmdPlaneNormal |
Command object for plane normal (see ParamCommand). More... | |
class | CmdPlanePoint |
Command object for plane point (see ParamCommand). More... | |
Public Member Functions | |
DeflectorPlaneAffector (ParticleSystem *psys) | |
Default constructor. More... | |
void | _affectParticles (ParticleSystem *pSystem, Real timeElapsed) |
See ParticleAffector. More... | |
virtual void | _initParticle (Particle *pParticle) |
Method called to allow the affector to initialize all newly created particles in the system. More... | |
virtual void | copyParametersTo (StringInterface *dest) const |
Method for copying this object's parameters to another object. More... | |
Real | getBounce (void) const |
Gets the bounce value of the deflection. More... | |
ParamDictionary * | getParamDictionary (void) |
Retrieves the parameter dictionary for this class. More... | |
const ParamDictionary * | getParamDictionary (void) const |
virtual String | getParameter (const String &name) const |
Generic parameter retrieval method. More... | |
const ParameterList & | getParameters (void) const |
Retrieves a list of parameters valid for this object. More... | |
Vector3 | getPlaneNormal (void) const |
Gets the plane normal of the deflector plane. More... | |
Vector3 | getPlanePoint (void) const |
Gets the plane point of the deflector plane. More... | |
const String & | getType (void) const |
Returns the name of the type of affector. More... | |
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 *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
void | setBounce (Real bounce) |
Sets the bounce value of the deflection. More... | |
virtual bool | setParameter (const String &name, const String &value) |
Generic parameter setting method. More... | |
virtual void | setParameterList (const NameValuePairList ¶mList) |
Generic multiple parameter setting method. More... | |
void | setPlaneNormal (const Vector3 &normal) |
Sets the plane normal of the deflector plane. More... | |
void | setPlanePoint (const Vector3 &pos) |
Sets the plane point of the deflector plane. More... | |
Static Public Member Functions | |
static void | cleanupDictionary () |
Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g. More... | |
Static Public Attributes | |
static CmdBounce | msBounceCmd |
static CmdPlaneNormal | msPlaneNormalCmd |
static CmdPlanePoint | msPlanePointCmd |
Command objects. More... | |
Protected Member Functions | |
void | addBaseParameters (void) |
Internal method for setting up the basic parameter definitions for a subclass. More... | |
bool | createParamDictionary (const String &className) |
Internal method for creating a parameter dictionary for the class, if it does not already exist. More... | |
Protected Attributes | |
Real | mBounce |
bounce factor (0.5 means 50 percent) More... | |
ParticleSystem * | mParent |
Vector3 | mPlaneNormal |
deflector plane normal vector More... | |
Vector3 | mPlanePoint |
deflector plane point More... | |
String | mType |
Name of the type of affector, MUST be initialised by subclasses. More... | |
This class defines a ParticleAffector which deflects particles.
Definition at line 46 of file OgreDeflectorPlaneAffector.h.
Ogre::DeflectorPlaneAffector::DeflectorPlaneAffector | ( | ParticleSystem * | psys | ) |
Default constructor.
|
virtual |
See ParticleAffector.
Implements Ogre::ParticleAffector.
|
inlinevirtualinherited |
Method called to allow the affector to initialize all newly created particles in the system.
pParticle | Pointer to a Particle to initialize. |
Reimplemented in Ogre::RotationAffector, and Ogre::ColourImageAffector.
Definition at line 94 of file OgreParticleAffector.h.
|
inlineprotectedinherited |
Internal method for setting up the basic parameter definitions for a subclass.
Definition at line 77 of file OgreParticleAffector.h.
|
staticinherited |
Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g.
MaterialManager) initializes.
|
inlinevirtualinherited |
Method for copying this object's parameters to another object.
dest | Pointer to object to have it's parameters set the same as this object. |
Definition at line 301 of file OgreStringInterface.h.
References Ogre::ParamDictionary::mParamDefs, and Ogre::StringInterface::setParameter().
|
inlineprotectedinherited |
Internal method for creating a parameter dictionary for the class, if it does not already exist.
className | the name of the class using the dictionary |
Definition at line 184 of file OgreStringInterface.h.
References OGRE_LOCK_MUTEX.
Real Ogre::DeflectorPlaneAffector::getBounce | ( | void | ) | const |
Gets the bounce value of the deflection.
|
inlineinherited |
Retrieves the parameter dictionary for this class.
Definition at line 217 of file OgreStringInterface.h.
|
inlineinherited |
Definition at line 222 of file OgreStringInterface.h.
|
inlinevirtualinherited |
Generic parameter retrieval method.
name | The name of the parameter to get |
Definition at line 270 of file OgreStringInterface.h.
References Ogre::ParamCommand::doGet(), and Ogre::ParamDictionary::getParamCommand().
|
inherited |
Retrieves a list of parameters valid for this object.
Vector3 Ogre::DeflectorPlaneAffector::getPlaneNormal | ( | void | ) | const |
Gets the plane normal of the deflector plane.
Vector3 Ogre::DeflectorPlaneAffector::getPlanePoint | ( | void | ) | const |
Gets the plane point of the deflector plane.
|
inlineinherited |
Returns the name of the type of affector.
Definition at line 117 of file OgreParticleAffector.h.
|
inlineinherited |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void Ogre::DeflectorPlaneAffector::setBounce | ( | Real | bounce | ) |
Sets the bounce value of the deflection.
|
virtualinherited |
Generic parameter setting method.
name | The name of the parameter to set |
value | String value. Must be in the right format for the type specified in the parameter definition. See the StringConverter class for more information. |
Referenced by Ogre::StringInterface::copyParametersTo().
|
virtualinherited |
Generic multiple parameter setting method.
paramList | Name/value pair list |
void Ogre::DeflectorPlaneAffector::setPlaneNormal | ( | const Vector3 & | normal | ) |
Sets the plane normal of the deflector plane.
void Ogre::DeflectorPlaneAffector::setPlanePoint | ( | const Vector3 & | pos | ) |
Sets the plane point of the deflector plane.
|
protected |
bounce factor (0.5 means 50 percent)
Definition at line 109 of file OgreDeflectorPlaneAffector.h.
|
protectedinherited |
Definition at line 79 of file OgreParticleAffector.h.
|
protected |
deflector plane normal vector
Definition at line 106 of file OgreDeflectorPlaneAffector.h.
|
protected |
deflector plane point
Definition at line 104 of file OgreDeflectorPlaneAffector.h.
|
static |
Definition at line 100 of file OgreDeflectorPlaneAffector.h.
|
static |
Definition at line 99 of file OgreDeflectorPlaneAffector.h.
|
static |
Command objects.
Definition at line 98 of file OgreDeflectorPlaneAffector.h.
|
protectedinherited |
Name of the type of affector, MUST be initialised by subclasses.
Definition at line 67 of file OgreParticleAffector.h.