OGRE
1.10.12
Object-Oriented Graphics Rendering Engine
|
Class defining particle system based special effects. More...
#include <OgreParticleSystem.h>
Classes | |
class | CmdCull |
Command object for cull_each (see ParamCommand). More... | |
class | CmdEmittedEmitterQuota |
Command object for emittedEmitterQuota (see ParamCommand). More... | |
class | CmdHeight |
Command object for particle_height (see ParamCommand). More... | |
class | CmdIterationInterval |
Command object for iteration interval(see ParamCommand). More... | |
class | CmdLocalSpace |
Command object for local space (see ParamCommand). More... | |
class | CmdMaterial |
Command object for material (see ParamCommand). More... | |
class | CmdNonvisibleTimeout |
Command object for nonvisible timeout (see ParamCommand). More... | |
class | CmdQuota |
Command object for quota (see ParamCommand). More... | |
class | CmdRenderer |
Command object for renderer (see ParamCommand). More... | |
class | CmdSorted |
Command object for sorting (see ParamCommand). More... | |
class | CmdWidth |
Command object for particle_width (see ParamCommand). More... | |
Public Types | |
typedef vector< ShadowRenderable * >::type | ShadowRenderableList |
typedef VectorIterator< ShadowRenderableList > | ShadowRenderableListIterator |
Public Member Functions | |
ParticleSystem () | |
Default constructor required for STL creation in manager. More... | |
ParticleSystem (const String &name, const String &resourceGroupName) | |
Creates a particle system with no emitters or affectors. More... | |
virtual | ~ParticleSystem () |
MovableObjectFactory * | _getCreator (void) const |
Get the creator of this object, if any (internal use only) More... | |
ParticleIterator | _getIterator (void) |
Returns an iterator for stepping through all particles in this system. More... | |
LightList * | _getLightList () |
Returns a pointer to the current list of lights for this object. More... | |
SceneManager * | _getManager (void) const |
Get the manager of this object, if any (internal use only) More... | |
virtual const Matrix4 & | _getParentNodeFullTransform (void) const |
Return the full transformation of the parent sceneNode or the attachingPoint node. More... | |
void | _notifyAttached (Node *parent, bool isTagPoint=false) |
Overridden from MovableObject. More... | |
virtual void | _notifyCreator (MovableObjectFactory *fact) |
Notify the object of it's creator (internal use only) More... | |
virtual void | _notifyCurrentCamera (Camera *cam) |
Overridden from MovableObject. More... | |
virtual void | _notifyManager (SceneManager *man) |
Notify the object of it's manager (internal use only) More... | |
virtual void | _notifyMoved (void) |
Internal method called to notify the object that it has been moved. More... | |
void | _notifyOrigin (const String &origin) |
Notify this particle system of it's origin. More... | |
virtual void | _notifyParticleResized (void) |
Internal callback used by Particles to notify their parent that they have been resized. More... | |
virtual void | _notifyParticleRotated (void) |
Internal callback used by Particles to notify their parent that they have been rotated. More... | |
virtual void | _releaseManualHardwareResources () |
Notifies the movable object that hardware resources were lost. More... | |
virtual void | _restoreManualHardwareResources () |
Notifies the movable object that hardware resources should be restored. More... | |
void | _update (Real timeElapsed) |
Updates the particles in the system based on time elapsed. More... | |
void | _updateBounds (void) |
Internal method for updating the bounds of the particle system. More... | |
virtual void | _updateRenderQueue (RenderQueue *queue) |
Overridden from MovableObject. More... | |
ParticleAffector * | addAffector (const String &affectorType) |
Adds an affector to this particle system. More... | |
ParticleEmitter * | addEmitter (const String &emitterType) |
Adds an emitter to this particle system. More... | |
void | addQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. More... | |
void | addVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. More... | |
void | clear () |
Empties this set of all particles. More... | |
void | copyParametersTo (StringInterface *dest) const |
Method for copying this object's parameters to another object. More... | |
virtual AnimableValuePtr | createAnimableValue (const String &valueName) |
Create a reference-counted AnimableValuePtr for the named value. More... | |
Particle * | createEmitterParticle (const String &emitterName) |
Manually add an emitter particle to the system. More... | |
Particle * | createParticle (void) |
Manually add a particle to the system. More... | |
void | detachFromParent (void) |
Detaches an object from a parent SceneNode or TagPoint, if attached. More... | |
void | fastForward (Real time, Real interval=0.1) |
Fast-forwards this system by the required number of seconds. More... | |
ParticleAffector * | getAffector (unsigned short index) const |
Retrieves an affector by it's index (zero-based). More... | |
const StringVector & | getAnimableValueNames (void) const |
Gets a list of animable value names for this object. More... | |
virtual const AxisAlignedBox & | getBoundingBox (void) const |
Overridden from MovableObject. More... | |
virtual Real | getBoundingRadius (void) const |
Overridden from MovableObject. More... | |
bool | getCastShadows (void) const |
Returns whether shadow casting is enabled for this object. More... | |
virtual bool | getCullIndividually (void) const |
Returns whether or not particles in this are tested individually for culling. More... | |
const AxisAlignedBox & | getDarkCapBounds (const Light &light, Real dirLightExtrusionDist) const |
Overridden member from ShadowCaster. More... | |
virtual Real | getDefaultHeight (void) const |
See setDefaultDimensions - this gets 1 component individually. More... | |
virtual Real | getDefaultWidth (void) const |
See setDefaultDimensions - this gets 1 component individually. More... | |
EdgeData * | getEdgeList (void) |
Returns details of the edges which might be used to determine a silhouette. More... | |
size_t | getEmittedEmitterQuota (void) const |
Returns the maximum number of emitted emitters this system is allowed to have active at once. More... | |
ParticleEmitter * | getEmitter (unsigned short index) const |
Retrieves an emitter by it's index (zero-based). More... | |
bool | getEmitting () const |
Returns true if the particle system emitting flag is turned on. More... | |
Real | getIterationInterval (void) const |
Gets a 'iteration interval' on this particle system. More... | |
bool | getKeepParticlesInLocalSpace (void) const |
Gets whether particles (and any affector effects) remain relative to the node the particle system is attached to. More... | |
const AxisAlignedBox & | getLightCapBounds (void) const |
Overridden member from ShadowCaster. More... | |
uint32 | getLightMask () const |
Get a bitwise mask which will filter the lights affecting this object. More... | |
Listener * | getListener (void) const |
Gets the current listener for this object. More... | |
virtual const String & | getMaterialName (void) const |
Sets the name of the material to be used for this billboard set. More... | |
const String & | getMovableType (void) const |
Overridden from MovableObject. More... | |
const String & | getName (void) const |
Returns the name of this object. More... | |
Real | getNonVisibleUpdateTimeout (void) const |
Gets when the particle system should stop updating after it hasn't been visible for a while. More... | |
unsigned short | getNumAffectors (void) const |
Returns the number of affectors for this particle system. More... | |
unsigned short | getNumEmitters (void) const |
Returns the number of emitters for this particle system. More... | |
size_t | getNumParticles (void) const |
Gets the number of individual particles in the system right now. More... | |
const String & | getOrigin (void) const |
Get the origin of this particle system, e.g. More... | |
ParamDictionary * | getParamDictionary (void) |
Retrieves the parameter dictionary for this class. More... | |
const ParamDictionary * | getParamDictionary (void) const |
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... | |
Node * | getParentNode (void) const |
Returns the node to which this object is attached. More... | |
SceneNode * | getParentSceneNode (void) const |
Returns the scene node to which this object is attached. More... | |
Particle * | getParticle (size_t index) |
Retrieve a particle from the system for manual tweaking. More... | |
size_t | getParticleQuota (void) const |
Returns the maximum number of particles this system is allowed to have active at once. More... | |
Real | getPointExtrusionDistance (const Light *l) const |
Get the distance to extrude for a point/spot light. More... | |
uint32 | getQueryFlags (void) const |
Returns the query flags relevant for this object. More... | |
bool | getReceivesShadows () |
Returns whether the Material of any Renderable that this MovableObject will add to the render queue will receive shadows. More... | |
ParticleSystemRenderer * | getRenderer (void) const |
Gets the ParticleRenderer to be used to render this particle system. More... | |
const String & | getRendererName (void) const |
Gets the name of the ParticleRenderer to be used to render this particle system. More... | |
Real | getRenderingDistance (void) const |
Gets the distance at which batches are no longer rendered. More... | |
Real | getRenderingMinPixelSize () const |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered. More... | |
uint8 | getRenderQueueGroup (void) const |
Gets the queue group for this entity. More... | |
virtual const String & | getResourceGroupName (void) const |
Return the resource group to be used to load dependent resources. More... | |
ShadowRenderableListIterator | getShadowVolumeRenderableIterator (ShadowTechnique shadowTechnique, const Light *light, HardwareIndexBufferSharedPtr *indexBuffer, size_t *indexBufferUsedSize, bool extrudeVertices, Real extrusionDist, unsigned long flags=0) |
Define a default implementation of method from ShadowCaster which implements no shadows. More... | |
bool | getSortingEnabled (void) const |
Gets whether particles are sorted relative to the camera. More... | |
Real | getSpeedFactor (void) const |
Gets the 'speed factor' on this particle system. More... | |
uint32 | getTypeFlags (void) const |
Override to return specific type flag. More... | |
const Any & | getUserAny (void) const |
UserObjectBindings & | getUserObjectBindings () |
Return an instance of user objects binding associated with this class. More... | |
const UserObjectBindings & | getUserObjectBindings () const |
Return an instance of user objects binding associated with this class. More... | |
uint32 | getVisibilityFlags (void) const |
Returns the visibility flags relevant for this object. More... | |
bool | getVisible (void) const |
Gets this object whether to be visible or not, if it has a renderable component. More... | |
virtual const AxisAlignedBox & | getWorldBoundingBox (bool derive=false) const |
Retrieves the axis-aligned bounding box for this object in world coordinates. More... | |
virtual const Sphere & | getWorldBoundingSphere (bool derive=false) const |
Retrieves the worldspace bounding sphere for this object. More... | |
bool | hasEdgeList (void) |
Returns whether the object has a valid edge list. More... | |
bool | isAttached (void) const |
Returns true if this object is attached to a SceneNode or TagPoint. More... | |
bool | isDebugDisplayEnabled (void) const |
Gets whether debug display of this object is enabled. More... | |
virtual bool | isInScene (void) const |
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph. More... | |
bool | isParentTagPoint () const |
Gets whether the parent node is a TagPoint (or a SceneNode) More... | |
virtual bool | isVisible (void) const |
Returns whether or not this object is supposed to be visible or not. More... | |
ParticleSystem & | operator= (const ParticleSystem &rhs) |
Assignment operator for copying. More... | |
const LightList & | queryLights (void) const |
Gets a list of lights, ordered relative to how close they are to this movable object. More... | |
void | removeAffector (unsigned short index) |
Removes an affector from the system. More... | |
void | removeAllAffectors (void) |
Removes all the affectors from this system. More... | |
void | removeAllEmitters (void) |
Removes all the emitters from this system. More... | |
void | removeEmitter (unsigned short index) |
Removes an emitter from the system. More... | |
void | removeEmitter (ParticleEmitter *emitter) |
Removes an emitter from the system. More... | |
void | removeQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. More... | |
void | removeVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. More... | |
void | setBounds (const AxisAlignedBox &aabb) |
Set the (initial) bounds of the particle system manually. More... | |
void | setBoundsAutoUpdated (bool autoUpdate, Real stopIn=0.0f) |
Sets whether the bounds will be automatically updated for the life of the particle system. More... | |
void | setCastShadows (bool enabled) |
Sets whether or not this object will cast shadows. More... | |
virtual void | setCullIndividually (bool cullIndividual) |
Sets whether culling tests particles in this individually as well as in a group. More... | |
void | setDebugDisplayEnabled (bool enabled) |
Sets whether or not the debug display of this object is enabled. More... | |
virtual void | setDefaultDimensions (Real width, Real height) |
Sets the default dimensions of the particles in this set. More... | |
virtual void | setDefaultHeight (Real height) |
See setDefaultDimensions - this sets 1 component individually. More... | |
virtual void | setDefaultWidth (Real width) |
See setDefaultDimensions - this sets 1 component individually. More... | |
void | setEmittedEmitterQuota (size_t quota) |
Sets the maximum number of emitted emitters this system is allowed to have active at once. More... | |
void | setEmitting (bool v) |
This is used to turn on or off particle emission for this system. More... | |
void | setIterationInterval (Real iterationInterval) |
Sets a 'iteration interval' on this particle system. More... | |
void | setKeepParticlesInLocalSpace (bool keepLocal) |
Sets whether particles (and any affector effects) remain relative to the node the particle system is attached to. More... | |
void | setLightMask (uint32 lightMask) |
Set a bitwise mask which will filter the lights affecting this object. More... | |
void | setListener (Listener *listener) |
Sets a listener for this object. More... | |
virtual void | setMaterialName (const String &name, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME) |
Sets the name of the material to be used for this billboard set. More... | |
void | setNonVisibleUpdateTimeout (Real timeout) |
Sets when the particle system should stop updating after it hasn't been visible for a while. More... | |
bool | setParameter (const String &name, const String &value) |
Generic parameter setting method. More... | |
void | setParameterList (const NameValuePairList ¶mList) |
Generic multiple parameter setting method. More... | |
void | setParticleQuota (size_t quota) |
Sets the maximum number of particles this system is allowed to have active at once. More... | |
void | setQueryFlags (uint32 flags) |
Sets the query flags for this object. More... | |
void | setRenderer (const String &typeName) |
Sets the ParticleRenderer to be used to render this particle system. More... | |
void | setRenderingDistance (Real dist) |
Sets the distance at which the object is no longer rendered. More... | |
void | setRenderingMinPixelSize (Real pixelSize) |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered. More... | |
void | setRenderQueueGroup (uint8 queueID) |
Sets the render queue group this entity will be rendered through. More... | |
void | setRenderQueueGroupAndPriority (uint8 queueID, ushort priority) |
Sets the render queue group and group priority this entity will be rendered through. More... | |
void | setSortingEnabled (bool enabled) |
Set whether or not particles are sorted according to the camera. More... | |
void | setSpeedFactor (Real speedFactor) |
Sets a 'speed factor' on this particle system, which means it scales the elapsed real time which has passed by this factor before passing it to the emitters, affectors, and the particle life calculation. More... | |
void | setUserAny (const Any &anything) |
void | setVisibilityFlags (uint32 flags) |
Sets the visibility flags for this object. More... | |
void | setVisible (bool visible) |
Tells this object whether to be visible or not, if it has a renderable component. More... | |
void | visitRenderables (Renderable::Visitor *visitor, bool debugRenderables=false) |
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject will add to the render queue when asked, if any. 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 void | clearShadowRenderableList (ShadowRenderableList &shadowRenderables) |
Common implementation of releasing shadow renderables. More... | |
static void | extrudeVertices (const HardwareVertexBufferSharedPtr &vertexBuffer, size_t originalVertexCount, const Vector4 &lightPos, Real extrudeDist) |
Utility method for extruding vertices based on a light. More... | |
static Real | getDefaultIterationInterval (void) |
Get the default iteration interval for all ParticleSystem instances. More... | |
static Real | getDefaultNonVisibleUpdateTimeout (void) |
Get the default nonvisible timeout for all ParticleSystem instances. More... | |
static uint32 | getDefaultQueryFlags () |
Get the default query flags for all future MovableObject instances. More... | |
static uint32 | getDefaultVisibilityFlags () |
Get the default visibility flags for all future MovableObject instances. More... | |
static void | setDefaultIterationInterval (Real iterationInterval) |
Set the default iteration interval for all ParticleSystem instances. More... | |
static void | setDefaultNonVisibleUpdateTimeout (Real timeout) |
Set the default nonvisible timeout for all ParticleSystem instances. More... | |
static void | setDefaultQueryFlags (uint32 flags) |
Set the default query flags for all future MovableObject instances. More... | |
static void | setDefaultVisibilityFlags (uint32 flags) |
Set the default visibility flags for all future MovableObject instances. More... | |
Class defining particle system based special effects.
|
inherited |
|
inherited |
Ogre::ParticleSystem::ParticleSystem | ( | ) |
Default constructor required for STL creation in manager.
Creates a particle system with no emitters or affectors.
|
virtual |
void Ogre::ParticleSystem::setRenderer | ( | const String & | typeName | ) |
Sets the ParticleRenderer to be used to render this particle system.
typeName | String identifying the type of renderer to use; a new instance of this type will be created; a factory must have been registered with ParticleSystemManager. |
ParticleSystemRenderer* Ogre::ParticleSystem::getRenderer | ( | void | ) | const |
Gets the ParticleRenderer to be used to render this particle system.
const String& Ogre::ParticleSystem::getRendererName | ( | void | ) | const |
Gets the name of the ParticleRenderer to be used to render this particle system.
ParticleEmitter* Ogre::ParticleSystem::addEmitter | ( | const String & | emitterType | ) |
Adds an emitter to this particle system.
emitterType | String identifying the emitter type to create. Emitter types are defined by registering new factories with the manager - see ParticleEmitterFactory for more details. Emitter types can be extended by OGRE, plugin authors or application developers. |
ParticleEmitter* Ogre::ParticleSystem::getEmitter | ( | unsigned short | index | ) | const |
Retrieves an emitter by it's index (zero-based).
index | Zero-based index of the emitter to retrieve. |
unsigned short Ogre::ParticleSystem::getNumEmitters | ( | void | ) | const |
Returns the number of emitters for this particle system.
void Ogre::ParticleSystem::removeEmitter | ( | unsigned short | index | ) |
Removes an emitter from the system.
index | Zero-based index of the emitter to retrieve. |
void Ogre::ParticleSystem::removeAllEmitters | ( | void | ) |
Removes all the emitters from this system.
void Ogre::ParticleSystem::removeEmitter | ( | ParticleEmitter * | emitter | ) |
Removes an emitter from the system.
emitter | Pointer to a particle emitter. |
ParticleAffector* Ogre::ParticleSystem::addAffector | ( | const String & | affectorType | ) |
Adds an affector to this particle system.
affectorType | String identifying the affector type to create. Affector types are defined by registering new factories with the manager - see ParticleAffectorFactory for more details. Affector types can be extended by OGRE, plugin authors or application developers. |
ParticleAffector* Ogre::ParticleSystem::getAffector | ( | unsigned short | index | ) | const |
Retrieves an affector by it's index (zero-based).
index | Zero-based index of the affector to retrieve. |
unsigned short Ogre::ParticleSystem::getNumAffectors | ( | void | ) | const |
Returns the number of affectors for this particle system.
void Ogre::ParticleSystem::removeAffector | ( | unsigned short | index | ) |
Removes an affector from the system.
index | Zero-based index of the affector to retrieve. |
void Ogre::ParticleSystem::removeAllAffectors | ( | void | ) |
Removes all the affectors from this system.
void Ogre::ParticleSystem::clear | ( | ) |
Empties this set of all particles.
size_t Ogre::ParticleSystem::getNumParticles | ( | void | ) | const |
Gets the number of individual particles in the system right now.
Particle* Ogre::ParticleSystem::createParticle | ( | void | ) |
Manually add a particle to the system.
Manually add an emitter particle to the system.
emitterName | The name of a particle emitter that must be emitted. |
Particle* Ogre::ParticleSystem::getParticle | ( | size_t | index | ) |
Retrieve a particle from the system for manual tweaking.
size_t Ogre::ParticleSystem::getParticleQuota | ( | void | ) | const |
Returns the maximum number of particles this system is allowed to have active at once.
void Ogre::ParticleSystem::setParticleQuota | ( | size_t | quota | ) |
Sets the maximum number of particles this system is allowed to have active at once.
quota | The maximum number of particles this system is allowed to have. |
size_t Ogre::ParticleSystem::getEmittedEmitterQuota | ( | void | ) | const |
Returns the maximum number of emitted emitters this system is allowed to have active at once.
void Ogre::ParticleSystem::setEmittedEmitterQuota | ( | size_t | quota | ) |
Sets the maximum number of emitted emitters this system is allowed to have active at once.
quota | The maximum number of emitted emitters this system is allowed to have. |
ParticleSystem& Ogre::ParticleSystem::operator= | ( | const ParticleSystem & | rhs | ) |
Assignment operator for copying.
void Ogre::ParticleSystem::_update | ( | Real | timeElapsed | ) |
Updates the particles in the system based on time elapsed.
timeElapsed | The amount of time, in seconds, since the last frame. |
ParticleIterator Ogre::ParticleSystem::_getIterator | ( | void | ) |
Returns an iterator for stepping through all particles in this system.
|
virtual |
Sets the name of the material to be used for this billboard set.
name | The new name of the material to use for this set. |
|
virtual |
Sets the name of the material to be used for this billboard set.
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
virtual |
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject will add to the render queue when asked, if any.
visitor | Pointer to a class implementing the Renderable::Visitor interface which will be called back for each Renderable which will be queued. Bear in mind that the state of the Renderable instances may not be finalised depending on when you call this. |
debugRenderables | If false, only regular renderables will be visited (those for normal display). If true, debug renderables will be included too. |
Implements Ogre::MovableObject.
Fast-forwards this system by the required number of seconds.
time | The number of seconds to fast-forward by. |
interval | The sampling interval used to generate particles, apply affectors etc. The lower this is the more realistic the fast-forward, but it takes more iterations to do it. |
|
inline |
Sets a 'speed factor' on this particle system, which means it scales the elapsed real time which has passed by this factor before passing it to the emitters, affectors, and the particle life calculation.
|
inline |
Gets the 'speed factor' on this particle system.
void Ogre::ParticleSystem::setIterationInterval | ( | Real | iterationInterval | ) |
Sets a 'iteration interval' on this particle system.
iterationInterval | The iteration interval, default to zero. |
|
inline |
Gets a 'iteration interval' on this particle system.
|
inlinestatic |
Set the default iteration interval for all ParticleSystem instances.
|
inlinestatic |
Get the default iteration interval for all ParticleSystem instances.
void Ogre::ParticleSystem::setNonVisibleUpdateTimeout | ( | Real | timeout | ) |
Sets when the particle system should stop updating after it hasn't been visible for a while.
timeout | The time after which the particle system will be disabled if it is no longer visible. 0 to disable the timeout and always update. |
|
inline |
Gets when the particle system should stop updating after it hasn't been visible for a while.
|
inlinestatic |
Set the default nonvisible timeout for all ParticleSystem instances.
|
inlinestatic |
Get the default nonvisible timeout for all ParticleSystem instances.
|
virtual |
Overridden from MovableObject.
Implements Ogre::MovableObject.
|
virtual |
Internal callback used by Particles to notify their parent that they have been resized.
|
virtual |
Internal callback used by Particles to notify their parent that they have been rotated.
Sets the default dimensions of the particles in this set.
width | The new default width for the particles in this set. Must be non-negative! |
height | The new default height for the particles in this set. Must be non-negative! |
|
virtual |
See setDefaultDimensions - this sets 1 component individually.
|
virtual |
See setDefaultDimensions - this gets 1 component individually.
|
virtual |
See setDefaultDimensions - this sets 1 component individually.
|
virtual |
See setDefaultDimensions - this gets 1 component individually.
|
virtual |
Returns whether or not particles in this are tested individually for culling.
|
virtual |
Sets whether culling tests particles in this individually as well as in a group.
cullIndividual | If true, each particle is tested before being sent to the pipeline as well as the whole set having to pass the coarse group bounding test. |
|
inlinevirtual |
Return the resource group to be used to load dependent resources.
|
inline |
Get the origin of this particle system, e.g.
a script file name.
|
inline |
Notify this particle system of it's origin.
|
virtual |
Sets the render queue group this entity will be rendered through.
queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here. |
Reimplemented from Ogre::MovableObject.
|
virtual |
Sets the render queue group and group priority this entity will be rendered through.
queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here. |
priority | The priority within a group to use. |
Reimplemented from Ogre::MovableObject.
|
inline |
Set whether or not particles are sorted according to the camera.
|
inline |
Gets whether particles are sorted relative to the camera.
void Ogre::ParticleSystem::setBounds | ( | const AxisAlignedBox & | aabb | ) |
Set the (initial) bounds of the particle system manually.
aabb | Bounds in local space. |
void Ogre::ParticleSystem::setBoundsAutoUpdated | ( | bool | autoUpdate, |
Real | stopIn = 0.0f |
||
) |
Sets whether the bounds will be automatically updated for the life of the particle system.
autoUpdate | If true (the default), the particle system will update it's bounds every frame. If false, the bounds update will cease after the 'stopIn' number of seconds have passed. |
stopIn | Only applicable if the first parameter is true, this is the number of seconds after which the automatic update will cease. |
void Ogre::ParticleSystem::setKeepParticlesInLocalSpace | ( | bool | keepLocal | ) |
Sets whether particles (and any affector effects) remain relative to the node the particle system is attached to.
|
inline |
Gets whether particles (and any affector effects) remain relative to the node the particle system is attached to.
void Ogre::ParticleSystem::_updateBounds | ( | void | ) |
Internal method for updating the bounds of the particle system.
void Ogre::ParticleSystem::setEmitting | ( | bool | v | ) |
This is used to turn on or off particle emission for this system.
Note that this does not detach the particle system from the scene node, it will still use some CPU.
bool Ogre::ParticleSystem::getEmitting | ( | ) | const |
Returns true if the particle system emitting flag is turned on.
|
virtual |
Override to return specific type flag.
Reimplemented from Ogre::MovableObject.
|
inlineinherited |
Retrieves the parameter dictionary for this class.
|
inlineinherited |
|
inherited |
Retrieves a list of parameters valid for this object.
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().
|
inherited |
Generic multiple parameter setting method.
paramList | Name/value pair list |
Generic parameter retrieval method.
name | The name of the parameter to get |
References Ogre::ParamCommand::doGet().
|
inlineinherited |
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. |
References Ogre::StringInterface::setParameter().
|
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 |
Notify the object of it's creator (internal use only)
|
inlineinherited |
Get the creator of this object, if any (internal use only)
|
inlinevirtualinherited |
Notify the object of it's manager (internal use only)
|
inlineinherited |
Get the manager of this object, if any (internal use only)
|
inlinevirtualinherited |
Notifies the movable object that hardware resources were lost.
Reimplemented in Ogre::BillboardSet, Ogre::StaticGeometry::Region, Ogre::Entity, and Ogre::ManualObject.
|
inlinevirtualinherited |
Notifies the movable object that hardware resources should be restored.
Reimplemented in Ogre::StaticGeometry::Region, and Ogre::Entity.
|
inlineinherited |
Returns the name of this object.
|
inlineinherited |
Returns the node to which this object is attached.
|
inherited |
Returns the scene node to which this object is attached.
|
inlineinherited |
|
inlineinherited |
|
inherited |
|
virtualinherited |
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph.
Reimplemented in Ogre::InstancedEntity.
|
virtualinherited |
Internal method called to notify the object that it has been moved.
Reimplemented in Ogre::Light, Ogre::PortalBase, Ogre::InstancedEntity, and Ogre::PCZLight.
|
virtualinherited |
Retrieves the axis-aligned bounding box for this object in world coordinates.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::Entity, and Ogre::PortalBase.
|
virtualinherited |
Retrieves the worldspace bounding sphere for this object.
Reimplemented in Ogre::Entity, and Ogre::PortalBase.
|
inlineinherited |
Tells this object whether to be visible or not, if it has a renderable component.
Referenced by Ogre::Light::setVisible().
|
inlineinherited |
Gets this object whether to be visible or not, if it has a renderable component.
|
virtualinherited |
Returns whether or not this object is supposed to be visible or not.
Reimplemented in Ogre::InstancedGeometry::BatchInstance, and Ogre::StaticGeometry::Region.
Referenced by Ogre::Frustum::isCustomProjectionMatrixEnabled().
|
inlineinherited |
Sets the distance at which the object is no longer rendered.
dist | Distance beyond which the object will not be rendered (the default is 0, which means objects are always rendered). |
|
inlineinherited |
Gets the distance at which batches are no longer rendered.
|
inlineinherited |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
pixelSize | Number of minimum pixels (the default is 0, which means objects are always rendered). |
|
inlineinherited |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
|
inlineinherited |
Sets any kind of user value on this object.
|
inlineinherited |
Retrieves the custom user value associated with this object.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
|
inlineinherited |
Gets the queue group for this entity.
|
virtualinherited |
Return the full transformation of the parent sceneNode or the attachingPoint node.
Reimplemented in Ogre::InstancedEntity.
|
inlineinherited |
Sets the query flags for this object.
|
inlineinherited |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
|
inlineinherited |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
|
inlineinherited |
Returns the query flags relevant for this object.
|
inlinestaticinherited |
Set the default query flags for all future MovableObject instances.
|
inlinestaticinherited |
Get the default query flags for all future MovableObject instances.
|
inlineinherited |
Sets the visibility flags for this object.
|
inlineinherited |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
|
inlineinherited |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
|
inlineinherited |
Returns the visibility flags relevant for this object.
|
inlinestaticinherited |
Set the default visibility flags for all future MovableObject instances.
|
inlinestaticinherited |
Get the default visibility flags for all future MovableObject instances.
|
inlineinherited |
Sets a listener for this object.
|
inlineinherited |
Gets the current listener for this object.
|
inherited |
Gets a list of lights, ordered relative to how close they are to this movable object.
|
inlineinherited |
Get a bitwise mask which will filter the lights affecting this object.
|
inherited |
Set a bitwise mask which will filter the lights affecting this object.
|
inlineinherited |
Returns a pointer to the current list of lights for this object.
|
inlinevirtualinherited |
Returns details of the edges which might be used to determine a silhouette.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
inlinevirtualinherited |
Returns whether the object has a valid edge list.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
virtualinherited |
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
virtualinherited |
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster.
|
virtualinherited |
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster.
|
inlineinherited |
Sets whether or not this object will cast shadows.
|
inlinevirtualinherited |
Returns whether shadow casting is enabled for this object.
Implements Ogre::ShadowCaster.
|
inherited |
Returns whether the Material of any Renderable that this MovableObject will add to the render queue will receive shadows.
Get the distance to extrude for a point/spot light.
Implements Ogre::ShadowCaster.
|
inlineinherited |
Sets whether or not the debug display of this object is enabled.
|
inlineinherited |
Gets whether debug display of this object is enabled.
|
staticinherited |
Common implementation of releasing shadow renderables.
|
staticinherited |
Utility method for extruding vertices based on a light.
vertexBuffer | The vertex buffer containing ONLY xyz position values, which must be originalVertexCount * 2 * 3 floats long. |
originalVertexCount | The count of the original number of vertices, i.e. the number in the mesh, not counting the doubling which has already been done (by VertexData::prepareForShadowVolume) to provide the extruded area of the buffer. |
lightPos | 4D light position in object space, when w=0.0f this represents a directional light. |
extrudeDist | The distance to extrude. |
|
inlineinherited |
Gets a list of animable value names for this object.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlinevirtualinherited |
Create a reference-counted AnimableValuePtr for the named value.
Reimplemented in Ogre::Light.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.