OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
opencover::ColorBar Class Reference

#include <ColorBar.h>

Inheritance diagram for opencover::ColorBar:
Inheritance graph
[legend]
Collaboration diagram for opencover::ColorBar:
Collaboration graph
[legend]

Public Member Functions

 ColorBar (const char *name, char *species, float min, float max, int numColors, float *r, float *g, float *b, float *a)
 
 ColorBar (vrui::coSubMenuItem *colorsButton, vrui::coRowMenu *moduleMenu, const char *name, char *species, float min, float max, int numColors, float *r, float *g, float *b, float *a, int tabID=-1)
 
 ~ColorBar ()
 destructor More...
 
void update (const char *species, float min, float max, int numColors, float *r, float *g, float *b, float *a)
 
void setName (const char *name)
 
const char * getName ()
 
void setVisible (bool)
 
bool isVisible ()
 
void addInter (opencover::coInteractor *inter)
 
- Public Member Functions inherited from vrui::coMenuListener
virtual ~coMenuListener ()
 
virtual void menuPressEvent (coMenuItem *menuItem)
 
- Public Member Functions inherited from opencover::coTUIListener
virtual ~coTUIListener ()
 
virtual void tabletEvent (coTUIElement *tUIItem)
 
virtual void tabletSelectEvent (coTUIElement *tUIItem)
 
virtual void tabletChangeModeEvent (coTUIElement *tUIItem)
 
virtual void tabletFindEvent (coTUIElement *tUIItem)
 
virtual void tabletLoadFilesEvent (char *nodeName)
 
virtual void tabletReleaseEvent (coTUIElement *tUIItem)
 
virtual void tabletCurrentEvent (coTUIElement *tUIItem)
 
virtual void tabletDataEvent (coTUIElement *tUIItem, covise::TokenBuffer &tb)
 

Static Public Member Functions

static void parseAttrib (const char *attrib, char *&species, float &min, float &max, int &numColors, float *&r, float *&g, float *&b, float *&a)
 

Constructor & Destructor Documentation

opencover::ColorBar::ColorBar ( const char *  name,
char *  species,
float  min,
float  max,
int  numColors,
float *  r,
float *  g,
float *  b,
float *  a 
)

constructor create create containers, texture and labels

Parameters
namethe name of the colorbar, identical with module name, eg, g, Colors_1
speciesdata species name, currently not displayed
mindata minimum
maxdata maximum
numColorsnumber of different colors in colorbar
rred colors
ggreen colors
bblue colors
ared colors
opencover::ColorBar::ColorBar ( vrui::coSubMenuItem colorsButton,
vrui::coRowMenu moduleMenu,
const char *  name,
char *  species,
float  min,
float  max,
int  numColors,
float *  r,
float *  g,
float *  b,
float *  a,
int  tabID = -1 
)

constructor when the colorbar is not to be opened from the pinboard create create containers, texture and labels

Parameters
colorsButtonthe button that opens the colorbar
moduleMenuthe coRowMenu used instead of the pinboard
speciesdata species name, currently not displayed
mindata minimum
maxdata maximum
numColorsnumber of different colors in colorbar
rred colors
ggreen colors
bblue colors
ared colors
opencover::ColorBar::~ColorBar ( )

destructor

Member Function Documentation

void opencover::ColorBar::addInter ( opencover::coInteractor inter)
const char* opencover::ColorBar::getName ( )

get name

Returns
name the name of the colorbar, identical with module name, eg, g, Colors_1
bool opencover::ColorBar::isVisible ( )
static void opencover::ColorBar::parseAttrib ( const char *  attrib,
char *&  species,
float &  min,
float &  max,
int &  numColors,
float *&  r,
float *&  g,
float *&  b,
float *&  a 
)
static

parseAttrib

Parameters
attribCOLORMAP 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)
void opencover::ColorBar::setName ( const char *  name)

set name

void opencover::ColorBar::setVisible ( bool  )
void opencover::ColorBar::update ( const char *  species,
float  min,
float  max,
int  numColors,
float *  r,
float *  g,
float *  b,
float *  a 
)

colorbar update

Parameters
speciestitle bar content
mindata minimum
maxdata maximum
numColorsnumber of different colors in colorbar
rred colors
ggreen colors
bblue colors
ared colors

The documentation for this class was generated from the following file: