#include <histogramwindow.h>
Inherits BC_Window.

Public Member Functions | |
| HistogramWindow (HistogramMain *plugin, int x, int y) | |
| ~HistogramWindow () | |
| int | create_objects () |
| int | close_event () |
| void | update (int do_input) |
| void | update_mode () |
| void | update_canvas () |
| void | draw_canvas_overlay () |
| void | update_input () |
| void | update_output () |
| int | keypress_event () |
| void | get_point_extents (HistogramPoint *current, int *x1, int *y1, int *x2, int *y2, int *x, int *y) |
Data Fields | |
| HistogramSlider * | output |
| HistogramAuto * | automatic |
| HistogramMode * | mode_v |
| HistogramMode * | mode_r |
| HistogramMode * | mode_g |
| HistogramMode * | mode_b |
| HistogramOutputText * | output_min |
| HistogramOutputText * | output_max |
| HistogramOutputText * | threshold |
| HistogramInputText * | input_x |
| HistogramInputText * | input_y |
| HistogramCanvas * | canvas |
| HistogramMain * | plugin |
| int | canvas_w |
| int | canvas_h |
| int | title1_x |
| int | title2_x |
| int | title3_x |
| int | title4_x |
| BC_Pixmap * | max_picon |
| BC_Pixmap * | mid_picon |
| BC_Pixmap * | min_picon |
| HistogramPlot * | plot |
| HistogramSplit * | split |
Definition at line 141 of file histogramwindow.h.
| HistogramWindow::HistogramWindow | ( | HistogramMain * | plugin, | |
| int | x, | |||
| int | y | |||
| ) |
Definition at line 17 of file histogramwindow.C.
| HistogramWindow::~HistogramWindow | ( | ) |
Definition at line 32 of file histogramwindow.C.
| int HistogramWindow::create_objects | ( | ) |
Definition at line 43 of file histogramwindow.C.
References _, BC_WindowBase::add_subwindow(), automatic, BC_WindowBase::BC_Pixmap, BC_WindowBase::BC_Title, canvas, canvas_h, canvas_w, BC_TumbleTextBox::create_objects(), draw_canvas_overlay(), BC_WindowBase::flash(), BC_WindowBase::get_h(), BC_WindowBase::get_text_width(), BC_TumbleTextBox::get_w(), BC_WindowBase::get_w(), input_x, input_y, max_picon, max_picon_image, MEDIUMFONT, mid_picon, mid_picon_image, min_picon, min_picon_image, HistogramMain::mode, mode_b, mode_g, mode_r, mode_v, output, output_max, output_min, plot, plugin, BC_WindowBase::show_window(), split, HistogramMain::tabulate_curve(), threshold, BC_WindowBase::title, title1_x, title2_x, title3_x, title4_x, HistogramSlider::update(), BC_WindowBase::x, and BC_WindowBase::y.

| int HistogramWindow::close_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
| void HistogramWindow::update | ( | int | do_input | ) |
Definition at line 227 of file histogramwindow.C.
References automatic, plugin, threshold, BC_TumbleTextBox::update(), BC_Toggle::update(), update_input(), update_mode(), and update_output().

| void HistogramWindow::update_mode | ( | ) |
Definition at line 250 of file histogramwindow.C.
References HistogramMain::mode, mode_b, mode_g, mode_r, mode_v, HistogramOutputText::output, output_max, output_min, plot, plugin, split, and BC_Toggle::update().
Referenced by update().

| void HistogramWindow::update_canvas | ( | ) |
Definition at line 325 of file histogramwindow.C.
References HistogramMain::accum, canvas, canvas_h, canvas_w, BC_WindowBase::draw_box(), draw_canvas_overlay(), BC_WindowBase::draw_line(), BC_WindowBase::flash(), MAX, HistogramMain::mode, plugin, BC_WindowBase::set_color(), and HistogramMain::tabulate_curve().
Referenced by HistogramCanvas::button_press_event(), HistogramCanvas::button_release_event(), HistogramCanvas::cursor_motion_event(), HistogramInputText::handle_event(), and keypress_event().

| void HistogramWindow::draw_canvas_overlay | ( | ) |
Definition at line 262 of file histogramwindow.C.
References HistogramMain::calculate_smooth(), canvas, canvas_h, canvas_w, HistogramMain::current_point, BC_WindowBase::draw_box(), BC_WindowBase::draw_line(), BC_WindowBase::draw_rectangle(), get_point_extents(), BC_WindowBase::get_x(), input, HistogramMain::mode, NEXT, output, plugin, BC_WindowBase::set_color(), title2_x, title3_x, BC_WindowBase::x, and BC_WindowBase::y.
Referenced by create_objects(), and update_canvas().

| void HistogramWindow::update_input | ( | ) |
Definition at line 237 of file histogramwindow.C.
References input_x, input_y, and HistogramInputText::update().
Referenced by HistogramCanvas::button_press_event(), HistogramCanvas::button_release_event(), HistogramCanvas::cursor_motion_event(), keypress_event(), and update().

| void HistogramWindow::update_output | ( | ) |
Definition at line 243 of file histogramwindow.C.
References HistogramMain::mode, output, output_max, output_min, plugin, BC_TumbleTextBox::update(), and HistogramSlider::update().
Referenced by HistogramSlider::cursor_motion_event(), and update().

| int HistogramWindow::keypress_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 206 of file histogramwindow.C.
References BACKSPACE, HistogramMain::current_point, DELETE, BC_WindowBase::get_keypress(), HistogramMain::mode, plugin, PluginClient::send_configure_change(), update_canvas(), and update_input().

| void HistogramWindow::get_point_extents | ( | HistogramPoint * | current, | |
| int * | x1, | |||
| int * | y1, | |||
| int * | x2, | |||
| int * | y2, | |||
| int * | x, | |||
| int * | y | |||
| ) |
Definition at line 374 of file histogramwindow.C.
References canvas_h, canvas_w, HistogramPoint::x, and HistogramPoint::y.
Referenced by HistogramCanvas::cursor_motion_event(), and draw_canvas_overlay().
Definition at line 164 of file histogramwindow.h.
Referenced by create_objects(), draw_canvas_overlay(), and update_output().
Definition at line 166 of file histogramwindow.h.
Referenced by create_objects(), and update_mode().
Definition at line 166 of file histogramwindow.h.
Referenced by create_objects(), and update_mode().
Definition at line 166 of file histogramwindow.h.
Referenced by create_objects(), and update_mode().
Definition at line 166 of file histogramwindow.h.
Referenced by create_objects(), and update_mode().
Definition at line 167 of file histogramwindow.h.
Referenced by HistogramMain::calculate_linear(), create_objects(), HistogramMain::handle_opengl(), update_mode(), and update_output().
Definition at line 168 of file histogramwindow.h.
Referenced by HistogramMain::calculate_linear(), create_objects(), update_mode(), and update_output().
Definition at line 169 of file histogramwindow.h.
Referenced by HistogramMain::calculate_automatic(), create_objects(), and update().
Definition at line 170 of file histogramwindow.h.
Referenced by create_objects(), and update_input().
Definition at line 171 of file histogramwindow.h.
Referenced by create_objects(), and update_input().
Definition at line 172 of file histogramwindow.h.
Referenced by create_objects(), draw_canvas_overlay(), and update_canvas().
Definition at line 173 of file histogramwindow.h.
Referenced by create_objects(), draw_canvas_overlay(), keypress_event(), update(), update_canvas(), update_mode(), and update_output().
Definition at line 174 of file histogramwindow.h.
Referenced by HistogramCanvas::button_press_event(), create_objects(), draw_canvas_overlay(), get_point_extents(), and update_canvas().
Definition at line 175 of file histogramwindow.h.
Referenced by HistogramCanvas::button_press_event(), create_objects(), draw_canvas_overlay(), get_point_extents(), and update_canvas().
Definition at line 177 of file histogramwindow.h.
Referenced by create_objects(), and draw_canvas_overlay().
Definition at line 178 of file histogramwindow.h.
Referenced by create_objects(), and draw_canvas_overlay().
Definition at line 180 of file histogramwindow.h.
Referenced by create_objects(), and HistogramSlider::update().
Definition at line 180 of file histogramwindow.h.
Referenced by HistogramSlider::button_press_event(), and create_objects().
Definition at line 180 of file histogramwindow.h.
Referenced by create_objects(), and HistogramSlider::update().
Definition at line 181 of file histogramwindow.h.
Referenced by create_objects(), and update_mode().
Definition at line 182 of file histogramwindow.h.
Referenced by create_objects(), and update_mode().
1.5.5