7#ifndef BALL_VIEW_DATATYPE_COLORMAP_H
8#define BALL_VIEW_DATATYPE_COLORMAP_H
10#ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
14#ifndef BALL_MATHS_VECTOR4_H
29 :
public vector<ColorRGBA>
bool getAlphaBlending() const
Returns true if the alpha channel is interpolated between colors, false otherwise.
vector< Vector4 > interpolation_boundaries_
void createMapJet(const Size color_number)
Create a colormap similar to the "jet" map of matlab.
bool setInterpolationBoundaries(const vector< Vector4 > &boundaries)
void setRange(float min, float max)
Size getNumberOfColors() const
Return the number of elements in our color Map.
void setAlphaBlending(bool blending)
Decides if we should interpolate the alpha channel as well.
void setBaseColors(const ColorRGBA *color_array, Size array_size)
Set the base colors for the interpolation.
void setMinMaxColors(ColorRGBA min, ColorRGBA max)
ColorRGBA & map(float value)
void setNumberOfColors(const Size color_number)
Set the number of colors this Map should contain after interpolation.
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
#define BALL_CREATE(name)
TVector4< float > Vector4