SO3Engine
|
SO3ColourGradient.cpp
Go to the documentation of this file.
30 SColourGradient::SColourGradient(const bool& fillBoundsWithDefault) : fillBounds(fillBoundsWithDefault),
36 SColourGradient::SColourGradient(const Ogre::ColourValue& overridedMinDefaultColour, const Ogre::ColourValue& overridedMaxDefaultColour) : fillBounds(true),
61 return Interpolate(ColourFrame(0.0f, minBoundDefaultColour), ColourFrame(1.0f, maxBoundDefaultColour), gradientPosition);
81 // Interpolate between default colour frame (0.0, Ogre::ColourValue::Black) and unique colour that is in the gradient.
82 return Interpolate(ColourFrame(0.0f, minBoundDefaultColour), *colourFrames.begin(), gradientPosition);
86 // Interpolate between the unique colour that is in the gradient and default colour frame (1.0, Ogre::ColourValue::White).
87 return Interpolate(*colourFrames.begin(), ColourFrame(1.0f, maxBoundDefaultColour), gradientPosition);
110 // Interpolate between default colour frame (0.0, Ogre::ColourValue::Black) and the colour just above the searched value.
135 Ogre::ColourValue SColourGradient::Interpolate(const ColourFrame& minColourFrame, const ColourFrame& maxColourFrame, const float& mediumRangeValue) const
SColourGradient(const bool &fillBoundsWithDefault=true)
Definition SO3ColourGradient.cpp:30
const Ogre::ColourValue GetColour(const float &gradientPosition) const
Definition SO3ColourGradient.cpp:46
Definition OgreNewt_Debugger.h:21
Definition SO3DataScol.h:38
Generated by 1.9.8