#include <cwindowgui.h>
Inherits Canvas.

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 | |
| MWindow * | mwindow |
| CWindowGUI * | gui |
Definition at line 213 of file cwindowgui.h.
| CWindowCanvas::CWindowCanvas | ( | MWindow * | mwindow, | |
| CWindowGUI * | gui | |||
| ) |
Definition at line 848 of file cwindowgui.C.
| void CWindowCanvas::status_event | ( | ) | [virtual] |
Reimplemented from Canvas.
Definition at line 864 of file cwindowgui.C.
References CWindowGUI::draw_status(), and gui.

| void CWindowCanvas::zoom_resize_window | ( | float | percentage | ) | [virtual] |
Reimplemented from Canvas.
Definition at line 2737 of file cwindowgui.C.
References Canvas::calculate_sizes(), Theme::ccanvas_h, Theme::ccanvas_w, MWindow::edl, EDL::get_aspect_ratio(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), gui, mwindow, EDLSession::output_h, EDLSession::output_w, CWindowGUI::resize_event(), BC_WindowBase::resize_window(), EDL::session, and MWindow::theme.

| void CWindowCanvas::update_zoom | ( | int | x, | |
| int | y, | |||
| float | zoom | |||
| ) | [virtual] |
Reimplemented from Canvas.
Definition at line 880 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(), test_zoom(), CWindow::update(), and CWindowGUI::zoom_canvas().
| 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 | |||
| ) |
Definition at line 1605 of file cwindowgui.C.
References BC_RGB888, BC_RGB_FLOAT, BC_RGBA8888, BC_RGBA_FLOAT, BC_YUV161616, BC_YUV888, BC_YUVA16161616, BC_YUVA8888, LocalSession::blue, Canvas::canvas_to_output(), CLAMP, CWindowGUI::current_operation, MWindow::edl, GET_COLOR, VFrame::get_color_model(), Canvas::get_cursor_x(), Canvas::get_cursor_y(), VFrame::get_h(), VFrame::get_w(), 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 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().

| void CWindowCanvas::draw_refresh | ( | ) | [virtual] |
Reimplemented from Canvas.
Definition at line 910 of file cwindowgui.C.
References BC_WindowBase::clear_box(), draw_overlays(), BC_WindowBase::draw_vframe(), MWindow::edl, BC_WindowBase::flash(), Canvas::get_canvas(), Canvas::get_transfers(), mwindow, and Canvas::refresh_frame.
Referenced by button_press_event(), CWindowGUI::create_objects(), cursor_motion_event(), CWindowGUI::drag_motion(), CWindowGUI::drag_stop(), CWindowCropGUI::handle_event(), CPanelTitleSafe::handle_event(), CWindowGUI::set_operation(), CWindow::update(), CWindowMaskGUI::update_preview(), CWindowProjectorGUI::update_preview(), CWindowCameraGUI::update_preview(), and CWindowGUI::zoom_canvas().

| void CWindowCanvas::draw_overlays | ( | ) | [virtual] |
Reimplemented from Canvas.
Definition at line 1705 of file cwindowgui.C.
References MainSession::ccanvas_highlighted, EDLSession::cwindow_operation, EDLSession::cwindow_scrollbars, do_mask(), draw_bezier(), draw_crop(), BC_WindowBase::draw_rectangle(), draw_safe_regions(), MWindow::edl, Canvas::get_canvas(), mwindow, EDLSession::output_h, Canvas::output_to_canvas(), EDLSession::output_w, EDLSession::safe_regions, MWindow::session, EDL::session, BC_WindowBase::set_color(), BC_WindowBase::set_inverse(), BC_WindowBase::set_opaque(), and WHITE.
Referenced by draw_refresh().

| void CWindowCanvas::draw_safe_regions | ( | ) |
Definition at line 1765 of file cwindowgui.C.
References BC_WindowBase::draw_rectangle(), MWindow::edl, Canvas::get_canvas(), mwindow, EDLSession::output_h, Canvas::output_to_canvas(), EDLSession::output_w, EDL::session, BC_WindowBase::set_color(), BC_WindowBase::set_inverse(), BC_WindowBase::set_opaque(), and WHITE.
Referenced by draw_overlays().

| int CWindowCanvas::cursor_leave_event | ( | ) | [virtual] |
Reimplemented from Canvas.
Definition at line 2488 of file cwindowgui.C.
References ARROW_CURSOR, and Canvas::set_cursor().

| 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().

| int CWindowCanvas::cursor_motion_event | ( | ) | [virtual] |
Reimplemented from Canvas.
Definition at line 2522 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, BC_WindowBase::flash(), Canvas::get_cursor_x(), Canvas::get_cursor_y(), get_zoom(), Canvas::get_zooms(), MWindow::gui, gui, BC_WindowBase::lock_window(), mwindow, CWindow::playback_engine, PlaybackEngine::que, MWindow::restart_brender(), TransportQue::send_command(), EDL::session, MWindow::sync_parameters(), test_bezier(), test_crop(), BC_WindowBase::unlock_window(), 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.
Referenced by CWindowGUI::cursor_motion_event().

| int CWindowCanvas::button_press_event | ( | ) | [virtual] |
Reimplemented from Canvas.
Definition at line 2629 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, BC_WindowBase::shift_down(), 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 2706 of file cwindowgui.C.
References _, CWindowGUI::current_operation, gui, mwindow, MWindow::undo, and MainUndo::update_undo().
Referenced by CWindowGUI::button_release_event().

| 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 | |||
| ) |
Definition at line 1838 of file cwindowgui.C.
References BC_WindowBase::alt_down(), ARROW_CURSOR, 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, DOWNLEFT_RESIZE, DOWNRIGHT_RESIZE, MWindow::edl, EQUIV, 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(), UPLEFT_RESIZE, UPRIGHT_RESIZE, CWindowGUI::x_origin, and CWindowGUI::y_origin.
Referenced by button_press_event(), cursor_enter_event(), and cursor_motion_event().
