#include <OgreColourFaderAffector2.h>
Inheritance diagram for Ogre::ColourFaderAffector2:
Public Methods | |
ColourFaderAffector2 () | |
Default constructor. | |
void | _affectParticles (ParticleSystem *pSystem, Real timeElapsed) |
See ParticleAffector. | |
void | setAdjust1 (Real red, Real green, Real blue, Real alpha=0.0) |
Sets the colour adjustment to be made per second to particles. | |
void | setAdjust2 (Real red, Real green, Real blue, Real alpha=0.0) |
void | setRedAdjust1 (Real red) |
Sets the red adjustment to be made per second to particles. | |
void | setRedAdjust2 (Real red) |
Real | getRedAdjust1 (void) const |
Gets the red adjustment to be made per second to particles. | |
Real | getRedAdjust2 (void) const |
void | setGreenAdjust1 (Real green) |
Sets the green adjustment to be made per second to particles. | |
void | setGreenAdjust2 (Real green) |
Real | getGreenAdjust1 (void) const |
Gets the green adjustment to be made per second to particles. | |
Real | getGreenAdjust2 (void) const |
void | setBlueAdjust1 (Real blue) |
Sets the blue adjustment to be made per second to particles. | |
void | setBlueAdjust2 (Real blue) |
Real | getBlueAdjust1 (void) const |
Gets the blue adjustment to be made per second to particles. | |
Real | getBlueAdjust2 (void) const |
void | setAlphaAdjust1 (Real alpha) |
Sets the alpha adjustment to be made per second to particles. | |
void | setAlphaAdjust2 (Real alpha) |
Real | getAlphaAdjust1 (void) const |
Gets the alpha adjustment to be made per second to particles. | |
Real | getAlphaAdjust2 (void) const |
void | setStateChange (Real NewValue) |
Real | getStateChange (void) const |
virtual void | _initParticle (Particle *pParticle) |
Method called to allow the affector to initialize all newly created particles in the system. | |
String | getType (void) const |
Returns the name of the type of affector. | |
ParamDictionary * | getParamDictionary (void) |
Retrieves the parameter dictionary for this class. | |
const ParamDictionary * | getParamDictionary (void) const |
const ParameterList & | getParameters (void) const |
Retrieves a list of parameters valid for this object. | |
virtual bool | setParameter (const String &name, const String &value) |
Generic parameter setting method. | |
virtual String | getParameter (const String &name) const |
Generic parameter retrieval method. | |
virtual void | copyParametersTo (StringInterface *dest) const |
Method for copying this object's parameters to another object. | |
Static Public Attributes | |
CmdRedAdjust1 | msRedCmd1 |
CmdRedAdjust2 | msRedCmd2 |
CmdGreenAdjust1 | msGreenCmd1 |
CmdGreenAdjust2 | msGreenCmd2 |
CmdBlueAdjust1 | msBlueCmd1 |
CmdBlueAdjust2 | msBlueCmd2 |
CmdAlphaAdjust1 | msAlphaCmd1 |
CmdAlphaAdjust2 | msAlphaCmd2 |
CmdStateChange | msStateCmd |
Protected Methods | |
void | applyAdjustWithClamp (Real *pComponent, Real adjust) |
Internal method for adjusting while clamping to [0,1]. | |
void | addBaseParameters (void) |
Internal method for setting up the basic parameter definitions for a subclass. | |
bool | createParamDictionary (const String &className) |
Internal method for creating a parameter dictionary for the class, if it does not already exist. | |
Protected Attributes | |
Real | mRedAdj1 |
Real | mRedAdj2 |
Real | mGreenAdj1 |
Real | mGreenAdj2 |
Real | mBlueAdj1 |
Real | mBlueAdj2 |
Real | mAlphaAdj1 |
Real | mAlphaAdj2 |
Real | StateChangeVal |
String | mType |
Name of the type of affector, MUST be initialised by subclasses. | |
String | mParamDictName |
Class name for this instance to be used as a lookup (must be initialised by subclasses). | |
Static Protected Attributes | |
ParamDictionaryMap | msDictionary |
Dictionary of parameters. |
Definition at line 40 of file OgreColourFaderAffector2.h.
|
Default constructor.
Definition at line 50 of file OgreColourFaderAffector2.cpp. References Ogre::ParamDictionary::addParameter(), Ogre::StringInterface::createParamDictionary(), Ogre::StringInterface::getParamDictionary(), mAlphaAdj1, mAlphaAdj2, mBlueAdj1, mBlueAdj2, mGreenAdj1, mGreenAdj2, mRedAdj1, mRedAdj2, msAlphaCmd1, msAlphaCmd2, msBlueCmd1, msBlueCmd2, msGreenCmd1, msGreenCmd2, msRedCmd1, msRedCmd2, msStateCmd, Ogre::ParticleAffector::mType, Ogre::PT_REAL, and StateChangeVal. |
|
See ParticleAffector.
Implements Ogre::ParticleAffector. Definition at line 98 of file OgreColourFaderAffector2.cpp. References Ogre::ParticleSystem::_getIterator(), Ogre::ColourValue::a, applyAdjustWithClamp(), Ogre::ColourValue::b, Ogre::ParticleIterator::end(), Ogre::ColourValue::g, Ogre::ParticleIterator::getNext(), mAlphaAdj1, mAlphaAdj2, mBlueAdj1, mBlueAdj2, Ogre::Billboard::mColour, mGreenAdj1, mGreenAdj2, mRedAdj1, mRedAdj2, Ogre::Particle::mTimeToLive, Ogre::ColourValue::r, Ogre::Real, and StateChangeVal. |
|
Method called to allow the affector to initialize all newly created particles in the system.
Reimplemented in Ogre::ColourImageAffector, and Ogre::RotationAffector. Definition at line 81 of file OgreParticleAffector.h. |
|
Internal method for setting up the basic parameter definitions for a subclass.
Definition at line 68 of file OgreParticleAffector.h. Referenced by Ogre::LinearForceAffector::LinearForceAffector(). |
|
Internal method for adjusting while clamping to [0,1].
Definition at line 201 of file OgreColourFaderAffector2.h. References Ogre::Real. Referenced by _affectParticles(). |
|
Method for copying this object's parameters to another object.
Definition at line 293 of file OgreStringInterface.h. References Ogre::ParamDictionary::mParamDefs, and Ogre::StringInterface::setParameter(). Referenced by Ogre::GuiElement::clone(), Ogre::GuiElement::copyFromTemplate(), Ogre::GuiContainer::copyFromTemplate(), and Ogre::ParticleSystem::operator=(). |
|
|
Gets the alpha adjustment to be made per second to particles.
Definition at line 226 of file OgreColourFaderAffector2.cpp. References mAlphaAdj1, and Ogre::Real. Referenced by Ogre::ColourFaderAffector2::CmdAlphaAdjust1::doGet(). |
|
Definition at line 231 of file OgreColourFaderAffector2.cpp. References mAlphaAdj2, and Ogre::Real. Referenced by Ogre::ColourFaderAffector2::CmdAlphaAdjust2::doGet(). |
|
Gets the blue adjustment to be made per second to particles.
Definition at line 206 of file OgreColourFaderAffector2.cpp. References mBlueAdj1, and Ogre::Real. Referenced by Ogre::ColourFaderAffector2::CmdBlueAdjust1::doGet(). |
|
Definition at line 211 of file OgreColourFaderAffector2.cpp. References mBlueAdj2, and Ogre::Real. Referenced by Ogre::ColourFaderAffector2::CmdBlueAdjust2::doGet(). |
|
Gets the green adjustment to be made per second to particles.
Definition at line 186 of file OgreColourFaderAffector2.cpp. References mGreenAdj1, and Ogre::Real. Referenced by Ogre::ColourFaderAffector2::CmdGreenAdjust1::doGet(). |
|
Definition at line 191 of file OgreColourFaderAffector2.cpp. References mGreenAdj2, and Ogre::Real. Referenced by Ogre::ColourFaderAffector2::CmdGreenAdjust2::doGet(). |
|
Definition at line 206 of file OgreStringInterface.h. |
|
Retrieves the parameter dictionary for this class.
Definition at line 193 of file OgreStringInterface.h. Referenced by Ogre::TTYGuiElement::addBaseParameters(), Ogre::TextBoxGuiElement::addBaseParameters(), Ogre::TextAreaGuiElement::addBaseParameters(), Ogre::ScrollBarGuiElement::addBaseParameters(), Ogre::PopupMenuGuiElement::addBaseParameters(), Ogre::ParticleEmitter::addBaseParameters(), Ogre::PanelGuiElement::addBaseParameters(), Ogre::ListGuiElement::addBaseParameters(), Ogre::GuiElement::addBaseParameters(), Ogre::CursorGuiElement::addBaseParameters(), Ogre::ButtonGuiElement::addBaseParameters(), Ogre::BorderPanelGuiElement::addBaseParameters(), Ogre::BorderButtonGuiElement::addBaseParameters(), Ogre::ExternalTextureSource::addBaseParams(), Ogre::CgProgram::CgProgram(), Ogre::ColourFaderAffector::ColourFaderAffector(), ColourFaderAffector2(), Ogre::ColourImageAffector::ColourImageAffector(), Ogre::ColourInterpolatorAffector::ColourInterpolatorAffector(), Ogre::D3D9HLSLProgram::D3D9HLSLProgram(), Ogre::HollowEllipsoidEmitter::HollowEllipsoidEmitter(), Ogre::AreaEmitter::initDefaults(), Ogre::ParticleSystem::initParameters(), Ogre::LinearForceAffector::LinearForceAffector(), Ogre::RingEmitter::RingEmitter(), Ogre::RotationAffector::RotationAffector(), Ogre::ScaleAffector::ScaleAffector(), and Ogre::StringInterface::setParameter(). |
|
Generic parameter retrieval method.
Definition at line 262 of file OgreStringInterface.h. References Ogre::ParamCommand::doGet(), and Ogre::ParamDictionary::getParamCommand(). |
|
Retrieves a list of parameters valid for this object.
Definition at line 224 of file OgreStringInterface.h. References Ogre::ParamDictionary::getParameters(), and Ogre::ParameterList. |
|
Gets the red adjustment to be made per second to particles.
Definition at line 166 of file OgreColourFaderAffector2.cpp. References mRedAdj1, and Ogre::Real. Referenced by Ogre::ColourFaderAffector2::CmdRedAdjust1::doGet(). |
|
Definition at line 171 of file OgreColourFaderAffector2.cpp. References mRedAdj2, and Ogre::Real. Referenced by Ogre::ColourFaderAffector2::CmdRedAdjust2::doGet(). |
|
Definition at line 241 of file OgreColourFaderAffector2.cpp. References Ogre::Real, and StateChangeVal. Referenced by Ogre::ColourFaderAffector2::CmdStateChange::doGet(). |
|
Returns the name of the type of affector.
Definition at line 100 of file OgreParticleAffector.h. Referenced by Ogre::ParticleSystemManager::_destroyAffector(), Ogre::ParticleSystem::operator=(), and Ogre::ParticleSystemManager::parseAffectorAttrib(). |
|
Sets the colour adjustment to be made per second to particles.
Definition at line 139 of file OgreColourFaderAffector2.cpp. References Ogre::green, mAlphaAdj1, mBlueAdj1, mGreenAdj1, mRedAdj1, and Ogre::Real. |
|
Definition at line 147 of file OgreColourFaderAffector2.cpp. References Ogre::green, mAlphaAdj2, mBlueAdj2, mGreenAdj2, mRedAdj2, and Ogre::Real. |
|
Sets the alpha adjustment to be made per second to particles.
Definition at line 216 of file OgreColourFaderAffector2.cpp. References mAlphaAdj1, and Ogre::Real. |
|
Definition at line 221 of file OgreColourFaderAffector2.cpp. References mAlphaAdj2, and Ogre::Real. |
|
Sets the blue adjustment to be made per second to particles.
Definition at line 196 of file OgreColourFaderAffector2.cpp. References mBlueAdj1, and Ogre::Real. |
|
Definition at line 201 of file OgreColourFaderAffector2.cpp. References mBlueAdj2, and Ogre::Real. |
|
Sets the green adjustment to be made per second to particles.
Definition at line 176 of file OgreColourFaderAffector2.cpp. References Ogre::green, mGreenAdj1, and Ogre::Real. |
|
Definition at line 181 of file OgreColourFaderAffector2.cpp. References Ogre::green, mGreenAdj2, and Ogre::Real. |
|
Generic parameter setting method.
Definition at line 33 of file OgreStringInterface.cpp. References Ogre::ParamCommand::doSet(), Ogre::ParamDictionary::getParamCommand(), and Ogre::StringInterface::getParamDictionary(). Referenced by Ogre::StringInterface::copyParametersTo(), Ogre::Profiler::createContainer(), Ogre::Profiler::createTextArea(), Ogre::MaterialSerializer::finishProgramDefinition(), Ogre::ParticleSystemManager::parseAffectorAttrib(), Ogre::ParticleSystemManager::parseAttrib(), Ogre::OverlayManager::parseElementAttrib(), and Ogre::ParticleSystemManager::parseEmitterAttrib(). |
|
Sets the red adjustment to be made per second to particles.
Definition at line 156 of file OgreColourFaderAffector2.cpp. References mRedAdj1, and Ogre::Real. |
|
Definition at line 161 of file OgreColourFaderAffector2.cpp. References mRedAdj2, and Ogre::Real. |
|
Definition at line 236 of file OgreColourFaderAffector2.cpp. References Ogre::Real, and StateChangeVal. |
|
Definition at line 197 of file OgreColourFaderAffector2.h. Referenced by _affectParticles(), ColourFaderAffector2(), getAlphaAdjust1(), setAdjust1(), and setAlphaAdjust1(). |
|
Definition at line 197 of file OgreColourFaderAffector2.h. Referenced by _affectParticles(), ColourFaderAffector2(), getAlphaAdjust2(), setAdjust2(), and setAlphaAdjust2(). |
|
Definition at line 196 of file OgreColourFaderAffector2.h. Referenced by _affectParticles(), ColourFaderAffector2(), getBlueAdjust1(), setAdjust1(), and setBlueAdjust1(). |
|
Definition at line 196 of file OgreColourFaderAffector2.h. Referenced by _affectParticles(), ColourFaderAffector2(), getBlueAdjust2(), setAdjust2(), and setBlueAdjust2(). |
|
Definition at line 195 of file OgreColourFaderAffector2.h. Referenced by _affectParticles(), ColourFaderAffector2(), getGreenAdjust1(), setAdjust1(), and setGreenAdjust1(). |
|
Definition at line 195 of file OgreColourFaderAffector2.h. Referenced by _affectParticles(), ColourFaderAffector2(), getGreenAdjust2(), setAdjust2(), and setGreenAdjust2(). |
|
Class name for this instance to be used as a lookup (must be initialised by subclasses).
Definition at line 157 of file OgreStringInterface.h. |
|
Definition at line 194 of file OgreColourFaderAffector2.h. Referenced by _affectParticles(), ColourFaderAffector2(), getRedAdjust1(), setAdjust1(), and setRedAdjust1(). |
|
Definition at line 194 of file OgreColourFaderAffector2.h. Referenced by _affectParticles(), ColourFaderAffector2(), getRedAdjust2(), setAdjust2(), and setRedAdjust2(). |
|
Definition at line 38 of file OgreColourFaderAffector2.cpp. Referenced by ColourFaderAffector2(). |
|
Definition at line 44 of file OgreColourFaderAffector2.cpp. Referenced by ColourFaderAffector2(). |
|
Definition at line 37 of file OgreColourFaderAffector2.cpp. Referenced by ColourFaderAffector2(). |
|
Definition at line 43 of file OgreColourFaderAffector2.cpp. Referenced by ColourFaderAffector2(). |
|
Dictionary of parameters.
Definition at line 30 of file OgreStringInterface.cpp. |
|
Definition at line 36 of file OgreColourFaderAffector2.cpp. Referenced by ColourFaderAffector2(). |
|
Definition at line 42 of file OgreColourFaderAffector2.cpp. Referenced by ColourFaderAffector2(). |
|
Definition at line 35 of file OgreColourFaderAffector2.cpp. Referenced by ColourFaderAffector2(). |
|
Definition at line 41 of file OgreColourFaderAffector2.cpp. Referenced by ColourFaderAffector2(). |
|
Definition at line 46 of file OgreColourFaderAffector2.cpp. Referenced by ColourFaderAffector2(). |
|
Name of the type of affector, MUST be initialised by subclasses.
Definition at line 58 of file OgreParticleAffector.h. Referenced by Ogre::ColourFaderAffector::ColourFaderAffector(), ColourFaderAffector2(), Ogre::ColourImageAffector::ColourImageAffector(), Ogre::ColourInterpolatorAffector::ColourInterpolatorAffector(), Ogre::LinearForceAffector::LinearForceAffector(), Ogre::RotationAffector::RotationAffector(), and Ogre::ScaleAffector::ScaleAffector(). |
|
Definition at line 198 of file OgreColourFaderAffector2.h. Referenced by _affectParticles(), ColourFaderAffector2(), getStateChange(), and setStateChange(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:24:17 2004