#include <bgui_bargraph_clipon_tableau.h>
Public Member Functions | |
bgui_bargraph_clipon_tableau (vgui_easy2D_tableau_sptr const &easy) | |
Constructor. | |
~bgui_bargraph_clipon_tableau () | |
Destructor. | |
void | set_color_vector (vcl_vector< unsigned char > const &colors) |
Set the color vector, 0-7 color code. | |
void | update (vcl_vector< float > const &bars, const bool fixed=false, const float scale=1.0) |
Update the data vector. Defaults determine size of plot from window. | |
vcl_string | type_name () const |
Return the name of this tableau. | |
void | clear () |
Clear the data. | |
void | ref () |
void | unref () |
int | get_references () const |
bool | is_referenced () const |
Private Attributes | |
int | left_offset_ |
int | top_offset_ |
int | graph_width_ |
int | graph_height_ |
int | nominal_bar_width_ |
vcl_vector< vcl_vector< float > > | color_values_ |
vcl_vector< unsigned char > | color_index_ |
vcl_vector< float > | bars_ |
vgui_easy2D_tableau_sptr | easy_ |
vcl_vector < vgui_soview2D_lineseg * > | bar_plot_ |
Definition at line 21 of file bgui_bargraph_clipon_tableau.h.
bgui_bargraph_clipon_tableau::bgui_bargraph_clipon_tableau | ( | vgui_easy2D_tableau_sptr const & | easy | ) |
Constructor.
Definition at line 13 of file bgui_bargraph_clipon_tableau.cxx.
bgui_bargraph_clipon_tableau::~bgui_bargraph_clipon_tableau | ( | ) |
Destructor.
Definition at line 50 of file bgui_bargraph_clipon_tableau.cxx.
void bgui_bargraph_clipon_tableau::clear | ( | ) |
Clear the data.
Definition at line 120 of file bgui_bargraph_clipon_tableau.cxx.
void bgui_bargraph_clipon_tableau::set_color_vector | ( | vcl_vector< unsigned char > const & | colors | ) |
Set the color vector, 0-7 color code.
Definition at line 114 of file bgui_bargraph_clipon_tableau.cxx.
vcl_string bgui_bargraph_clipon_tableau::type_name | ( | ) | const [inline] |
Return the name of this tableau.
Definition at line 36 of file bgui_bargraph_clipon_tableau.h.
void bgui_bargraph_clipon_tableau::update | ( | vcl_vector< float > const & | bars, |
const bool | fixed = false , |
||
const float | scale = 1.0 |
||
) |
Update the data vector. Defaults determine size of plot from window.
Definition at line 59 of file bgui_bargraph_clipon_tableau.cxx.
vcl_vector<vgui_soview2D_lineseg*> bgui_bargraph_clipon_tableau::bar_plot_ [private] |
Definition at line 50 of file bgui_bargraph_clipon_tableau.h.
vcl_vector<float> bgui_bargraph_clipon_tableau::bars_ [private] |
Definition at line 48 of file bgui_bargraph_clipon_tableau.h.
vcl_vector<unsigned char> bgui_bargraph_clipon_tableau::color_index_ [private] |
Definition at line 47 of file bgui_bargraph_clipon_tableau.h.
vcl_vector<vcl_vector<float> > bgui_bargraph_clipon_tableau::color_values_ [private] |
Definition at line 46 of file bgui_bargraph_clipon_tableau.h.
Definition at line 49 of file bgui_bargraph_clipon_tableau.h.
int bgui_bargraph_clipon_tableau::graph_height_ [private] |
Definition at line 44 of file bgui_bargraph_clipon_tableau.h.
int bgui_bargraph_clipon_tableau::graph_width_ [private] |
Definition at line 43 of file bgui_bargraph_clipon_tableau.h.
int bgui_bargraph_clipon_tableau::left_offset_ [private] |
Definition at line 41 of file bgui_bargraph_clipon_tableau.h.
int bgui_bargraph_clipon_tableau::nominal_bar_width_ [private] |
Definition at line 45 of file bgui_bargraph_clipon_tableau.h.
int bgui_bargraph_clipon_tableau::top_offset_ [private] |
Definition at line 42 of file bgui_bargraph_clipon_tableau.h.