25 #ifndef __COLOUR_GRADIENT_HH__
26 #define __COLOUR_GRADIENT_HH__
33 #include <bias_config.h>
34 #include <Base/Debug/Error.hh>
53 template <
class StorageType>
90 std::vector<StorageType> colourRight);
96 ColourGradient(ColourGradientType mapType,
const StorageType max = 255);
110 void AddColour(
float pos,
const std::vector<StorageType> &colour);
115 void AddRGBColour(
float pos,
118 const StorageType b);
132 void GetColour(
float pos, std::vector<StorageType> &colour);
139 template <
class StructStorageType>
143 std::vector<StructStorageType> colour;
147 unsigned int numChannels_;
150 std::list<GradientStep<StorageType> > gradientSteps_;
155 #endif // __COLOUR_GRADIENT_HH__
Represents a colour gradient.
ColourGradientType
Different types of predefined color gradients that can be generated.