19#ifndef _CO_COLOR_BAR_H_
20#define _CO_COLOR_BAR_H_
25#include <util/coTypes.h>
32class coTexturedBackground;
33class coColoredBackground;
71 std::vector<unsigned char> image_, tickImage_;
75 void makeImage(
int numColors,
const float *r,
const float *g,
const float *b,
const float *a);
77 void makeLabelValues();
92 coColorBar(
const std::string &name,
const std::string &species,
float min,
float max,
int numColors,
const float *r,
const float *g,
const float *b,
const float *a,
bool inMenu=
true);
106 void update(
float min,
float max,
int numColors,
const float *r,
const float *g,
const float *b,
const float *a);
#define MAX_LABELS
Definition: coColorBar.h:22
Definition: ARToolKit.h:33
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coColorBar.h:43
const char * getName() const override
virtual vrui::coUIElement * getUIElement() override
coColorBar(const std::string &name, const std::string &species, float min, float max, int numColors, const float *r, const float *g, const float *b, const float *a, bool inMenu=true)
void update(float min, float max, int numColors, const float *r, const float *g, const float *b, const float *a)
virtual const char * getClassName() const override
get the Element's classname
virtual bool isOfClassName(const char *) const override
check if the Element or any ancestor is this classname
Definition: coColoredBackground.h:24
Definition: coMenuItem.h:45
Container class that aligns its children in a row.
Definition: coRowContainer.h:19
Definition: coTexturedBackground.h:62
Definition: coUIElement.h:53