Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

CWindowCanvas Class Reference

#include <cwindowgui.h>

Inheritance diagram for CWindowCanvas:

Canvas List of all members.

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 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 draw_bezier (int do_camera)
void draw_crop ()
void calculate_origin ()
void toggle_controls ()
int get_cwindow_controls ()

Public Attributes

MWindowmwindow
CWindowGUIgui

Detailed Description

Definition at line 202 of file cwindowgui.h.


Constructor & Destructor Documentation

CWindowCanvas::CWindowCanvas MWindow mwindow,
CWindowGUI gui
 

Definition at line 730 of file cwindowgui.C.


Member Function Documentation

int CWindowCanvas::button_press_event  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 2451 of file cwindowgui.C.

References Canvas::button_press_event(), calculate_origin(), CWindowGUI::current_operation, CWindowGUI::cwindow, EDLSession::cwindow_operation, do_eyedrop(), do_mask(), draw_refresh(), MWindow::edl, Canvas::get_buttonpress(), Canvas::get_x_offset(), Canvas::get_y_offset(), Canvas::get_zooms(), gui, mwindow, CWindow::playback_engine, PlaybackEngine::que, MWindow::restart_brender(), TransportQue::send_command(), EDL::session, MWindow::sync_parameters(), test_bezier(), test_crop(), test_zoom(), CWindowGUI::translating_zoom, CWindowGUI::update_tool(), CWindowGUI::x_offset, and CWindowGUI::y_offset.

int CWindowCanvas::button_release_event  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 2528 of file cwindowgui.C.

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

void CWindowCanvas::calculate_origin  ) 
 

Definition at line 2300 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().

int CWindowCanvas::cursor_enter_event  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 2316 of file cwindowgui.C.

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

int CWindowCanvas::cursor_leave_event  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 2310 of file cwindowgui.C.

References Canvas::set_cursor().

int CWindowCanvas::cursor_motion_event  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 2344 of file cwindowgui.C.

References MWindowGUI::canvas, CWindowGUI::current_operation, CWindowGUI::cwindow, EDLSession::cwindow_operation, do_eyedrop(), do_mask(), TrackCanvas::draw_overlays(), draw_refresh(), MWindow::edl, Canvas::get_cursor_x(), Canvas::get_cursor_y(), get_zoom(), Canvas::get_zooms(), MWindow::gui, gui, mwindow, CWindow::playback_engine, PlaybackEngine::que, MWindow::restart_brender(), TransportQue::send_command(), EDL::session, MWindow::sync_parameters(), test_bezier(), test_crop(), Canvas::update_scrollbars(), CWindowGUI::update_tool(), update_zoom(), Canvas::x, CWindowGUI::x_offset, CWindowGUI::x_origin, Canvas::y, CWindowGUI::y_offset, and CWindowGUI::y_origin.

int CWindowCanvas::do_eyedrop int &  rerender,
int  button_press
 

Definition at line 1473 of file cwindowgui.C.

References LocalSession::blue, Canvas::canvas_to_output(), CLAMP, CWindowGUI::current_operation, MWindow::edl, GET_COLOR, Canvas::get_cursor_x(), Canvas::get_cursor_y(), LocalSession::green, gui, EDL::local_session, mwindow, LocalSession::red, Canvas::refresh_frame, and CWindowGUI::update_tool().

Referenced by button_press_event(), and cursor_motion_event().

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

Definition at line 850 of file cwindowgui.C.

References _, CWindowGUI::affected_keyframe, CWindowGUI::affected_point, CWindowGUI::affected_track, Track::automation, Automation::autos, BC_INFINITY, CWindow::calculate_affected_auto(), CWindow::calculate_affected_track(), Canvas::canvas, 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, CWindowGUI::current_operation, CWindowGUI::cwindow, EDLSession::cwindow_mask, EDLSession::cwindow_operation, Autos::default_auto, MWindow::edl, FIRST_CONTROL_H, FIRST_CONTROL_W, 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, EDLSession::output_h, Canvas::output_to_canvas(), EDLSession::output_w, SubMask::points, EDL::session, SQR, TEST_BOX, Track::to_units(), Track::track_h, Track::track_w, MWindow::undo, MainUndo::update_undo(), 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().

void CWindowCanvas::draw_bezier int  do_camera  ) 
 

Definition at line 2015 of file cwindowgui.C.

References Track::automation, CWindow::calculate_affected_track(), Canvas::canvas, CWindowGUI::cwindow, DRAW_PROJECTION, MWindow::edl, Automation::get_projector(), LocalSession::get_selectionstart(), gui, EDL::local_session, mwindow, EDLSession::output_h, Canvas::output_to_canvas(), EDLSession::output_w, EDL::session, Track::to_units(), Track::track_h, and Track::track_w.

Referenced by draw_overlays().

void CWindowCanvas::draw_crop  ) 
 

Definition at line 1982 of file cwindowgui.C.

References Canvas::canvas, EDLSession::crop_x1, EDLSession::crop_x2, EDLSession::crop_y1, EDLSession::crop_y2, CROPHANDLE_H, CROPHANDLE_W, draw_crophandle(), MWindow::edl, mwindow, Canvas::output_to_canvas(), and EDL::session.

Referenced by draw_overlays().

void CWindowCanvas::draw_crophandle int  x,
int  y
 

Definition at line 835 of file cwindowgui.C.

References Canvas::canvas, CROPHANDLE_H, and CROPHANDLE_W.

Referenced by draw_crop().

void CWindowCanvas::draw_overlays  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 1579 of file cwindowgui.C.

References Canvas::canvas, MainSession::ccanvas_highlighted, EDLSession::cwindow_operation, EDLSession::cwindow_scrollbars, do_mask(), draw_bezier(), draw_crop(), draw_safe_regions(), MWindow::edl, mwindow, EDLSession::output_h, Canvas::output_to_canvas(), EDLSession::output_w, EDLSession::safe_regions, MWindow::session, and EDL::session.

Referenced by draw_refresh().

void CWindowCanvas::draw_refresh  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 775 of file cwindowgui.C.

References Canvas::canvas, draw_overlays(), MWindow::edl, Canvas::get_transfers(), mwindow, and Canvas::refresh_frame.

Referenced by button_press_event(), cursor_motion_event(), CWindowGUI::drag_motion(), CWindowGUI::drag_stop(), CWindowCropGUI::handle_event(), CWindowZoom::handle_event(), CPanelTitleSafe::handle_event(), CWindowGUI::set_operation(), CWindow::update(), CWindowMaskGUI::update_preview(), CWindowProjectorGUI::update_preview(), and CWindowCameraGUI::update_preview().

void CWindowCanvas::draw_safe_regions  ) 
 

Definition at line 1641 of file cwindowgui.C.

References Canvas::canvas, MWindow::edl, mwindow, EDLSession::output_h, Canvas::output_to_canvas(), EDLSession::output_w, and EDL::session.

Referenced by draw_overlays().

int CWindowCanvas::get_cwindow_controls  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 2580 of file cwindowgui.C.

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

int CWindowCanvas::get_xscroll  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 759 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 764 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 770 of file cwindowgui.C.

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

Referenced by cursor_motion_event(), and test_zoom().

void CWindowCanvas::reset_camera  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 1704 of file cwindowgui.C.

References reset_keyframe().

void CWindowCanvas::reset_keyframe int  do_camera  ) 
 

Definition at line 1675 of file cwindowgui.C.

References CWindow::calculate_affected_autos(), CWindow::calculate_affected_track(), CWindowGUI::cwindow, gui, mwindow, MWindow::sync_parameters(), CWindowGUI::update_tool(), and FloatAuto::value.

Referenced by reset_camera(), and reset_projector().

void CWindowCanvas::reset_projector  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 1709 of file cwindowgui.C.

References reset_keyframe().

void CWindowCanvas::status_event  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 745 of file cwindowgui.C.

References CWindowGUI::draw_status(), and gui.

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

Definition at line 2078 of file cwindowgui.C.

References CWindowGUI::affected_track, CWindowGUI::affected_x, CWindowGUI::affected_y, CWindowGUI::affected_z, Track::automation, Automation::autos, CWindow::calculate_affected_auto(), CWindow::calculate_affected_track(), calculate_origin(), Canvas::canvas_to_output(), CWindowGUI::center_x, CWindowGUI::center_y, CWindowGUI::center_z, CWindowGUI::current_operation, CWindowGUI::cwindow, EDLSession::cwindow_operation, MWindow::edl, Canvas::get_cursor_x(), Canvas::get_cursor_y(), gui, mwindow, CWindowGUI::reset_affected(), EDL::session, CWindowGUI::translating_zoom, FloatAuto::value, CWindowGUI::x_origin, and CWindowGUI::y_origin.

Referenced by button_press_event(), and cursor_motion_event().

int CWindowCanvas::test_crop int  button_press,
int &  redraw
 

Definition at line 1714 of file cwindowgui.C.

References Canvas::canvas_to_output(), CLAMP, CWindowGUI::crop_handle, CWindowGUI::crop_origin_x, CWindowGUI::crop_origin_x1, CWindowGUI::crop_origin_x2, CWindowGUI::crop_origin_y, CWindowGUI::crop_origin_y1, CWindowGUI::crop_origin_y2, CWindowGUI::crop_translate, EDLSession::crop_x1, EDLSession::crop_x2, EDLSession::crop_y1, EDLSession::crop_y2, CROPHANDLE_H, CROPHANDLE_W, CWindowGUI::current_operation, MWindow::edl, Canvas::get_cursor_x(), Canvas::get_cursor_y(), gui, mwindow, EDLSession::output_h, Canvas::output_to_canvas(), EDLSession::output_w, EDL::session, Canvas::set_cursor(), CWindowGUI::x_origin, and CWindowGUI::y_origin.

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

int CWindowCanvas::test_zoom int &  redraw  ) 
 

Definition at line 2225 of file cwindowgui.C.

References Canvas::canvas_to_output(), Theme::ccanvas_h, Theme::ccanvas_w, Theme::ccanvas_x, Theme::ccanvas_y, CLAMP, EDLSession::cwindow_scrollbars, MWindow::edl, Canvas::get_buttonpress(), Canvas::get_cursor_x(), Canvas::get_cursor_y(), get_zoom(), gui, Canvas::h, mwindow, my_zoom_table, EDLSession::output_h, EDLSession::output_w, Canvas::reposition_window(), EDL::session, MWindow::theme, total_zooms, ZoomPanel::update(), update_zoom(), Canvas::w, Canvas::x, Canvas::y, and CWindowGUI::zoom_panel.

Referenced by button_press_event().

void CWindowCanvas::toggle_controls  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 2574 of file cwindowgui.C.

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

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

Reimplemented from Canvas.

Definition at line 750 of file cwindowgui.C.

References EDLSession::cwindow_scrollbars, EDLSession::cwindow_xscroll, EDLSession::cwindow_yscroll, EDLSession::cwindow_zoom, MWindow::edl, mwindow, EDL::session, and Canvas::use_scrollbars.

Referenced by cursor_motion_event(), CWindowZoom::handle_event(), test_zoom(), and CWindow::update().

void CWindowCanvas::zoom_resize_window float  percentage  )  [virtual]
 

Reimplemented from Canvas.

Definition at line 2558 of file cwindowgui.C.

References Canvas::calculate_sizes(), Theme::ccanvas_h, Theme::ccanvas_w, MWindow::edl, EDL::get_aspect_ratio(), gui, mwindow, EDLSession::output_h, EDLSession::output_w, CWindowGUI::resize_event(), EDL::session, and MWindow::theme.


Member Data Documentation

CWindowGUI* CWindowCanvas::gui
 

Definition at line 248 of file cwindowgui.h.

Referenced by button_press_event(), button_release_event(), calculate_origin(), cursor_motion_event(), do_eyedrop(), do_mask(), draw_bezier(), reset_keyframe(), status_event(), test_bezier(), test_crop(), test_zoom(), toggle_controls(), and zoom_resize_window().

MWindow* CWindowCanvas::mwindow
 

Definition at line 247 of file cwindowgui.h.

Referenced by button_press_event(), button_release_event(), calculate_origin(), cursor_enter_event(), cursor_motion_event(), do_eyedrop(), do_mask(), draw_bezier(), draw_crop(), draw_overlays(), draw_refresh(), draw_safe_regions(), get_cwindow_controls(), get_xscroll(), get_yscroll(), get_zoom(), reset_keyframe(), test_bezier(), test_crop(), test_zoom(), toggle_controls(), update_zoom(), and zoom_resize_window().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:12 2006 for Cinelerra-svn by  doxygen 1.4.4