GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
QtHandles::GLCanvas Class Reference

#include "GLCanvas.h"

Inheritance diagram for QtHandles::GLCanvas:
Inheritance graph
[legend]
Collaboration diagram for QtHandles::GLCanvas:
Collaboration graph
[legend]

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)
 
QWidgetqWidget (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 Canvascreate (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 select_object (graphics_object obj, QMouseEvent *event, graphics_object &currentObj, graphics_object &axesObj, bool axes_only=false, std::vector< std::string > omit=std::vector< std::string >())
 
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)
 

Detailed Description

Definition at line 33 of file GLCanvas.h.

Member Enumeration Documentation

Enumerator
KeyPress 
KeyRelease 

Definition at line 45 of file Canvas.h.

Constructor & Destructor Documentation

QtHandles::GLCanvas::GLCanvas ( QWidget parent,
const graphics_handle handle 
)

Definition at line 36 of file GLCanvas.cc.

QtHandles::GLCanvas::~GLCanvas ( void  )

Definition at line 52 of file GLCanvas.cc.

Member Function Documentation

void QtHandles::Canvas::addEventMask ( int  m)
inlineinherited

Definition at line 59 of file Canvas.h.

References m, and QtHandles::Canvas::m_eventMask.

Referenced by QtHandles::Figure::update().

void QtHandles::Canvas::annotation_callback ( const octave_value_list args)
protectedinherited

Definition at line 202 of file Canvas.cc.

References append, Ffeval(), ovl(), and QtHandles::Canvas::redraw().

Referenced by QtHandles::Canvas::canvasMouseReleaseEvent().

void QtHandles::GLCanvas::autoAxes ( const graphics_handle handle)
virtual

Implements QtHandles::Canvas.

Definition at line 83 of file GLCanvas.cc.

References QtHandles::Canvas::canvasAutoAxes().

void QtHandles::Canvas::blockRedraw ( bool  block = true)
inherited

Definition at line 68 of file Canvas.cc.

References QtHandles::Canvas::m_redrawBlocked.

Referenced by QtHandles::Figure::beingDeleted().

void QtHandles::Canvas::canvasAutoAxes ( const graphics_handle handle)
protectedinherited
bool QtHandles::Canvas::canvasKeyPressEvent ( QKeyEvent *  event)
protectedinherited
bool QtHandles::Canvas::canvasKeyReleaseEvent ( QKeyEvent *  event)
protectedinherited
void QtHandles::Canvas::canvasMouseDoubleClickEvent ( QMouseEvent *  event)
protectedinherited

Definition at line 576 of file Canvas.cc.

References QtHandles::Canvas::canvasMousePressEvent().

Referenced by mouseDoubleClickEvent().

void QtHandles::Canvas::canvasMouseMoveEvent ( QMouseEvent *  event)
protectedinherited
void QtHandles::Canvas::canvasMousePressEvent ( QMouseEvent *  event)
protectedinherited
void QtHandles::Canvas::canvasMouseReleaseEvent ( QMouseEvent *  event)
protectedinherited
void QtHandles::Canvas::canvasPaintEvent ( void  )
protectedinherited
void QtHandles::Canvas::canvasToggleAxes ( const graphics_handle handle)
protectedinherited
void QtHandles::Canvas::canvasToggleGrid ( const graphics_handle handle)
protectedinherited
void QtHandles::Canvas::canvasWheelEvent ( QWheelEvent *  event)
protectedinherited
void QtHandles::Canvas::clearEventMask ( int  m)
inlineinherited

Definition at line 60 of file Canvas.h.

References QtHandles::Canvas::m_eventMask.

Referenced by QtHandles::Figure::update().

Canvas * QtHandles::Canvas::create ( const std::string name,
QWidget parent,
const graphics_handle handle 
)
staticinherited

Definition at line 1037 of file Canvas.cc.

Referenced by QtHandles::Container::canvas().

void QtHandles::GLCanvas::draw ( const graphics_handle handle)
virtual
void QtHandles::GLCanvas::drawZoomBox ( const QPoint &  p1,
const QPoint &  p2 
)
virtual

Implements QtHandles::Canvas.

Definition at line 115 of file GLCanvas.cc.

References QtHandles::glDrawZoomBox().

void QtHandles::GLCanvas::keyPressEvent ( QKeyEvent *  event)
protected

Definition at line 186 of file GLCanvas.cc.

References QtHandles::Canvas::canvasKeyPressEvent().

void QtHandles::GLCanvas::keyReleaseEvent ( QKeyEvent *  event)
protected

Definition at line 193 of file GLCanvas.cc.

References QtHandles::Canvas::canvasKeyReleaseEvent().

void QtHandles::GLCanvas::mouseDoubleClickEvent ( QMouseEvent *  event)
protected

Definition at line 156 of file GLCanvas.cc.

References QtHandles::Canvas::canvasMouseDoubleClickEvent().

void QtHandles::GLCanvas::mouseMoveEvent ( QMouseEvent *  event)
protected

Definition at line 162 of file GLCanvas.cc.

References QtHandles::Canvas::canvasMouseMoveEvent().

void QtHandles::GLCanvas::mousePressEvent ( QMouseEvent *  event)
protected

Definition at line 168 of file GLCanvas.cc.

References QtHandles::Canvas::canvasMousePressEvent().

void QtHandles::GLCanvas::mouseReleaseEvent ( QMouseEvent *  event)
protected

Definition at line 174 of file GLCanvas.cc.

References QtHandles::Canvas::canvasMouseReleaseEvent().

void QtHandles::GLCanvas::paintGL ( void  )
protected

Definition at line 150 of file GLCanvas.cc.

References QtHandles::Canvas::canvasPaintEvent().

void QtHandles::Canvas::print ( const QString &  file_cmd,
const QString &  term 
)
inherited
QWidget* QtHandles::GLCanvas::qWidget ( void  )
inlinevirtual

Implements QtHandles::Canvas.

Definition at line 48 of file GLCanvas.h.

void QtHandles::Canvas::redraw ( bool  sync = false)
inherited
void QtHandles::GLCanvas::resize ( int  ,
int  ,
int  ,
int   
)
inlinevirtual

Implements QtHandles::Canvas.

Definition at line 44 of file GLCanvas.h.

void QtHandles::Canvas::select_object ( graphics_object  obj,
QMouseEvent *  event,
graphics_object currentObj,
graphics_object axesObj,
bool  axes_only = false,
std::vector< std::string omit = std::vector<std::string> () 
)
protectedinherited
graphics_object QtHandles::GLCanvas::selectFromAxes ( const graphics_object ax,
const QPoint &  pt 
)
virtual
void QtHandles::Canvas::setCursor ( MouseMode  mode)
inherited
void QtHandles::Canvas::setEventMask ( int  m)
inlineinherited

Definition at line 61 of file Canvas.h.

References m, and QtHandles::Canvas::m_eventMask.

Referenced by QtHandles::Figure::Figure().

void QtHandles::GLCanvas::toggleAxes ( const graphics_handle handle)
virtual

Implements QtHandles::Canvas.

Definition at line 71 of file GLCanvas.cc.

References QtHandles::Canvas::canvasToggleAxes().

void QtHandles::GLCanvas::toggleGrid ( const graphics_handle handle)
virtual

Implements QtHandles::Canvas.

Definition at line 77 of file GLCanvas.cc.

References QtHandles::Canvas::canvasToggleGrid().

void QtHandles::Canvas::updateCurrentPoint ( const graphics_object fig,
const graphics_object obj,
QMouseEvent *  event 
)
protectedinherited
void QtHandles::Canvas::updateCurrentPoint ( const graphics_object fig,
const graphics_object obj 
)
protectedinherited
void QtHandles::GLCanvas::wheelEvent ( QWheelEvent *  event)
protected

Definition at line 180 of file GLCanvas.cc.

References QtHandles::Canvas::canvasWheelEvent().


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