GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
QtHandles::GLCanvas Class Reference

#include "GLCanvas.h"

Inheritance diagram for QtHandles::GLCanvas:
Collaboration diagram for QtHandles::GLCanvas:

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)
 
uint8NDArray do_getPixels (const graphics_handle &handle)
 
void do_print (const QString &file_cmd, const QString &term, const graphics_handle &handle)
 
void draw (const graphics_handle &handle)
 
void drawZoomBox (const QPoint &p1, const QPoint &p2)
 
virtual uint8NDArray getPixels (void)
 
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)
 

Private Member Functions

bool begin_rendering (void)
 
void end_rendering (void)
 

Detailed Description

Definition at line 48 of file GLCanvas.h.

Member Enumeration Documentation

◆ EventMask

Enumerator
KeyPress 
KeyRelease 

Definition at line 45 of file Canvas.h.

Constructor & Destructor Documentation

◆ GLCanvas()

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

Definition at line 50 of file GLCanvas.cc.

◆ ~GLCanvas()

QtHandles::GLCanvas::~GLCanvas ( void  )

Definition at line 58 of file GLCanvas.cc.

Member Function Documentation

◆ addEventMask()

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

Definition at line 62 of file Canvas.h.

References QtHandles::Canvas::m_eventMask.

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

◆ annotation_callback()

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

Definition at line 187 of file Canvas.cc.

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

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

◆ autoAxes()

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

Implements QtHandles::Canvas.

Definition at line 162 of file GLCanvas.cc.

References QtHandles::Canvas::canvasAutoAxes(), and gh.

◆ begin_rendering()

bool QtHandles::GLCanvas::begin_rendering ( void  )
private

Definition at line 280 of file GLCanvas.cc.

References retval.

Referenced by do_getPixels(), and do_print().

◆ blockRedraw()

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

Definition at line 67 of file Canvas.cc.

References QtHandles::Canvas::m_redrawBlocked.

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

◆ canvasAutoAxes()

void QtHandles::Canvas::canvasAutoAxes ( const graphics_handle handle)
protectedinherited

◆ canvasKeyPressEvent()

◆ canvasKeyReleaseEvent()

bool QtHandles::Canvas::canvasKeyReleaseEvent ( QKeyEvent *  event)
protectedinherited

◆ canvasMouseDoubleClickEvent()

void QtHandles::Canvas::canvasMouseDoubleClickEvent ( QMouseEvent *  event)
protectedinherited

Definition at line 561 of file Canvas.cc.

References QtHandles::Canvas::canvasMousePressEvent().

Referenced by mouseDoubleClickEvent().

◆ canvasMouseMoveEvent()

◆ canvasMousePressEvent()

◆ canvasMouseReleaseEvent()

◆ canvasPaintEvent()

◆ canvasToggleAxes()

void QtHandles::Canvas::canvasToggleAxes ( const graphics_handle handle)
protectedinherited

◆ canvasToggleGrid()

void QtHandles::Canvas::canvasToggleGrid ( const graphics_handle handle)
protectedinherited

◆ canvasWheelEvent()

◆ clearEventMask()

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

Definition at line 63 of file Canvas.h.

References QtHandles::Canvas::m_eventMask.

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

◆ create()

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

Definition at line 1057 of file Canvas.cc.

References handle.

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

◆ do_getPixels()

◆ do_print()

void QtHandles::GLCanvas::do_print ( const QString &  file_cmd,
const QString &  term,
const graphics_handle handle 
)
virtual

◆ draw()

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

◆ drawZoomBox()

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

Implements QtHandles::Canvas.

Definition at line 195 of file GLCanvas.cc.

References QtHandles::glDrawZoomBox().

◆ end_rendering()

void QtHandles::GLCanvas::end_rendering ( void  )
private

Definition at line 311 of file GLCanvas.cc.

Referenced by do_getPixels(), and do_print().

◆ getPixels()

virtual uint8NDArray QtHandles::Canvas::getPixels ( void  )
inlinevirtualinherited

◆ keyPressEvent()

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

Definition at line 266 of file GLCanvas.cc.

References QtHandles::Canvas::canvasKeyPressEvent().

◆ keyReleaseEvent()

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

Definition at line 273 of file GLCanvas.cc.

References QtHandles::Canvas::canvasKeyReleaseEvent().

◆ mouseDoubleClickEvent()

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

Definition at line 236 of file GLCanvas.cc.

References QtHandles::Canvas::canvasMouseDoubleClickEvent().

◆ mouseMoveEvent()

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

Definition at line 242 of file GLCanvas.cc.

References QtHandles::Canvas::canvasMouseMoveEvent().

◆ mousePressEvent()

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

Definition at line 248 of file GLCanvas.cc.

References QtHandles::Canvas::canvasMousePressEvent().

◆ mouseReleaseEvent()

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

Definition at line 254 of file GLCanvas.cc.

References QtHandles::Canvas::canvasMouseReleaseEvent().

◆ paintGL()

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

Definition at line 230 of file GLCanvas.cc.

References QtHandles::Canvas::canvasPaintEvent().

◆ print()

void QtHandles::Canvas::print ( const QString &  file_cmd,
const QString &  term 
)
inlineinherited

Definition at line 57 of file Canvas.h.

References QtHandles::Canvas::do_print(), and QtHandles::Canvas::m_handle.

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

◆ qWidget()

QWidget* QtHandles::GLCanvas::qWidget ( void  )
inlinevirtual

Implements QtHandles::Canvas.

Definition at line 66 of file GLCanvas.h.

◆ redraw()

◆ resize()

void QtHandles::GLCanvas::resize ( int  ,
int  ,
int  ,
int   
)
inlinevirtual

Implements QtHandles::Canvas.

Definition at line 62 of file GLCanvas.h.

◆ select_object()

◆ selectFromAxes()

graphics_object QtHandles::GLCanvas::selectFromAxes ( const graphics_object ax,
const QPoint &  pt 
)
virtual

Implements QtHandles::Canvas.

Definition at line 168 of file GLCanvas.cc.

References s, and octave::select_ignore_hittest.

◆ setCursor()

void QtHandles::Canvas::setCursor ( MouseMode  mode)
inherited

◆ setEventMask()

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

Definition at line 64 of file Canvas.h.

References QtHandles::Canvas::m_eventMask.

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

◆ toggleAxes()

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

Implements QtHandles::Canvas.

Definition at line 150 of file GLCanvas.cc.

References QtHandles::Canvas::canvasToggleAxes(), and gh.

◆ toggleGrid()

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

Implements QtHandles::Canvas.

Definition at line 156 of file GLCanvas.cc.

References QtHandles::Canvas::canvasToggleGrid(), and gh.

◆ updateCurrentPoint() [1/2]

◆ updateCurrentPoint() [2/2]

◆ wheelEvent()

void QtHandles::GLCanvas::wheelEvent ( QWheelEvent *  event)
protected

Definition at line 260 of file GLCanvas.cc.

References QtHandles::Canvas::canvasWheelEvent().


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