GNU Octave  4.0.0
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 | Private Attributes | List of all members
QtHandles::Canvas Class Referenceabstract

#include "Canvas.h"

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

Public Types

enum  EventMask { KeyPress = 0x01, KeyRelease = 0x02 }
 

Public Member Functions

virtual ~Canvas (void)
 
void addEventMask (int m)
 
virtual void autoAxes (const graphics_handle &handle)=0
 
void blockRedraw (bool block=true)
 
void clearEventMask (int m)
 
void print (const QString &file_cmd, const QString &term)
 
virtual QWidgetqWidget (void)=0
 
void redraw (bool sync=false)
 
void setCursor (MouseMode mode)
 
void setEventMask (int m)
 
virtual void toggleAxes (const graphics_handle &handle)=0
 
virtual void toggleGrid (const graphics_handle &handle)=0
 

Static Public Member Functions

static Canvascreate (const std::string &name, QWidget *parent, const graphics_handle &handle)
 

Protected Member Functions

 Canvas (const graphics_handle &handle)
 
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)
 
virtual void draw (const graphics_handle &handle)=0
 
virtual void drawZoomBox (const QPoint &p1, const QPoint &p2)=0
 
virtual void resize (int x, int y, int width, int height)=0
 
virtual graphics_object selectFromAxes (const graphics_object &ax, const QPoint &pt)=0
 
void updateCurrentPoint (const graphics_object &fig, const graphics_object &obj, QMouseEvent *event)
 
void updateCurrentPoint (const graphics_object &fig, const graphics_object &obj)
 

Private Attributes

bool m_clickMode
 
int m_eventMask
 
graphics_handle m_handle
 
QPoint m_mouseAnchor
 
graphics_handle m_mouseAxes
 
QPoint m_mouseCurrent
 
MouseMode m_mouseMode
 
bool m_rectMode
 
bool m_redrawBlocked
 

Detailed Description

Definition at line 42 of file Canvas.h.

Member Enumeration Documentation

Enumerator
KeyPress 
KeyRelease 

Definition at line 45 of file Canvas.h.

Constructor & Destructor Documentation

virtual QtHandles::Canvas::~Canvas ( void  )
inlinevirtual

Definition at line 52 of file Canvas.h.

QtHandles::Canvas::Canvas ( const graphics_handle handle)
inlineprotected

Definition at line 82 of file Canvas.h.

Member Function Documentation

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

Definition at line 59 of file Canvas.h.

References m_eventMask.

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

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

Definition at line 201 of file Canvas.cc.

References Ffeval(), ovl(), and redraw().

Referenced by canvasMouseReleaseEvent().

virtual void QtHandles::Canvas::autoAxes ( const graphics_handle handle)
pure virtual

Implemented in QtHandles::GLCanvas.

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

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

Definition at line 67 of file Canvas.cc.

References m_redrawBlocked.

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

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

Definition at line 469 of file Canvas.cc.

References canvasMousePressEvent().

Referenced by QtHandles::GLCanvas::mouseDoubleClickEvent().

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

Definition at line 60 of file Canvas.h.

References m_eventMask.

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

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

Definition at line 966 of file Canvas.cc.

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

virtual void QtHandles::Canvas::draw ( const graphics_handle handle)
protectedpure virtual

Implemented in QtHandles::GLCanvas.

Referenced by canvasPaintEvent().

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

Implemented in QtHandles::GLCanvas.

Referenced by canvasPaintEvent().

void QtHandles::Canvas::print ( const QString &  file_cmd,
const QString &  term 
)
virtual QWidget* QtHandles::Canvas::qWidget ( void  )
pure virtual
void QtHandles::Canvas::redraw ( bool  sync = false)
virtual void QtHandles::Canvas::resize ( int  x,
int  y,
int  width,
int  height 
)
protectedpure virtual

Implemented in QtHandles::GLCanvas.

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

Implemented in QtHandles::GLCanvas.

Referenced by canvasMousePressEvent(), and canvasWheelEvent().

void QtHandles::Canvas::setCursor ( MouseMode  mode)
void QtHandles::Canvas::setEventMask ( int  m)
inline

Definition at line 61 of file Canvas.h.

References m_eventMask.

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

virtual void QtHandles::Canvas::toggleAxes ( const graphics_handle handle)
pure virtual

Implemented in QtHandles::GLCanvas.

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

virtual void QtHandles::Canvas::toggleGrid ( const graphics_handle handle)
pure virtual

Implemented in QtHandles::GLCanvas.

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

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

Member Data Documentation

bool QtHandles::Canvas::m_clickMode
private

Definition at line 114 of file Canvas.h.

Referenced by canvasMousePressEvent(), and canvasMouseReleaseEvent().

int QtHandles::Canvas::m_eventMask
private
graphics_handle QtHandles::Canvas::m_handle
private
QPoint QtHandles::Canvas::m_mouseAnchor
private

Definition at line 115 of file Canvas.h.

Referenced by canvasMousePressEvent(), canvasMouseReleaseEvent(), and canvasPaintEvent().

graphics_handle QtHandles::Canvas::m_mouseAxes
private
QPoint QtHandles::Canvas::m_mouseCurrent
private

Definition at line 116 of file Canvas.h.

Referenced by canvasMouseMoveEvent(), canvasMousePressEvent(), and canvasPaintEvent().

MouseMode QtHandles::Canvas::m_mouseMode
private
bool QtHandles::Canvas::m_rectMode
private

Definition at line 119 of file Canvas.h.

Referenced by canvasMousePressEvent(), canvasMouseReleaseEvent(), and canvasPaintEvent().

bool QtHandles::Canvas::m_redrawBlocked
private

Definition at line 112 of file Canvas.h.

Referenced by blockRedraw(), and canvasPaintEvent().


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