#include <thresholdwindow.h>
Inherits BC_SubWindow.

Public Types | |
| enum | { NO_OPERATION, DRAG_SELECTION } |
Public Member Functions | |
| ThresholdCanvas (ThresholdMain *plugin, ThresholdWindow *gui, int x, int y, int w, int h) | |
| int | button_press_event () |
| int | button_release_event () |
| int | cursor_motion_event () |
| void | draw () |
Data Fields | |
| ThresholdMain * | plugin |
| ThresholdWindow * | gui |
| int | state |
| int | x1 |
| int | x2 |
| int | center_x |
Definition at line 100 of file thresholdwindow.h.
| anonymous enum |
| ThresholdCanvas::ThresholdCanvas | ( | ThresholdMain * | plugin, | |
| ThresholdWindow * | gui, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
| int ThresholdCanvas::button_press_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 112 of file thresholdwindow.C.
References BC_WindowBase::activate(), center_x, BC_WindowBase::cursor_inside(), DRAG_SELECTION, draw(), BC_WindowBase::get_cursor_x(), BC_WindowBase::get_w(), BC_WindowBase::is_event_win(), plugin, BC_WindowBase::shift_down(), state, x1, and x2.

| int ThresholdCanvas::button_release_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 158 of file thresholdwindow.C.
References DRAG_SELECTION, NO_OPERATION, and state.
| int ThresholdCanvas::cursor_motion_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
Definition at line 168 of file thresholdwindow.C.
References center_x, DRAG_SELECTION, draw(), BC_WindowBase::get_cursor_x(), BC_WindowBase::get_w(), gui, ThresholdWindow::max, ThresholdWindow::min, plugin, PluginClient::send_configure_change(), state, BC_TumbleTextBox::update(), x1, and x2.

| void ThresholdCanvas::draw | ( | ) |
Definition at line 202 of file thresholdwindow.C.
References HistogramEngine::accum, BLACK, BLUE, BC_WindowBase::draw_box(), BC_WindowBase::draw_line(), ThresholdMain::engine, BC_WindowBase::flash(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), pixels, plugin, RED, BC_WindowBase::set_color(), WHITE, x1, and x2.
Referenced by button_press_event(), ThresholdWindow::create_objects(), cursor_motion_event(), ThresholdMax::handle_event(), and ThresholdMin::handle_event().

Definition at line 114 of file thresholdwindow.h.
Referenced by button_press_event(), cursor_motion_event(), and draw().
Definition at line 116 of file thresholdwindow.h.
Referenced by button_press_event(), button_release_event(), cursor_motion_event(), and ThresholdCanvas().
Definition at line 122 of file thresholdwindow.h.
Referenced by button_press_event(), cursor_motion_event(), and draw().
Definition at line 123 of file thresholdwindow.h.
Referenced by button_press_event(), cursor_motion_event(), and draw().
Definition at line 124 of file thresholdwindow.h.
Referenced by button_press_event(), and cursor_motion_event().
1.5.5