GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "GLCanvas.h"
Public Types | |
enum | EventMask { KeyPress = 0x01, KeyRelease = 0x02 } |
Public Member Functions | |
GLCanvas (QWidget *parent, const graphics_handle &handle) | |
~GLCanvas (void) | |
void | addEventMask (int m) |
void | autoAxes (const graphics_handle &handle) |
void | blockRedraw (bool block=true) |
void | clearEventMask (int m) |
void | draw (const graphics_handle &handle) |
void | drawZoomBox (const QPoint &p1, const QPoint &p2) |
void | print (const QString &file_cmd, const QString &term) |
QWidget * | qWidget (void) |
void | redraw (bool sync=false) |
void | resize (int, int, int, int) |
graphics_object | selectFromAxes (const graphics_object &ax, const QPoint &pt) |
void | setCursor (MouseMode mode) |
void | setEventMask (int m) |
void | toggleAxes (const graphics_handle &handle) |
void | toggleGrid (const graphics_handle &handle) |
Static Public Member Functions | |
static Canvas * | create (const std::string &name, QWidget *parent, const graphics_handle &handle) |
Protected Member Functions | |
void | annotation_callback (const octave_value_list &args) |
void | canvasAutoAxes (const graphics_handle &handle) |
bool | canvasKeyPressEvent (QKeyEvent *event) |
bool | canvasKeyReleaseEvent (QKeyEvent *event) |
void | canvasMouseDoubleClickEvent (QMouseEvent *event) |
void | canvasMouseMoveEvent (QMouseEvent *event) |
void | canvasMousePressEvent (QMouseEvent *event) |
void | canvasMouseReleaseEvent (QMouseEvent *event) |
void | canvasPaintEvent (void) |
void | canvasToggleAxes (const graphics_handle &handle) |
void | canvasToggleGrid (const graphics_handle &handle) |
void | canvasWheelEvent (QWheelEvent *event) |
void | keyPressEvent (QKeyEvent *event) |
void | keyReleaseEvent (QKeyEvent *event) |
void | mouseDoubleClickEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | paintGL (void) |
void | updateCurrentPoint (const graphics_object &fig, const graphics_object &obj, QMouseEvent *event) |
void | updateCurrentPoint (const graphics_object &fig, const graphics_object &obj) |
void | wheelEvent (QWheelEvent *event) |
Definition at line 33 of file GLCanvas.h.
|
inherited |
QtHandles::GLCanvas::GLCanvas | ( | QWidget * | parent, |
const graphics_handle & | handle | ||
) |
Definition at line 40 of file GLCanvas.cc.
QtHandles::GLCanvas::~GLCanvas | ( | void | ) |
Definition at line 51 of file GLCanvas.cc.
|
inlineinherited |
Definition at line 59 of file Canvas.h.
References QtHandles::Canvas::m_eventMask.
Referenced by QtHandles::Figure::update().
|
protectedinherited |
Definition at line 201 of file Canvas.cc.
References Ffeval(), ovl(), and QtHandles::Canvas::redraw().
Referenced by QtHandles::Canvas::canvasMouseReleaseEvent().
|
virtual |
Implements QtHandles::Canvas.
Definition at line 83 of file GLCanvas.cc.
References QtHandles::Canvas::canvasAutoAxes().
|
inherited |
Definition at line 67 of file Canvas.cc.
References QtHandles::Canvas::m_redrawBlocked.
Referenced by QtHandles::Figure::beingDeleted().
|
protectedinherited |
Definition at line 287 of file Canvas.cc.
References QtHandles::autoscale_axes(), figure::properties::get_currentaxes(), gh_manager::get_object(), QtHandles::Canvas::redraw(), and graphics_object::valid_object().
Referenced by autoAxes().
|
protectedinherited |
Definition at line 925 of file Canvas.cc.
References graphics_object::get_ancestor(), gh_manager::get_object(), octave_scalar_map::getfield(), QtHandles::Canvas::KeyPress, QtHandles::Canvas::m_eventMask, QtHandles::Canvas::m_handle, QtHandles::Utils::makeKeyEventStruct(), gh_manager::post_callback(), gh_manager::post_set(), QtHandles::Canvas::updateCurrentPoint(), and graphics_object::valid_object().
Referenced by keyPressEvent().
|
protectedinherited |
Definition at line 952 of file Canvas.cc.
References QtHandles::Canvas::KeyRelease, QtHandles::Canvas::m_eventMask, QtHandles::Canvas::m_handle, QtHandles::Utils::makeKeyEventStruct(), and gh_manager::post_callback().
Referenced by keyReleaseEvent().
|
protectedinherited |
Definition at line 469 of file Canvas.cc.
References QtHandles::Canvas::canvasMousePressEvent().
Referenced by mouseDoubleClickEvent().
|
protectedinherited |
Definition at line 399 of file Canvas.cc.
References graphics_object::get_ancestor(), gh_manager::get_object(), QtHandles::Canvas::m_handle, QtHandles::Canvas::m_mouseAxes, QtHandles::Canvas::m_mouseCurrent, QtHandles::Canvas::m_mouseMode, QtHandles::NoMode, QtHandles::pan_mode(), QtHandles::PanMode, axes::properties::pixel2coord(), gh_manager::post_callback(), QtHandles::Canvas::redraw(), axes::properties::rotate3d(), QtHandles::RotateMode, QtHandles::TextMode, axes::properties::translate_view(), QtHandles::Canvas::updateCurrentPoint(), graphics_object::valid_object(), QtHandles::ZoomInMode, and QtHandles::ZoomOutMode.
Referenced by mouseMoveEvent().
|
protectedinherited |
Definition at line 502 of file Canvas.cc.
References QtHandles::autoscale_axes(), QtHandles::button_number(), QtHandles::ContextMenu::executeAt(), QtHandles::Utils::figureSelectionType(), base_properties::get_all_children(), graphics_object::get_ancestor(), base_properties::get_boundingbox(), gh_manager::get_object(), graphics_object::get_properties(), graphics_object::isa(), QtHandles::Canvas::m_clickMode, QtHandles::Canvas::m_handle, QtHandles::Canvas::m_mouseAnchor, QtHandles::Canvas::m_mouseAxes, QtHandles::Canvas::m_mouseCurrent, QtHandles::Canvas::m_mouseMode, QtHandles::Canvas::m_rectMode, QtHandles::Figure::mouseMode(), QtHandles::NoMode, Array< T >::numel(), octave_NaN, QtHandles::PanMode, gh_manager::post_callback(), gh_manager::post_set(), QtHandles::Canvas::redraw(), QtHandles::RotateMode, QtHandles::Canvas::selectFromAxes(), QtHandles::TextMode, QtHandles::Backend::toolkitObject(), QtHandles::Canvas::updateCurrentPoint(), graphics_object::valid_object(), QtHandles::ZoomInMode, and QtHandles::ZoomOutMode.
Referenced by QtHandles::Canvas::canvasMouseDoubleClickEvent(), and mousePressEvent().
|
protectedinherited |
Definition at line 719 of file Canvas.cc.
References QtHandles::Canvas::annotation_callback(), graphics_object::get(), graphics_object::get_ancestor(), gh_manager::get_object(), annotation_dialog::get_properties(), QtHandles::Canvas::m_clickMode, QtHandles::Canvas::m_handle, QtHandles::Canvas::m_mouseAnchor, QtHandles::Canvas::m_mouseAxes, QtHandles::Canvas::m_mouseMode, QtHandles::Canvas::m_rectMode, octave_value::matrix_value(), max(), min(), QtHandles::NoMode, octave_handle::ok(), ovl(), axes::properties::pixel2coord(), gh_manager::post_callback(), octave_link::post_event(), QtHandles::Canvas::qWidget(), QtHandles::Canvas::redraw(), QtHandles::TextMode, QtHandles::Canvas::updateCurrentPoint(), graphics_object::valid_object(), Faddeeva::w(), axes::properties::zoom(), axes::properties::zoom_about_point(), QtHandles::zoom_mode(), QtHandles::ZoomInMode, and QtHandles::ZoomOutMode.
Referenced by mouseReleaseEvent().
|
protectedinherited |
Definition at line 313 of file Canvas.cc.
References QtHandles::Canvas::draw(), QtHandles::Canvas::drawZoomBox(), QtHandles::Canvas::m_handle, QtHandles::Canvas::m_mouseAnchor, QtHandles::Canvas::m_mouseAxes, QtHandles::Canvas::m_mouseCurrent, QtHandles::Canvas::m_mouseMode, QtHandles::Canvas::m_rectMode, QtHandles::Canvas::m_redrawBlocked, octave_handle::ok(), and QtHandles::ZoomInMode.
Referenced by paintGL().
|
protectedinherited |
Definition at line 209 of file Canvas.cc.
References figure::properties::get_currentaxes(), gh_manager::get_object(), base_properties::handlevisibility_is(), base_properties::is_visible(), QtHandles::Canvas::redraw(), base_properties::set_visible(), and graphics_object::valid_object().
Referenced by toggleAxes().
|
protectedinherited |
Definition at line 238 of file Canvas.cc.
References figure::properties::get_currentaxes(), gh_manager::get_object(), axes::properties::get_xgrid(), axes::properties::get_ygrid(), axes::properties::get_zgrid(), QtHandles::Canvas::redraw(), axes::properties::set_xgrid(), axes::properties::set_ygrid(), axes::properties::set_zgrid(), state, and graphics_object::valid_object().
Referenced by toggleGrid().
|
protectedinherited |
Definition at line 817 of file Canvas.cc.
References octave_handle::as_octave_value(), graphics_object::get_ancestor(), base_properties::get_children(), graphics_object::get_handle(), axes::properties::get_mousewheelzoom(), gh_manager::get_object(), graphics_object::get_properties(), base_properties::handlevisibility_is(), graphics_object::isa(), QtHandles::Canvas::m_handle, QtHandles::Figure::mouseMode(), QtHandles::NoMode, Array< T >::numel(), axes::properties::pan(), QtHandles::pan_enabled(), QtHandles::pan_mode(), QtHandles::PanMode, QtHandles::Canvas::redraw(), QtHandles::Canvas::selectFromAxes(), QtHandles::Backend::toolkitObject(), graphics_object::valid_object(), axes::properties::zoom(), QtHandles::zoom_enabled(), QtHandles::zoom_mode(), QtHandles::ZoomInMode, and QtHandles::ZoomOutMode.
Referenced by wheelEvent().
|
inlineinherited |
Definition at line 60 of file Canvas.h.
References QtHandles::Canvas::m_eventMask.
Referenced by QtHandles::Figure::update().
|
staticinherited |
Definition at line 966 of file Canvas.cc.
Referenced by QtHandles::Container::canvas().
|
virtual |
Implements QtHandles::Canvas.
Definition at line 56 of file GLCanvas.cc.
References gh_manager::get_object().
|
virtual |
Implements QtHandles::Canvas.
Definition at line 115 of file GLCanvas.cc.
References QtHandles::glDrawZoomBox().
|
protected |
Definition at line 181 of file GLCanvas.cc.
References QtHandles::Canvas::canvasKeyPressEvent().
|
protected |
Definition at line 188 of file GLCanvas.cc.
References QtHandles::Canvas::canvasKeyReleaseEvent().
|
protected |
Definition at line 151 of file GLCanvas.cc.
References QtHandles::Canvas::canvasMouseDoubleClickEvent().
|
protected |
Definition at line 157 of file GLCanvas.cc.
References QtHandles::Canvas::canvasMouseMoveEvent().
|
protected |
Definition at line 163 of file GLCanvas.cc.
References QtHandles::Canvas::canvasMousePressEvent().
|
protected |
Definition at line 169 of file GLCanvas.cc.
References QtHandles::Canvas::canvasMouseReleaseEvent().
|
protected |
Definition at line 145 of file GLCanvas.cc.
References QtHandles::Canvas::canvasPaintEvent().
|
inherited |
Definition at line 104 of file Canvas.cc.
References graphics_object::get_ancestor(), gh_manager::get_object(), gl2ps_print(), QtHandles::Canvas::m_handle, and graphics_object::valid_object().
Referenced by QtHandles::Figure::print().
|
inlinevirtual |
Implements QtHandles::Canvas.
Definition at line 48 of file GLCanvas.h.
|
inherited |
Definition at line 53 of file Canvas.cc.
References QtHandles::Canvas::qWidget(), and Faddeeva::w().
Referenced by QtHandles::Canvas::annotation_callback(), QtHandles::Canvas::canvasAutoAxes(), QtHandles::Canvas::canvasMouseMoveEvent(), QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasMouseReleaseEvent(), QtHandles::Canvas::canvasToggleAxes(), QtHandles::Canvas::canvasToggleGrid(), QtHandles::Canvas::canvasWheelEvent(), QtHandles::Panel::redraw(), and QtHandles::Figure::redraw().
Implements QtHandles::Canvas.
Definition at line 44 of file GLCanvas.h.
|
virtual |
Implements QtHandles::Canvas.
Definition at line 89 of file GLCanvas.cc.
References opengl_selector::select().
|
inherited |
Definition at line 73 of file Canvas.cc.
References QtHandles::PanMode, QtHandles::Canvas::qWidget(), QtHandles::RotateMode, Faddeeva::w(), QtHandles::ZoomInMode, and QtHandles::ZoomOutMode.
Referenced by QtHandles::Figure::setMouseMode().
|
inlineinherited |
Definition at line 61 of file Canvas.h.
References QtHandles::Canvas::m_eventMask.
Referenced by QtHandles::Figure::Figure().
|
virtual |
Implements QtHandles::Canvas.
Definition at line 71 of file GLCanvas.cc.
References QtHandles::Canvas::canvasToggleAxes().
|
virtual |
Implements QtHandles::Canvas.
Definition at line 77 of file GLCanvas.cc.
References QtHandles::Canvas::canvasToggleGrid().
|
protectedinherited |
Definition at line 123 of file Canvas.cc.
References QtHandles::Utils::figureCurrentPoint(), base_properties::get_children(), graphics_object::get_handle(), gh_manager::get_object(), graphics_object::get_properties(), axes::properties::get_transform(), axes::properties::get_transform_zlim(), graphics_object::isa(), gh_manager::post_set(), and graphics_xform::untransform().
Referenced by QtHandles::Canvas::canvasKeyPressEvent(), QtHandles::Canvas::canvasMouseMoveEvent(), QtHandles::Canvas::canvasMousePressEvent(), and QtHandles::Canvas::canvasMouseReleaseEvent().
|
protectedinherited |
Definition at line 161 of file Canvas.cc.
References QtHandles::Utils::figureCurrentPoint(), base_properties::get_children(), graphics_object::get_handle(), gh_manager::get_object(), graphics_object::get_properties(), axes::properties::get_transform(), axes::properties::get_transform_zlim(), graphics_object::isa(), gh_manager::post_set(), QtHandles::Canvas::qWidget(), graphics_xform::untransform(), and Faddeeva::w().
|
protected |
Definition at line 175 of file GLCanvas.cc.
References QtHandles::Canvas::canvasWheelEvent().