Particle Universe
1.2
|
#include <ParticleUniverseForceFieldAffector.h>
Public Member Functions | |
ForceFieldAffector (void) | |
~ForceFieldAffector (void) | |
virtual void | _prepare (ParticleTechnique *particleTechnique) |
virtual void | _preProcessParticles (ParticleTechnique *particleTechnique, Real timeElapsed) |
virtual void | _notifyStart (void) |
virtual void | _affect (ParticleTechnique *particleTechnique, Particle *particle, Real timeElapsed) |
const ForceField::ForceFieldType | getForceFieldType (void) const |
void | setForceFieldType (const ForceField::ForceFieldType forceFieldType) |
Real | getDelta (void) const |
void | setDelta (Real delta) |
Real | getScaleForce (void) const |
void | setScaleForce (Real scaleForce) |
ushort | getOctaves (void) const |
void | setOctaves (ushort octaves) |
double | getFrequency (void) const |
void | setFrequency (double frequency) |
double | getAmplitude (void) const |
void | setAmplitude (double amplitude) |
double | getPersistence (void) const |
void | setPersistence (double persistence) |
unsigned int | getForceFieldSize (void) const |
void | setForceFieldSize (unsigned int forceFieldSize) |
Vector3 | getWorldSize (void) const |
void | setWorldSize (const Vector3 &worldSize) |
bool | getIgnoreNegativeX (void) const |
void | setIgnoreNegativeX (bool ignoreNegativeX) |
bool | getIgnoreNegativeY (void) const |
void | setIgnoreNegativeY (bool ignoreNegativeY) |
bool | getIgnoreNegativeZ (void) const |
void | setIgnoreNegativeZ (bool ignoreNegativeZ) |
const Vector3 & | getMovement (void) const |
void | setMovement (const Vector3 &movement) |
Real | getMovementFrequency (void) const |
void | setMovementFrequency (Real movementFrequency) |
void | suppressGeneration (bool suppress) |
virtual void | copyAttributesTo (ParticleAffector *affector) |
Public Member Functions inherited from ParticleUniverse::ParticleAffector | |
ParticleAffector (void) | |
virtual | ~ParticleAffector (void) |
const AffectSpecialisation & | getAffectSpecialisation (void) const |
void | setAffectSpecialisation (const AffectSpecialisation &affectSpecialisation) |
const String & | getAffectorType (void) const |
void | setAffectorType (const String &affectorType) |
const String & | getName (void) const |
void | setName (const String &name) |
ParticleTechnique * | getParentTechnique (void) const |
void | setParentTechnique (ParticleTechnique *parentTechnique) |
virtual void | _unprepare (ParticleTechnique *particleTechnique) |
virtual void | _notifyStop (void) |
virtual void | _notifyPause (void) |
virtual void | _notifyResume (void) |
virtual void | _notifyRescaled (const Vector3 &scale) |
virtual void | _firstParticle (ParticleTechnique *particleTechnique, Particle *particle, Real timeElapsed) |
virtual void | _initForEmission (void) |
virtual void | _initForExpiration (ParticleTechnique *technique, Real timeElapsed) |
virtual void | _initParticleForEmission (Particle *particle) |
void | _processParticle (ParticleTechnique *particleTechnique, Particle *particle, Real timeElapsed, bool firstParticle) |
virtual void | _postProcessParticles (ParticleTechnique *technique, Real timeElapsed) |
void | addEmitterToExclude (const String &emitterName) |
void | removeEmitterToExclude (const String &emitterName) |
void | removeAllEmittersToExclude (void) |
const list< String > & | getEmittersToExclude (void) const |
bool | hasEmitterToExclude (const String &emitterName) |
virtual void | copyParentAttributesTo (ParticleAffector *affector) |
const Vector3 & | getDerivedPosition (void) |
Real | _calculateAffectSpecialisationFactor (const Particle *particle) |
Public Member Functions inherited from ParticleUniverse::Particle | |
Particle (void) | |
virtual | ~Particle (void) |
bool | _isMarkedForEmission (void) const |
void | _setMarkedForEmission (bool markedForEmission) |
virtual bool | isEnabled (void) const |
virtual void | setEnabled (bool enabled) |
void | _setOriginalEnabled (bool originalEnabled) |
bool | _getOriginalEnabled (void) const |
bool | isFreezed (void) const |
void | setFreezed (bool freezed) |
void | setEventFlags (uint32 flags) |
void | addEventFlags (uint32 flags) |
void | removeEventFlags (uint32 flags) |
uint32 | getEventFlags (void) const |
bool | hasEventFlags (uint32 flags) const |
void | copyBehaviours (ParticleBehaviourList &behaviours) |
virtual void | _process (ParticleTechnique *technique, Real timeElapsed) |
ParticleBehaviour * | getBehaviour (const String &behaviourType) |
Real | calculateVelocity (void) const |
virtual void | copyAttributesTo (Particle *particle) |
Public Member Functions inherited from ParticleUniverse::IAlias | |
IAlias (void) | |
virtual | ~IAlias (void) |
const String & | getAliasName (void) const |
void | setAliasName (String aliasName) |
const AliasType | getAliasType (void) const |
void | setAliasType (AliasType aliasType) |
Public Member Functions inherited from ParticleUniverse::IElement | |
IElement (void) | |
virtual | ~IElement (void) |
Static Public Attributes | |
static const ForceField::ForceFieldType | DEFAULT_FORCEFIELD_TYPE |
static const Real | DEFAULT_DELTA |
static const Real | DEFAULT_FORCE |
static const ushort | DEFAULT_OCTAVES |
static const double | DEFAULT_FREQUENCY |
static const double | DEFAULT_AMPLITUDE |
static const double | DEFAULT_PERSISTENCE |
static const unsigned int | DEFAULT_FORCEFIELDSIZE |
static const Vector3 | DEFAULT_WORLDSIZE |
static const Vector3 | DEFAULT_MOVEMENT |
static const Real | DEFAULT_MOVEMENT_FREQUENCY |
Static Public Attributes inherited from ParticleUniverse::ParticleAffector | |
static const bool | DEFAULT_ENABLED |
static const Vector3 | DEFAULT_POSITION |
static const AffectSpecialisation | DEFAULT_SPECIALISATION |
Static Public Attributes inherited from ParticleUniverse::Particle | |
static Real | DEFAULT_TTL |
static Real | DEFAULT_MASS |
Force Field Affector Class: This Affector Class uses a force field to affect the particle direction.
ParticleUniverse::ForceFieldAffector::ForceFieldAffector | ( | void | ) |
ParticleUniverse::ForceFieldAffector::~ForceFieldAffector | ( | void | ) |
|
virtual |
Affect a particle.
particle | Pointer to a ParticleTechnique to which the particle belongs. |
particle | Pointer to a Particle. |
timeElapsed | The number of seconds which have elapsed since the last call. |
Implements ParticleUniverse::ParticleAffector.
|
virtual |
Perform activities when a ParticleAffector is started.
Reimplemented from ParticleUniverse::ParticleAffector.
|
virtual |
Perform initialisation actions.
Reimplemented from ParticleUniverse::ParticleAffector.
|
virtual |
Perform activities before the individual particles are processed.
Reimplemented from ParticleUniverse::ParticleAffector.
|
virtual |
Copy attributes to another affector.
Reimplemented from ParticleUniverse::ParticleAffector.
double ParticleUniverse::ForceFieldAffector::getAmplitude | ( | void | ) | const |
Get/Set scale Amplitude
Real ParticleUniverse::ForceFieldAffector::getDelta | ( | void | ) | const |
Get/Set Delta
unsigned int ParticleUniverse::ForceFieldAffector::getForceFieldSize | ( | void | ) | const |
Get/Set scale ForceFieldSize
const ForceField::ForceFieldType ParticleUniverse::ForceFieldAffector::getForceFieldType | ( | void | ) | const |
Get/Set Forcefield type
double ParticleUniverse::ForceFieldAffector::getFrequency | ( | void | ) | const |
Get/Set scale Frequency
bool ParticleUniverse::ForceFieldAffector::getIgnoreNegativeX | ( | void | ) | const |
Get/Set scale flip attributes
bool ParticleUniverse::ForceFieldAffector::getIgnoreNegativeY | ( | void | ) | const |
bool ParticleUniverse::ForceFieldAffector::getIgnoreNegativeZ | ( | void | ) | const |
const Vector3& ParticleUniverse::ForceFieldAffector::getMovement | ( | void | ) | const |
Get/Set Movement
Real ParticleUniverse::ForceFieldAffector::getMovementFrequency | ( | void | ) | const |
Get/Set Movement frequency
ushort ParticleUniverse::ForceFieldAffector::getOctaves | ( | void | ) | const |
Get/Set scale Octaves
double ParticleUniverse::ForceFieldAffector::getPersistence | ( | void | ) | const |
Get/Set scale Persistence
Real ParticleUniverse::ForceFieldAffector::getScaleForce | ( | void | ) | const |
Get/Set scale Force
Vector3 ParticleUniverse::ForceFieldAffector::getWorldSize | ( | void | ) | const |
Get/Set scale worldSize
void ParticleUniverse::ForceFieldAffector::setAmplitude | ( | double | amplitude | ) |
void ParticleUniverse::ForceFieldAffector::setDelta | ( | Real | delta | ) |
void ParticleUniverse::ForceFieldAffector::setForceFieldSize | ( | unsigned int | forceFieldSize | ) |
void ParticleUniverse::ForceFieldAffector::setForceFieldType | ( | const ForceField::ForceFieldType | forceFieldType | ) |
void ParticleUniverse::ForceFieldAffector::setFrequency | ( | double | frequency | ) |
void ParticleUniverse::ForceFieldAffector::setIgnoreNegativeX | ( | bool | ignoreNegativeX | ) |
void ParticleUniverse::ForceFieldAffector::setIgnoreNegativeY | ( | bool | ignoreNegativeY | ) |
void ParticleUniverse::ForceFieldAffector::setIgnoreNegativeZ | ( | bool | ignoreNegativeZ | ) |
void ParticleUniverse::ForceFieldAffector::setMovement | ( | const Vector3 & | movement | ) |
void ParticleUniverse::ForceFieldAffector::setMovementFrequency | ( | Real | movementFrequency | ) |
void ParticleUniverse::ForceFieldAffector::setOctaves | ( | ushort | octaves | ) |
void ParticleUniverse::ForceFieldAffector::setPersistence | ( | double | persistence | ) |
void ParticleUniverse::ForceFieldAffector::setScaleForce | ( | Real | scaleForce | ) |
void ParticleUniverse::ForceFieldAffector::setWorldSize | ( | const Vector3 & | worldSize | ) |
void ParticleUniverse::ForceFieldAffector::suppressGeneration | ( | bool | suppress | ) |
Suppress (re)generation of the forcefield everytime an attribute is changed.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |