Go to the documentation of this file.
56 double min_col,
double max_col,
58 double min_value,
double max_value,
62 double label_font_size = .05);
71 double col_min,
double col_max,
double value_min,
double value_max);
87 double min_col = .0,
double max_col = 1.0,
89 double min_value = .0,
double max_value = 1.0,
93 double label_font_size = .05);
std::shared_ptr< CColorBar > Ptr
TColormap
Different colormaps for use in mrpt::img::colormap()
std::string m_label_format
mrpt::img::TColormap m_colormap
void setColormap(const mrpt::img::TColormap colormap)
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.
A renderizable object suitable for rendering with OpenGL's display lists.
bool m_disable_depth_test
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void render_dl() const override
Render.
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...
void enableDepthTest(bool enable)
static Ptr Create(Args &&... args)
GLenum GLsizei GLsizei height
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.
@ cmGRAYSCALE
Undefined colormap [New in MRPT 2.0].
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void setColorAndValueLimits(double col_min, double col_max, double value_min, double value_max)
GLsizei const GLchar ** string
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |