#include <bgui_range_adjuster_tableau.h>
Public Member Functions | |
bgui_range_adjuster_tableau (const char *n="unnamed") | |
Constructor takes all the labels used on the graph. | |
bgui_range_adjuster_tableau (vgui_image_tableau_sptr const &it, const char *n="unnamed") | |
bgui_range_adjuster_tableau (vgui_tableau_sptr const &t, const char *n="unnamed") | |
~bgui_range_adjuster_tableau () | |
Returns the type of this tableau ('bgui_range_adjuster_tableau'). | |
bool | update (vil_image_resource_sptr const &ir) |
Update the histogram from image resource. | |
bool | update (vil1_memory_image_of< vil1_rgb< unsigned char > > &img) |
Update the histogram from image. | |
bool | update () |
Update the histogram from client. | |
bool | update (const double min, const double max, vcl_vector< double > const &hist) |
Update the data from a histogram. | |
double | low_range_limit (const double frac) |
Low range limit histogram area fraction. | |
double | upper_range_limit (const double frac) |
Upper range limit histogram area fraction. | |
void | set_hardware (bool hardware) |
Use OpenGL Hardware mapping. | |
virtual bool | handle (const vgui_event &) |
Handles all events for this tableau. | |
void | clear () |
Clear the data. | |
vcl_string | name () const |
vcl_string | file_name () const |
vcl_string | pretty_name () const |
vcl_string | type_name () const |
void | set_image (vcl_string const &image) |
void | set_child (vgui_tableau_sptr const &) |
void | set_foreground (float r, float g, float b, float a=1.0f) |
void | set_line_width (float w) |
void | set_point_radius (float r) |
void | add (vgui_soview2D *) |
virtual void | add (vgui_soview *) |
vgui_soview2D_point * | add_point (float x, float y) |
vgui_soview2D_lineseg * | add_line (float x0, float y0, float x1, float y1) |
vgui_soview2D_infinite_line * | add_infinite_line (float a, float b, float c) |
vgui_soview2D_circle * | add_circle (float x, float y, float r) |
vgui_soview2D_ellipse * | add_ellipse (float x, float y, float w, float h, float phi) |
vgui_soview2D_point * | add_point_3dv (double const p[3]) |
vgui_soview2D_lineseg * | add_line_3dv_3dv (double const p1[3], double const p2[3]) |
vgui_soview2D_infinite_line * | add_infinite_line_3dv (double const l[3]) |
vgui_soview2D_circle * | add_circle_3dv (double const point[3], float r) |
vgui_soview2D_linestrip * | add_linestrip (unsigned n, float const *x, float const *y) |
vgui_soview2D_polygon * | add_polygon (unsigned n, float const *x, float const *y) |
void | remove (vgui_soview *vso) |
virtual void | remove (vgui_soview *&) |
vcl_vector< vgui_soview * > const & | get_all () const |
vgui_image_tableau_sptr | get_image_tableau () const |
void | print_psfile (vcl_string filename, int reduction_factor, bool print_geom_objs, int wd=-1, int ht=-1) |
vgui_soview2D_image * | add_image (float x, float y, vil_image_view_base const &img) |
vgui_soview2D_image * | add_image (float x, float y, vil1_image const &img) |
bool | motion (int x, int y) |
bool | mouse_down (int x, int y, vgui_button button, vgui_modifier modifier) |
void | draw_soviews_render () |
void | draw_soviews_select () |
bool | is_selected (unsigned iden) |
vcl_vector< unsigned > const & | get_selected () const |
vcl_vector< vgui_soview * > | get_selected_soviews () const |
bool | select (unsigned iden) |
bool | deselect (unsigned iden) |
bool | deselect_all () |
bool | is_highlighted (unsigned iden) const |
unsigned | get_highlighted () const |
vgui_soview * | get_highlighted_soview () |
bool | highlight (unsigned iden) |
void | set_current_grouping (vcl_string t_name) |
vcl_string | get_current_grouping () const |
vgui_displaybase_tableau_grouping * | get_grouping_ptr (vcl_string t_name) |
vcl_vector< vcl_string > | get_grouping_names () |
void | set_selection_callback (vgui_displaybase_tableau_selection_callback *cb) |
vcl_vector< unsigned > | get_all_ids () const |
vgui_soview * | contains_hit (vcl_vector< unsigned > hit) |
unsigned | get_id () const |
void | get_parents (vcl_vector< vgui_tableau_sptr > *out) const |
void | get_children (vcl_vector< vgui_tableau_sptr > *out) const |
vgui_tableau_sptr | get_child (unsigned i) const |
virtual bool | add_child (vgui_tableau_sptr const &) |
virtual bool | remove_child (vgui_tableau_sptr const &) |
virtual bool | notify_replaced_child (vgui_tableau_sptr const &old_child, vgui_tableau_sptr const &new_child) |
virtual void | add_popup (vgui_menu &) |
virtual void | get_popup (vgui_popup_params const &, vgui_menu &) |
virtual void | post_message (char const *, void const *) |
virtual void | post_redraw () |
virtual void | post_overlay_redraw () |
virtual void | post_idle_request () |
virtual bool | get_bounding_box (float low[3], float high[3]) const |
virtual bool | draw () |
virtual bool | mouse_up (int x, int y, vgui_button, vgui_modifier) |
virtual bool | key_press (int x, int y, vgui_key, vgui_modifier) |
virtual bool | help () |
virtual bool | idle () |
void | ref () const |
void | unref () const |
Static Public Member Functions | |
static void | get_all (vcl_vector< vgui_tableau_sptr > *out) |
static bool | exists (vgui_tableau_sptr const &) |
Public Attributes | |
GLenum | gl_mode |
Protected Attributes | |
vgui_parent_child_link | image_slot |
vgui_image_tableau_sptr | image_image |
vcl_string | name_ |
vgui_style_sptr | style_ |
vcl_vector< vgui_soview * > | objects |
vcl_map< vcl_string, vgui_displaybase_tableau_grouping > | groupings |
vcl_string | current_grouping |
vcl_vector< unsigned > | selections |
unsigned | highlighted |
int | gl_display_list |
vgui_displaybase_tableau_selection_callback * | cb_ |
Private Member Functions | |
void | init () |
virtual. | |
void | draw_box () |
void | draw_histogram () |
vgui_image_tableau_sptr | get_child_image_tableau () |
int | map_val_to_display (const double val) |
map the data value of histogrammed intensity to display coordinates. | |
double | map_display_to_val (const int display_x) |
map the data value of histogrammed intensity to display coordinates. | |
void | draw_stretch_bars () |
draw stretch bars. | |
float | screen_to_bar (const float sx) |
float | bar_to_screen (const float bx) |
void | adjust_min_bar (const float x) |
void | adjust_max_bar (const float x) |
Private Attributes | |
double | min_ |
double | max_ |
bool | hardware_ |
vgui_soview2D_lineseg * | min_bar_ |
vgui_soview2D_lineseg * | max_bar_ |
int | left_offset_ |
int | top_offset_ |
int | graph_width_ |
int | graph_height_ |
vcl_vector< float > | xpoints_ |
List of points. | |
vcl_vector< float > | ypoints_ |
vgui_soview2D_linestrip * | plot_ |
vcl_vector< double > | data_ |
bsta_histogram< double > | hist_ |
Definition at line 21 of file bgui_range_adjuster_tableau.h.
bgui_range_adjuster_tableau::bgui_range_adjuster_tableau | ( | const char * | n = "unnamed" | ) |
Constructor takes all the labels used on the graph.
Definition at line 52 of file bgui_range_adjuster_tableau.cxx.
bgui_range_adjuster_tableau::bgui_range_adjuster_tableau | ( | vgui_image_tableau_sptr const & | it, |
const char * | n = "unnamed" |
||
) |
Definition at line 65 of file bgui_range_adjuster_tableau.cxx.
bgui_range_adjuster_tableau::bgui_range_adjuster_tableau | ( | vgui_tableau_sptr const & | t, |
const char * | n = "unnamed" |
||
) |
Definition at line 58 of file bgui_range_adjuster_tableau.cxx.
bgui_range_adjuster_tableau::~bgui_range_adjuster_tableau | ( | ) |
Returns the type of this tableau ('bgui_range_adjuster_tableau').
vcl_string type_name() const { return "bgui_range_adjuster_tableau";} Destructor.
Definition at line 74 of file bgui_range_adjuster_tableau.cxx.
void bgui_range_adjuster_tableau::adjust_max_bar | ( | const float | x | ) | [private] |
Definition at line 292 of file bgui_range_adjuster_tableau.cxx.
void bgui_range_adjuster_tableau::adjust_min_bar | ( | const float | x | ) | [private] |
Definition at line 270 of file bgui_range_adjuster_tableau.cxx.
float bgui_range_adjuster_tableau::bar_to_screen | ( | const float | bx | ) | [private] |
Definition at line 264 of file bgui_range_adjuster_tableau.cxx.
void bgui_range_adjuster_tableau::clear | ( | ) | [virtual] |
Clear the data.
Reimplemented from vgui_easy2D_tableau.
Definition at line 367 of file bgui_range_adjuster_tableau.cxx.
void bgui_range_adjuster_tableau::draw_box | ( | ) | [private] |
Definition at line 24 of file bgui_range_adjuster_tableau.cxx.
void bgui_range_adjuster_tableau::draw_histogram | ( | ) | [private] |
Definition at line 215 of file bgui_range_adjuster_tableau.cxx.
void bgui_range_adjuster_tableau::draw_stretch_bars | ( | ) | [private] |
draw stretch bars.
Definition at line 102 of file bgui_range_adjuster_tableau.cxx.
vgui_image_tableau_sptr bgui_range_adjuster_tableau::get_child_image_tableau | ( | ) | [private] |
Definition at line 246 of file bgui_range_adjuster_tableau.cxx.
bool bgui_range_adjuster_tableau::handle | ( | const vgui_event & | event | ) | [virtual] |
Handles all events for this tableau.
Reimplemented from vgui_easy2D_tableau.
Definition at line 317 of file bgui_range_adjuster_tableau.cxx.
void bgui_range_adjuster_tableau::init | ( | ) | [private] |
virtual.
Definition at line 41 of file bgui_range_adjuster_tableau.cxx.
double bgui_range_adjuster_tableau::low_range_limit | ( | const double | frac | ) |
Low range limit histogram area fraction.
double bgui_range_adjuster_tableau::map_display_to_val | ( | const int | display_x | ) | [private] |
map the data value of histogrammed intensity to display coordinates.
Definition at line 90 of file bgui_range_adjuster_tableau.cxx.
int bgui_range_adjuster_tableau::map_val_to_display | ( | const double | val | ) | [private] |
map the data value of histogrammed intensity to display coordinates.
Definition at line 79 of file bgui_range_adjuster_tableau.cxx.
float bgui_range_adjuster_tableau::screen_to_bar | ( | const float | sx | ) | [private] |
Definition at line 259 of file bgui_range_adjuster_tableau.cxx.
void bgui_range_adjuster_tableau::set_hardware | ( | bool | hardware | ) | [inline] |
Use OpenGL Hardware mapping.
Definition at line 60 of file bgui_range_adjuster_tableau.h.
bool bgui_range_adjuster_tableau::update | ( | vil_image_resource_sptr const & | r | ) |
Update the histogram from image resource.
Currently handle a few useful cases
Definition at line 120 of file bgui_range_adjuster_tableau.cxx.
bool bgui_range_adjuster_tableau::update | ( | vil1_memory_image_of< vil1_rgb< unsigned char > > & | img | ) |
Update the histogram from image.
Definition at line 209 of file bgui_range_adjuster_tableau.cxx.
bool bgui_range_adjuster_tableau::update | ( | ) |
Update the histogram from client.
update from child.
Definition at line 186 of file bgui_range_adjuster_tableau.cxx.
bool bgui_range_adjuster_tableau::update | ( | const double | min, |
const double | max, | ||
vcl_vector< double > const & | hist | ||
) |
Update the data from a histogram.
Definition at line 195 of file bgui_range_adjuster_tableau.cxx.
double bgui_range_adjuster_tableau::upper_range_limit | ( | const double | frac | ) |
Upper range limit histogram area fraction.
vcl_vector<double> bgui_range_adjuster_tableau::data_ [private] |
Definition at line 96 of file bgui_range_adjuster_tableau.h.
int bgui_range_adjuster_tableau::graph_height_ [private] |
Definition at line 92 of file bgui_range_adjuster_tableau.h.
int bgui_range_adjuster_tableau::graph_width_ [private] |
Definition at line 91 of file bgui_range_adjuster_tableau.h.
bool bgui_range_adjuster_tableau::hardware_ [private] |
Definition at line 86 of file bgui_range_adjuster_tableau.h.
bsta_histogram<double> bgui_range_adjuster_tableau::hist_ [private] |
Definition at line 97 of file bgui_range_adjuster_tableau.h.
int bgui_range_adjuster_tableau::left_offset_ [private] |
Definition at line 89 of file bgui_range_adjuster_tableau.h.
double bgui_range_adjuster_tableau::max_ [private] |
Definition at line 85 of file bgui_range_adjuster_tableau.h.
Definition at line 88 of file bgui_range_adjuster_tableau.h.
double bgui_range_adjuster_tableau::min_ [private] |
Definition at line 84 of file bgui_range_adjuster_tableau.h.
Definition at line 87 of file bgui_range_adjuster_tableau.h.
Definition at line 95 of file bgui_range_adjuster_tableau.h.
int bgui_range_adjuster_tableau::top_offset_ [private] |
Definition at line 90 of file bgui_range_adjuster_tableau.h.
vcl_vector<float> bgui_range_adjuster_tableau::xpoints_ [private] |
List of points.
Definition at line 94 of file bgui_range_adjuster_tableau.h.
vcl_vector<float> bgui_range_adjuster_tableau::ypoints_ [private] |
Definition at line 94 of file bgui_range_adjuster_tableau.h.