RigsofRods
Soft-body Physics Simulation
|
#include <ColorGradient.h>
Public Types | |
typedef std::pair< Ogre::Vector3, Ogre::Real > | ColorFrame |
Color frame type definition ColorFrame.first: Colour value ColorFrame.second: Position in the gradient [0,1] range. More... | |
Public Member Functions | |
ColorGradient () | |
Constructor. More... | |
~ColorGradient () | |
Destructor. More... | |
void | addCFrame (const ColorFrame &CFrame) |
Add color frame. More... | |
void | clear () |
Clear color gradient. More... | |
const Ogre::Vector3 | getColor (const Ogre::Real &p) const |
Get color value. More... | |
Private Member Functions | |
const bool | _checkBounds () const |
Check bounds. More... | |
Private Attributes | |
bool | mMalFormed |
Mal formed color gradient? More... | |
std::vector< ColorFrame > | CFrameVector |
Color frame vector. More... | |
Definition at line 31 of file ColorGradient.h.
typedef std::pair<Ogre::Vector3, Ogre::Real> SkyX::ColorGradient::ColorFrame |
Color frame type definition ColorFrame.first: Colour value ColorFrame.second: Position in the gradient [0,1] range.
Definition at line 38 of file ColorGradient.h.
SkyX::ColorGradient::ColorGradient | ( | ) |
Constructor.
Definition at line 28 of file ColorGradient.cpp.
SkyX::ColorGradient::~ColorGradient | ( | ) |
Destructor.
Definition at line 33 of file ColorGradient.cpp.
|
private |
Check bounds.
Definition at line 86 of file ColorGradient.cpp.
|
inline |
Add color frame.
CFrame | Color frame |
Definition at line 51 of file ColorGradient.h.
|
inline |
Clear color gradient.
Definition at line 60 of file ColorGradient.h.
const Ogre::Vector3 SkyX::ColorGradient::getColor | ( | const Ogre::Real & | p | ) | const |
Get color value.
p | The gradient point in [0,1] range |
Definition at line 37 of file ColorGradient.cpp.
|
private |
Color frame vector.
Definition at line 81 of file ColorGradient.h.
|
private |
Mal formed color gradient?
Definition at line 78 of file ColorGradient.h.