Particle Emitter Class. More...
#include <deParticleEmitterController.h>
Public Member Functions | |
Constructors and Destructors | |
| deParticleEmitterController () | |
| Creates a new controller with range 0 to 1 and the value 0. | |
| ~deParticleEmitterController () | |
| Cleans up the controller. | |
Management | |
| float | GetLower () const |
| Retrieves the lower value. | |
| float | GetUpper () const |
| Retrieves the upper value. | |
| void | SetRange (float lower, float upper) |
| Sets the value range. | |
| float | GetValue () const |
| Retrieves the current value. | |
| void | SetValue (float value) |
| Sets the current value. | |
| void | Increment (float amount) |
| Increments the value. | |
| bool | GetFrozen () const |
| Determines if the controller is frozen. | |
| void | SetFrozen (bool frozen) |
| Sets if the controller is frozen. | |
| bool | GetClamp () const |
| Determines if values passed the range are clamped or wrapped around. | |
| void | SetClamp (bool clamp) |
| Sets if values passed the range are clamped or wrapped around. | |
Particle Emitter Class.
Particle emitter controllers provide the user with control over how the individual particles are cast. Controllers are written in a way that you can use them without having to do scaling or transformation on your own. You can provide a minimum and maximum value matching your setup. The controller takes care of transforming the current value into the proper 0 to 1 range required by the cast curves in parameters. The current value is set by the user and is clamped to the range specified before. The real value is in the range 0 to 1 and is used by the cast curves. The real value can only be read. Furthermore a controller can be frozen. If a controller is frozen the current value can be changed. This is useful to prevent a controller from changing without having to change all code path to account for the frozen state.
| deParticleEmitterController::deParticleEmitterController | ( | ) |
Creates a new controller with range 0 to 1 and the value 0.
| deParticleEmitterController::~deParticleEmitterController | ( | ) |
Cleans up the controller.
| bool deParticleEmitterController::GetClamp | ( | ) | const [inline] |
Determines if values passed the range are clamped or wrapped around.
| bool deParticleEmitterController::GetFrozen | ( | ) | const [inline] |
Determines if the controller is frozen.
| float deParticleEmitterController::GetLower | ( | ) | const [inline] |
Retrieves the lower value.
| float deParticleEmitterController::GetUpper | ( | ) | const [inline] |
Retrieves the upper value.
| float deParticleEmitterController::GetValue | ( | ) | const [inline] |
Retrieves the current value.
| void deParticleEmitterController::Increment | ( | float | amount ) |
Increments the value.
| void deParticleEmitterController::SetClamp | ( | bool | clamp ) |
Sets if values passed the range are clamped or wrapped around.
| void deParticleEmitterController::SetFrozen | ( | bool | frozen ) |
Sets if the controller is frozen.
| void deParticleEmitterController::SetRange | ( | float | lower, |
| float | upper | ||
| ) |
Sets the value range.
| void deParticleEmitterController::SetValue | ( | float | value ) |
Sets the current value.
1.7.2