40 #ifndef H_GEO_IMAGE_TYPES_COLORMAP_H
41 #define H_GEO_IMAGE_TYPES_COLORMAP_H
88 return cells_[index] ;
99 return cells_[index] ;
#define geo_assert(x)
Verifies that a condition is met.
void color_ramp_rgb(index_t index1, const Color &c1, index_t index2, const Color &c2)
Make a color linearly interpolate two values between two given indices.
const ColorCell & color_cell(index_t index) const
Gets a ColorCell by index.
index_t size() const
Gets the size.
~Colormap() override
Colormap destructor.
ColorCell & color_cell(index_t index)
Gets a ColorCell by index.
void set_color(index_t index, float r, float g, float b, float a)
Sets a color by index and components.
void set_color(index_t index, float r, float g, float b)
Sets a color by index and components.
void color_ramp_component(index_t component, index_t index1, Numeric::uint8 val1, index_t index2, Numeric::uint8 val2)
Make a color component linearly interpolate two values between two given indices.
Colormap(index_t size_in=256)
Colormap constructor.
GenColor< Numeric::uint8 > ColorCell
Type of each cell of the Colormap.
void color_ramp_rgba(index_t index1, const Color &c1, index_t index2, const Color &c2)
Make a color linearly interpolate two values between two given indices.
Base class for reference-counted objects.
Base class of reference-counted objects, to be used with smart pointers.
Common include file, providing basic definitions. Should be included before anything else by all head...
Global Vorpaline namespace.
SmartPointer< Colormap > Colormap_var
An automatic reference-counted pointer to a Colormap.
geo_index_t index_t
The type for storing and manipulating indices.
Pointers with automatic reference counting.