CWindowCanvas Class Reference

#include <cwindowgui.h>

Inherits Canvas.

Collaboration diagram for CWindowCanvas:

Collaboration graph
[legend]

Public Member Functions

 CWindowCanvas (MWindow *mwindow, CWindowGUI *gui)
void status_event ()
void zoom_resize_window (float percentage)
void update_zoom (int x, int y, float zoom)
int get_xscroll ()
int get_yscroll ()
float get_zoom ()
int do_eyedrop (int &rerender, int button_press)
int do_mask (int &redraw, int &rerender, int button_press, int cursor_motion, int draw)
void draw_refresh ()
void draw_overlays ()
void draw_safe_regions ()
int cursor_leave_event ()
int cursor_enter_event ()
int cursor_motion_event ()
int button_press_event ()
int button_release_event ()
int get_fullscreen ()
void set_fullscreen (int value)
int test_crop (int button_press, int &redraw)
int test_bezier (int button_press, int &redraw, int &redraw_canvas, int &rerender, int do_camera)
int test_zoom (int &redraw)
void reset_camera ()
void reset_projector ()
void reset_keyframe (int do_camera)
void draw_crophandle (int x, int y)
void zoom_auto ()
void draw_bezier (int do_camera)
void draw_crop ()
void calculate_origin ()
void toggle_controls ()
int get_cwindow_controls ()

Data Fields

MWindowmwindow
CWindowGUIgui

Detailed Description

Definition at line 213 of file cwindowgui.h.


Constructor & Destructor Documentation

CWindowCanvas::CWindowCanvas ( MWindow mwindow,
CWindowGUI gui 
)

Definition at line 848 of file cwindowgui.C.


Member Function Documentation

void CWindowCanvas::status_event (  )  [virtual]

Reimplemented from Canvas.

Definition at line 864 of file cwindowgui.C.

References CWindowGUI::draw_status(), and gui.

Here is the call graph for this function:

void CWindowCanvas::zoom_resize_window ( float  percentage  )  [virtual]

void CWindowCanvas::update_zoom ( int  x,
int  y,
float  zoom 
) [virtual]

int CWindowCanvas::get_xscroll (  )  [virtual]

Reimplemented from Canvas.

Definition at line 894 of file cwindowgui.C.

References EDLSession::cwindow_xscroll, MWindow::edl, mwindow, and EDL::session.

int CWindowCanvas::get_yscroll (  )  [virtual]

Reimplemented from Canvas.

Definition at line 899 of file cwindowgui.C.

References EDLSession::cwindow_yscroll, MWindow::edl, mwindow, and EDL::session.

float CWindowCanvas::get_zoom (  )  [virtual]

Reimplemented from Canvas.

Definition at line 905 of file cwindowgui.C.

References EDLSession::cwindow_zoom, MWindow::edl, mwindow, and EDL::session.

Referenced by cursor_motion_event(), and test_zoom().

int CWindowCanvas::do_eyedrop ( int &  rerender,
int  button_press 
)

int CWindowCanvas::do_mask ( int &  redraw,
int &  rerender,
int  button_press,
int  cursor_motion,
int  draw 
)

Definition at line 982 of file cwindowgui.C.

References _, CWindowGUI::affected_keyframe, CWindowGUI::affected_point, CWindowGUI::affected_track, BC_WindowBase::alt_down(), ArrayList< TYPE >::append(), Track::automation, Automation::autos, BC_INFINITY, CWindow::calculate_affected_auto(), CWindow::calculate_affected_track(), Canvas::canvas_to_output(), CWindowGUI::center_x, CWindowGUI::center_y, CONTROL_H, CWindowGUI::control_in_x, CWindowGUI::control_in_y, CWindowGUI::control_out_x, CWindowGUI::control_out_y, CONTROL_W, MaskPoint::control_x1, MaskPoint::control_x2, MaskPoint::control_y1, MaskPoint::control_y2, BC_WindowBase::ctrl_down(), CWindowGUI::current_operation, CWindowGUI::cwindow, EDLSession::cwindow_mask, EDLSession::cwindow_operation, Autos::default_auto, BC_WindowBase::draw_circle(), BC_WindowBase::draw_disc(), BC_WindowBase::draw_line(), BC_WindowBase::draw_polygon(), BC_WindowBase::draw_rectangle(), MWindow::edl, EQUIV, List< TYPE >::first, FIRST_CONTROL_H, FIRST_CONTROL_W, Canvas::get_canvas(), Canvas::get_cursor_x(), Canvas::get_cursor_y(), MaskAutos::get_points(), Automation::get_projector(), LocalSession::get_selectionstart(), MaskAuto::get_submask(), gui, EDL::local_session, mwindow, NEXT, EDLSession::output_h, Canvas::output_to_canvas(), EDLSession::output_w, SubMask::points, ArrayList< TYPE >::remove_all_objects(), EDL::session, BC_WindowBase::set_color(), BC_WindowBase::set_inverse(), BC_WindowBase::set_opaque(), BC_WindowBase::shift_down(), SQR, t, TEST_BOX, Track::to_units(), ArrayList< TYPE >::total, Track::track_h, Track::track_w, MWindow::undo, MainUndo::update_undo(), ArrayList< TYPE >::values, WHITE, MaskPoint::x, Canvas::x, CWindowGUI::x_origin, MaskPoint::y, Canvas::y, and CWindowGUI::y_origin.

Referenced by button_press_event(), cursor_motion_event(), and draw_overlays().

Here is the call graph for this function:

void CWindowCanvas::draw_refresh (  )  [virtual]

void CWindowCanvas::draw_overlays (  )  [virtual]

void CWindowCanvas::draw_safe_regions (  ) 

int CWindowCanvas::cursor_leave_event (  )  [virtual]

Reimplemented from Canvas.

Definition at line 2488 of file cwindowgui.C.

References ARROW_CURSOR, and Canvas::set_cursor().

Here is the call graph for this function:

int CWindowCanvas::cursor_enter_event (  )  [virtual]

Reimplemented from Canvas.

Definition at line 2494 of file cwindowgui.C.

References ARROW_CURSOR, CROSS_CURSOR, EDLSession::cwindow_operation, MWindow::edl, MOVE_CURSOR, mwindow, EDL::session, Canvas::set_cursor(), and test_crop().

Here is the call graph for this function:

int CWindowCanvas::cursor_motion_event (  )  [virtual]

int CWindowCanvas::button_press_event (  )  [virtual]

int CWindowCanvas::button_release_event (  )  [virtual]

Reimplemented from Canvas.

Definition at line 2706 of file cwindowgui.C.

References _, CWindowGUI::current_operation, gui, mwindow, MWindow::undo, and MainUndo::update_undo().

Referenced by CWindowGUI::button_release_event().

Here is the call graph for this function:

int CWindowCanvas::get_fullscreen (  )  [virtual]

Reimplemented from Canvas.

Definition at line 869 of file cwindowgui.C.

References MainSession::cwindow_fullscreen, mwindow, and MWindow::session.

void CWindowCanvas::set_fullscreen ( int  value  )  [virtual]

Reimplemented from Canvas.

Definition at line 874 of file cwindowgui.C.

References MainSession::cwindow_fullscreen, mwindow, and MWindow::session.

int CWindowCanvas::test_crop ( int  button_press,
int &  redraw 
)

int CWindowCanvas::test_bezier ( int  button_press,
int &  redraw,
int &  redraw_canvas,
int &  rerender,
int  do_camera 
)

int CWindowCanvas::test_zoom ( int &  redraw  ) 

void CWindowCanvas::reset_camera (  )  [virtual]

Reimplemented from Canvas.

Definition at line 1828 of file cwindowgui.C.

References reset_keyframe().

Here is the call graph for this function:

void CWindowCanvas::reset_projector (  )  [virtual]

Reimplemented from Canvas.

Definition at line 1833 of file cwindowgui.C.

References reset_keyframe().

Here is the call graph for this function:

void CWindowCanvas::reset_keyframe ( int  do_camera  ) 

void CWindowCanvas::draw_crophandle ( int  x,
int  y 
)

Definition at line 967 of file cwindowgui.C.

References CROPHANDLE_H, CROPHANDLE_W, BC_WindowBase::draw_box(), and Canvas::get_canvas().

Referenced by draw_crop().

Here is the call graph for this function:

void CWindowCanvas::zoom_auto (  )  [virtual]

Reimplemented from Canvas.

Definition at line 889 of file cwindowgui.C.

References gui, and CWindowGUI::zoom_canvas().

Here is the call graph for this function:

void CWindowCanvas::draw_bezier ( int  do_camera  ) 

void CWindowCanvas::draw_crop (  ) 

void CWindowCanvas::calculate_origin (  ) 

Definition at line 2478 of file cwindowgui.C.

References Canvas::canvas_to_output(), MWindow::edl, Canvas::get_cursor_x(), Canvas::get_cursor_y(), gui, mwindow, CWindowGUI::x_origin, and CWindowGUI::y_origin.

Referenced by button_press_event(), and test_bezier().

Here is the call graph for this function:

void CWindowCanvas::toggle_controls (  )  [virtual]

Reimplemented from Canvas.

Definition at line 2753 of file cwindowgui.C.

References MainSession::cwindow_controls, BC_WindowBase::get_h(), BC_WindowBase::get_w(), gui, mwindow, CWindowGUI::resize_event(), and MWindow::session.

Here is the call graph for this function:

int CWindowCanvas::get_cwindow_controls (  )  [virtual]

Reimplemented from Canvas.

Definition at line 2759 of file cwindowgui.C.

References MainSession::cwindow_controls, mwindow, and MWindow::session.


Field Documentation


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:20:37 2008 for Cinelerra by  doxygen 1.5.5