#include <ColorBar.h>
|
static void | parseAttrib (const char *attrib, std::string &species, float &min, float &max, int &numColors, std::vector< float > &r, std::vector< float > &g, std::vector< float > &b, std::vector< float > &a) |
|
◆ ColorBar()
opencover::ColorBar::ColorBar |
( |
ui::Menu * |
menu | ) |
|
constructor when the colorbar is not to be opened from the pinboard create create containers, texture and labels
- Parameters
-
colorsButton | the button that opens the colorbar |
moduleMenu | the coRowMenu used instead of the pinboard |
species | data species name, currently not displayed |
min | data minimum |
max | data maximum |
numColors | number of different colors in colorbar |
r | red colors |
g | green colors |
b | blue colors |
a | red colors |
◆ ~ColorBar()
opencover::ColorBar::~ColorBar |
( |
| ) |
|
◆ addInter()
◆ getName()
const char * opencover::ColorBar::getName |
( |
| ) |
|
get name
- Returns
- name the name of the colorbar, identical with module name, eg, g, Colors_1
◆ hudVisible()
bool opencover::ColorBar::hudVisible |
( |
| ) |
const |
◆ isVisible()
bool opencover::ColorBar::isVisible |
( |
| ) |
|
◆ parseAttrib() [1/2]
void opencover::ColorBar::parseAttrib |
( |
const char * |
attrib | ) |
|
◆ parseAttrib() [2/2]
static void opencover::ColorBar::parseAttrib |
( |
const char * |
attrib, |
|
|
std::string & |
species, |
|
|
float & |
min, |
|
|
float & |
max, |
|
|
int & |
numColors, |
|
|
std::vector< float > & |
r, |
|
|
std::vector< float > & |
g, |
|
|
std::vector< float > & |
b, |
|
|
std::vector< float > & |
a |
|
) |
| |
|
static |
parseAttrib
- Parameters
-
attrib | COLORMAP attribute |
species | get species (the client should delete this pointer) |
min | colormap minimum |
max | colormap maximum |
numColors | number of colors |
r | red (the client should delete this pointer) |
g | green (the client should delete this pointer) |
b | blue (the client should delete this pointer) |
a | alpha (the client should delete this pointer) |
◆ setHudPosition()
void opencover::ColorBar::setHudPosition |
( |
osg::Vec3 |
pos, |
|
|
osg::Vec3 |
hpr, |
|
|
float |
size |
|
) |
| |
◆ setName()
void opencover::ColorBar::setName |
( |
const char * |
name | ) |
|
◆ setVisible()
void opencover::ColorBar::setVisible |
( |
bool |
| ) |
|
◆ update()
void opencover::ColorBar::update |
( |
const std::string & |
species, |
|
|
float |
min, |
|
|
float |
max, |
|
|
int |
numColors, |
|
|
const float * |
r, |
|
|
const float * |
g, |
|
|
const float * |
b, |
|
|
const float * |
a |
|
) |
| |
colorbar update
- Parameters
-
species | title bar content |
min | data minimum |
max | data maximum |
numColors | number of different colors in colorbar |
r | red colors |
g | green colors |
b | blue colors |
a | red colors |
◆ updateInteractor()
void opencover::ColorBar::updateInteractor |
( |
| ) |
|
The documentation for this class was generated from the following file: