#include <perspective.h>
Inherits BC_Window.

Public Member Functions | |
| PerspectiveWindow (PerspectiveMain *plugin, int x, int y) | |
| ~PerspectiveWindow () | |
| int | create_objects () |
| int | close_event () |
| int | resize_event (int x, int y) |
| void | update_canvas () |
| void | update_mode () |
| void | update_coord () |
| void | calculate_canvas_coords (int &x1, int &y1, int &x2, int &y2, int &x3, int &y3, int &x4, int &y4) |
Data Fields | |
| PerspectiveCanvas * | canvas |
| PerspectiveCoord * | x |
| PerspectiveCoord * | y |
| PerspectiveReset * | reset |
| PerspectiveMode * | mode_perspective |
| PerspectiveMode * | mode_sheer |
| PerspectiveMode * | mode_stretch |
| PerspectiveMain * | plugin |
| PerspectiveDirection * | forward |
| PerspectiveDirection * | reverse |
Definition at line 122 of file perspective.h.
| PerspectiveWindow::PerspectiveWindow | ( | PerspectiveMain * | plugin, | |
| int | x, | |||
| int | y | |||
| ) |
Definition at line 97 of file perspective.C.
| PerspectiveWindow::~PerspectiveWindow | ( | ) |
Definition at line 112 of file perspective.C.
| int PerspectiveWindow::create_objects | ( | ) |
Definition at line 116 of file perspective.C.
References _, BC_WindowBase::add_subwindow(), BC_WindowBase::BC_Title, canvas, BC_TumbleTextBox::create_objects(), CROSS_CURSOR, BC_WindowBase::flush(), forward, PerspectiveMain::get_current_x(), PerspectiveMain::get_current_y(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), mode_perspective, mode_sheer, mode_stretch, AffineEngine::PERSPECTIVE, plugin, reverse, BC_WindowBase::set_cursor(), AffineEngine::SHEER, BC_WindowBase::show_window(), AffineEngine::STRETCH, update_canvas(), x, and y.

| int PerspectiveWindow::close_event | ( | ) | [virtual] |
Reimplemented from BC_WindowBase.
| int PerspectiveWindow::resize_event | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
| void PerspectiveWindow::update_canvas | ( | ) |
Definition at line 197 of file perspective.C.
References BLACK, calculate_canvas_coords(), canvas, BC_WindowBase::clear_box(), DIVISIONS, BC_WindowBase::draw_circle(), BC_WindowBase::draw_disc(), BC_WindowBase::draw_line(), BC_WindowBase::flash(), BC_WindowBase::flush(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), plugin, RADIUS, and BC_WindowBase::set_color().
Referenced by create_objects().

| void PerspectiveWindow::update_mode | ( | ) |
Definition at line 257 of file perspective.C.
References forward, mode_perspective, mode_sheer, mode_stretch, AffineEngine::PERSPECTIVE, plugin, reverse, AffineEngine::SHEER, AffineEngine::STRETCH, and BC_Toggle::update().

| void PerspectiveWindow::update_coord | ( | ) |
Definition at line 266 of file perspective.C.
References PerspectiveMain::get_current_x(), PerspectiveMain::get_current_y(), plugin, BC_TumbleTextBox::update(), x, and y.

| void PerspectiveWindow::calculate_canvas_coords | ( | int & | x1, | |
| int & | y1, | |||
| int & | x2, | |||
| int & | y2, | |||
| int & | x3, | |||
| int & | y3, | |||
| int & | x4, | |||
| int & | y4 | |||
| ) |
Definition at line 272 of file perspective.C.
References canvas, BC_WindowBase::get_h(), BC_WindowBase::get_w(), BC_WindowBase::h, AffineEngine::PERSPECTIVE, plugin, AffineEngine::STRETCH, and BC_WindowBase::w.
Referenced by update_canvas().

Definition at line 143 of file perspective.h.
Referenced by calculate_canvas_coords(), create_objects(), and update_canvas().
Reimplemented from BC_WindowBase.
Definition at line 144 of file perspective.h.
Referenced by create_objects(), and update_coord().
Reimplemented from BC_WindowBase.
Definition at line 144 of file perspective.h.
Referenced by create_objects(), and update_coord().
Definition at line 145 of file perspective.h.
Definition at line 147 of file perspective.h.
Referenced by calculate_canvas_coords(), create_objects(), update_canvas(), update_coord(), and update_mode().
1.5.5