41 const bool fillBounds;
42 typedef std::map<float, Ogre::ColourValue> ColourFrames;
43 ColourFrames colourFrames;
44 const Ogre::ColourValue minBoundDefaultColour;
45 const Ogre::ColourValue maxBoundDefaultColour;
61 SColourGradient(
const Ogre::ColourValue& overridedMinDefaultColour,
const Ogre::ColourValue& overridedMaxDefaultColour);
74 AddColourFrame(colourFrame.first, colourFrame.second);
82 inline void AddColourFrame(
const float& gradientPosition,
const Ogre::ColourValue& colour)
84 assert((gradientPosition >= 0.0f)&&(gradientPosition<=1.0f));
85 if(colourFrames.find(gradientPosition) == colourFrames.end())
86 colourFrames.insert(ColourFrames::value_type(gradientPosition, colour));
88 colourFrames[gradientPosition] = colour;
104 const Ogre::ColourValue GetColour(
const float& gradientPosition)
const;
110 Ogre::ColourValue Interpolate(
const ColourFrame& minColourFrame,
const ColourFrame& maxColourFrame,
const float& mediumRangeValue)
const;