OGRE
1.9.0
|
Class representing a single particle instance. More...
#include <OgreParticle.h>
Public Types | |
enum | ParticleType { Visual , Emitter } |
Type of particle. More... | |
Public Member Functions | |
Particle () | |
void | _notifyOwner (ParticleSystem *owner) |
Internal method for notifying the particle of it's owner. | |
void | _notifyVisualData (ParticleVisualData *vis) |
Internal method for notifying the particle of it's optional visual data. | |
Real | getOwnHeight (void) const |
Retrieves the particle's personal width, if hasOwnDimensions is true. | |
Real | getOwnWidth (void) const |
Retrieves the particle's personal width, if hasOwnDimensions is true. | |
const Radian & | getRotation (void) const |
ParticleVisualData * | getVisualData (void) const |
Get the optional visual data associated with the class. | |
bool | hasOwnDimensions (void) const |
Returns true if this particle deviates from the ParticleSystem's default dimensions (i.e. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
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 *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void | resetDimensions (void) |
Utility method to reset this particle. | |
void | setDimensions (Real width, Real height) |
Sets the width and height for this particle. | |
void | setRotation (const Radian &rad) |
Sets the current rotation. | |
Public Attributes | |
ColourValue | colour |
Current colour. | |
Vector3 | direction |
Direction (and speed) | |
Real | mHeight |
Personal height if mOwnDimensions == true. | |
bool | mOwnDimensions |
Does this particle have it's own dimensions? | |
Real | mWidth |
Personal width if mOwnDimensions == true. | |
ParticleType | particleType |
Determines the type of particle. | |
Vector3 | position |
World position. | |
Radian | rotation |
Current rotation value. | |
Radian | rotationSpeed |
Speed of rotation in radians/sec. | |
Real | timeToLive |
Time to live, number of seconds left of particles natural life. | |
Real | totalTimeToLive |
Total Time to live, number of seconds of particles natural life. | |
Protected Attributes | |
ParticleSystem * | mParentSystem |
Parent ParticleSystem. | |
ParticleVisualData * | mVisual |
Additional visual data you might want to associate with the Particle. | |
Class representing a single particle instance.
Definition at line 61 of file OgreParticle.h.
Ogre::Particle::Particle | ( | ) |
Definition at line 101 of file OgreParticle.h.
void Ogre::Particle::_notifyOwner | ( | ParticleSystem * | owner | ) |
Internal method for notifying the particle of it's owner.
void Ogre::Particle::_notifyVisualData | ( | ParticleVisualData * | vis | ) |
Internal method for notifying the particle of it's optional visual data.
Definition at line 142 of file OgreParticle.h.
Retrieves the particle's personal width, if hasOwnDimensions is true.
Definition at line 129 of file OgreParticle.h.
Retrieves the particle's personal width, if hasOwnDimensions is true.
Definition at line 126 of file OgreParticle.h.
Definition at line 134 of file OgreParticle.h.
ParticleVisualData * Ogre::Particle::getVisualData | ( | void | ) | const |
Get the optional visual data associated with the class.
Definition at line 145 of file OgreParticle.h.
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).
Definition at line 123 of file OgreParticle.h.
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
Sets the width and height for this particle.
ColourValue Ogre::Particle::colour |
Current colour.
Definition at line 91 of file OgreParticle.h.
Vector3 Ogre::Particle::direction |
Direction (and speed)
Definition at line 89 of file OgreParticle.h.
Real Ogre::Particle::mHeight |
Personal height if mOwnDimensions == true.
Definition at line 81 of file OgreParticle.h.
bool Ogre::Particle::mOwnDimensions |
Does this particle have it's own dimensions?
Definition at line 77 of file OgreParticle.h.
|
protected |
Parent ParticleSystem.
Definition at line 65 of file OgreParticle.h.
|
protected |
Additional visual data you might want to associate with the Particle.
Definition at line 67 of file OgreParticle.h.
Real Ogre::Particle::mWidth |
Personal width if mOwnDimensions == true.
Definition at line 79 of file OgreParticle.h.
ParticleType Ogre::Particle::particleType |
Determines the type of particle.
Definition at line 99 of file OgreParticle.h.
Vector3 Ogre::Particle::position |
World position.
Definition at line 87 of file OgreParticle.h.
Radian Ogre::Particle::rotation |
Current rotation value.
Definition at line 83 of file OgreParticle.h.
Radian Ogre::Particle::rotationSpeed |
Speed of rotation in radians/sec.
Definition at line 97 of file OgreParticle.h.
Real Ogre::Particle::timeToLive |
Time to live, number of seconds left of particles natural life.
Definition at line 93 of file OgreParticle.h.
Real Ogre::Particle::totalTimeToLive |
Total Time to live, number of seconds of particles natural life.
Definition at line 95 of file OgreParticle.h.