Spinning Topp Logo BlackTopp Studios
inc
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Mezzanine::Graphics::ParticleAffector Class Reference

This class defines how particles of a given particle effect behave during their lifetime. More...

#include <particleaffector.h>

+ Collaboration diagram for Mezzanine::Graphics::ParticleAffector:

Public Member Functions

 ParticleAffector (Ogre::ParticleAffector *InternalAffector, ParticleSystemProxy *Creator)
 Internal Class constructor. More...
 
virtual ~ParticleAffector ()
 Class destructor.
 
virtual Ogre::ParticleAffector * _GetGraphicsAffector () const
 Accessor for the internal particle affector. More...
 
String GetCustomParam (const String &Name) const
 Gets a custom parameter of a particle affector. More...
 
virtual String GetDerivedSerializableName () const
 Gets the most derived serializable name of this WorldProxy. More...
 
virtual void ProtoDeSerialize (const XML::Node &SelfRoot)
 Take the data stored in an XML Node and overwrite this object with it. More...
 
virtual void ProtoDeSerializeCustomParameters (const XML::Node &SelfRoot)
 Take the data stored in an XML Node and overwrite the custom altered parameters of this object with it. More...
 
virtual void ProtoSerialize (XML::Node &ParentNode) const
 Convert this class to an XML::Node ready for serialization. More...
 
virtual void ProtoSerializeCustomParameters (XML::Node &SelfRoot) const
 Convert the custom altered parameters of this class to an XML::Node ready for serialization. More...
 
void SetCustomParam (const String &Name, const String &Value)
 Sets a custom parameter of a particle affector. More...
 

Static Public Member Functions

static String GetSerializableName ()
 Get the name of the the XML tag the proxy class will leave behind as its instances are serialized. More...
 

Protected Attributes

NameValuePairMap CustomAffectorParameters
 A cache containing all of the custom altered parameters of this particle affector. More...
 
Ogre::ParticleAffector * GraphicsAffector
 The internal affector class this class get's it functionality from. More...
 
ParticleSystemProxyParentSystem
 A pointer to the system that this affector is affecting. More...
 

Detailed Description

This class defines how particles of a given particle effect behave during their lifetime.

Definition at line 61 of file particleaffector.h.

Constructor & Destructor Documentation

Mezzanine::Graphics::ParticleAffector::ParticleAffector ( Ogre::ParticleAffector *  InternalAffector,
ParticleSystemProxy Creator 
)

Internal Class constructor.

Parameters
InternalAffectorA pointer to the internal affector providing this class' functionality.
CreatorA pointer to the particle system that created this affector.

Definition at line 56 of file particleaffector.cpp.

Member Function Documentation

Ogre::ParticleAffector * Mezzanine::Graphics::ParticleAffector::_GetGraphicsAffector ( ) const
virtual

Accessor for the internal particle affector.

Returns
Returns a pointer to the internal particle affector this proxy is based on.

Definition at line 170 of file particleaffector.cpp.

String Mezzanine::Graphics::ParticleAffector::GetCustomParam ( const String Name) const

Gets a custom parameter of a particle affector.

Remarks
The params available to change depends on the internal particle affector used. You should check your particle script where possible to ensure the particle has the param you are looking for.
Parameters
NameThe name of the parameter to fetch.

Definition at line 73 of file particleaffector.cpp.

String Mezzanine::Graphics::ParticleAffector::GetDerivedSerializableName ( ) const
virtual

Gets the most derived serializable name of this WorldProxy.

Note
When creating a new WorldProxy class verify this method has a valid return for it in order for serialization to work properly.
Returns
Returns the name of the XML tag from the most derived class of "this".

Definition at line 161 of file particleaffector.cpp.

String Mezzanine::Graphics::ParticleAffector::GetSerializableName ( )
static

Get the name of the the XML tag the proxy class will leave behind as its instances are serialized.

Returns
A string containing the name of this class.

Definition at line 164 of file particleaffector.cpp.

void Mezzanine::Graphics::ParticleAffector::ProtoDeSerialize ( const XML::Node SelfRoot)
virtual

Take the data stored in an XML Node and overwrite this object with it.

Parameters
SelfRootAn XML::Node containing the data to populate this class with.

Definition at line 116 of file particleaffector.cpp.

void Mezzanine::Graphics::ParticleAffector::ProtoDeSerializeCustomParameters ( const XML::Node SelfRoot)
virtual

Take the data stored in an XML Node and overwrite the custom altered parameters of this object with it.

Parameters
SelfRootAn XML::Node containing the data to populate this class with.

Definition at line 126 of file particleaffector.cpp.

void Mezzanine::Graphics::ParticleAffector::ProtoSerialize ( XML::Node ParentNode) const
virtual

Convert this class to an XML::Node ready for serialization.

Parameters
ParentNodeThe point in the XML hierarchy that all this renderable should be appended to.

Definition at line 81 of file particleaffector.cpp.

void Mezzanine::Graphics::ParticleAffector::ProtoSerializeCustomParameters ( XML::Node SelfRoot) const
virtual

Convert the custom altered parameters of this class to an XML::Node ready for serialization.

Parameters
SelfRootThe root node containing all the serialized data for this instance.

Definition at line 93 of file particleaffector.cpp.

void Mezzanine::Graphics::ParticleAffector::SetCustomParam ( const String Name,
const String Value 
)

Sets a custom parameter of a particle affector.

Remarks
The params available to change depends on the internal particle affector used. You should check your particle script where possible to ensure particles you are changing are the type you expect.
Parameters
NameThe name of the parameter to alter.
ValueThe new value to set for the named parameter.

Definition at line 67 of file particleaffector.cpp.

Member Data Documentation

NameValuePairMap Mezzanine::Graphics::ParticleAffector::CustomAffectorParameters
protected

A cache containing all of the custom altered parameters of this particle affector.

Note
Once we have a proper wrapper for particle systems (or our own implementation) this no longer needs to exist.

Definition at line 67 of file particleaffector.h.

Ogre::ParticleAffector* Mezzanine::Graphics::ParticleAffector::GraphicsAffector
protected

The internal affector class this class get's it functionality from.

Definition at line 70 of file particleaffector.h.

ParticleSystemProxy* Mezzanine::Graphics::ParticleAffector::ParentSystem
protected

A pointer to the system that this affector is affecting.

Definition at line 73 of file particleaffector.h.


The documentation for this class was generated from the following files: