54 double col_min,
double col_max,
double value_min,
double value_max);
70 double min_col = .0,
double max_col = 1.0,
72 double min_value = .0,
double max_value = 1.0,
76 double label_font_size = .05);
void colormap(const TColormap &color_map, const float color_index, float &r, float &g, float &b)
Transform a float number in the range [0,1] into RGB components.
TColormap
Different colormaps for use in mrpt::img::colormap()
std::string m_label_format
A renderizable object suitable for rendering with OpenGL's display lists.
void render_dl() const override
Render.
Undefined colormap [New in MRPT 2.0].
GLsizei const GLchar ** string
bool m_disable_depth_test
void setColorAndValueLimits(double col_min, double col_max, double value_min, double value_max)
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void setColormap(const mrpt::img::TColormap colormap)
The namespace for 3D scene representation and rendering.
CColorBar(const mrpt::img::TColormap colormap=mrpt::img::cmGRAYSCALE, double width=0.2, double height=1.0, double min_col=.0, double max_col=1.0, double min_value=.0, double max_value=1.0, const std::string &label_format=std::string("%7.02f"), double label_font_size=.05)
Basic empty constructor.
void enableDepthTest(bool enable)
mrpt::img::TColormap m_colormap
GLenum GLsizei GLsizei height
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const override
Evaluates the bounding box of this object (including possible children) in the coordinate frame of th...