17#ifndef __gui_mrview_colourbars_h__
18#define __gui_mrview_colourbars_h__
64 const size_t ncolourbars) {
65 current_position = position;
66 current_projection = projection;
67 current_count = ncolourbars;
68 current_colourbar_index = 0;
71 void render (
size_t colourmap,
bool inverted,
72 float local_min_value,
float local_max_value,
73 float global_min_value,
float global_range,
74 Eigen::Array3f colour = { NAN, NAN, NAN });
80 current_projection =
nullptr;
82 current_colourbar_index = 0;
96 static size_t max_n_rows;
99 size_t current_count, current_colourbar_index;
const GLfloat colourbar_padding
size_t current_colourmap_index
const GLfloat text_offset
GL::VertexArrayObject VAO
GL::Shader::Program program
void render(size_t colourmap, bool inverted, float local_min_value, float local_max_value, float global_min_value, float global_range, Eigen::Array3f colour={ NAN, NAN, NAN })
void begin(Projection *projection, const Position position, const size_t ncolourbars)
GL::Shader::Program frame_program
void setup(size_t index, bool inverted)
bool current_colourmap_inverted
void render(const Displayable &object, bool inverted)
size_t colourmap_index_from_menu(size_t n)