23 #if ! defined (octave_Canvas_h) 24 #define octave_Canvas_h 1 52 virtual ~Canvas (
void) =
default;
54 void redraw (
bool sync =
false);
57 void print (
const QString& file_cmd,
const QString& term)
81 virtual void drawZoomBox (
const QPoint& p1,
const QPoint& p2) = 0;
82 virtual void resize (
int x,
int y,
int width,
int height) = 0;
84 const QPoint& pt) = 0;
86 virtual void do_print (
const QString& file_cmd,
const QString& term,
119 bool axes_only =
false,
120 std::vector<std::string> omit = std::vector<std::string> ());
graphics_handle m_mouseAxes
virtual QWidget * qWidget(void)=0
void select_object(graphics_object obj, QMouseEvent *event, graphics_object ¤tObj, graphics_object &axesObj, bool axes_only=false, std::vector< std::string > omit=std::vector< std::string >())
virtual void do_print(const QString &file_cmd, const QString &term, const graphics_handle &handle)=0
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
virtual void autoAxes(const graphics_handle &handle)=0
void updateCurrentPoint(const graphics_object &fig, const graphics_object &obj, QMouseEvent *event)
void print(const QString &file_cmd, const QString &term)
void redraw(bool sync=false)
void canvasToggleGrid(const graphics_handle &handle)
virtual void drawZoomBox(const QPoint &p1, const QPoint &p2)=0
void canvasMouseDoubleClickEvent(QMouseEvent *event)
void canvasToggleAxes(const graphics_handle &handle)
void canvasMousePressEvent(QMouseEvent *event)
nd deftypefn *std::string name
void canvasWheelEvent(QWheelEvent *event)
bool canvasKeyPressEvent(QKeyEvent *event)
void canvasMouseMoveEvent(QMouseEvent *event)
virtual uint8NDArray getPixels(void)
void canvasAutoAxes(const graphics_handle &handle)
void canvasPaintEvent(void)
Canvas(const graphics_handle &handle)
virtual void toggleAxes(const graphics_handle &handle)=0
virtual void toggleGrid(const graphics_handle &handle)=0
void canvasMouseReleaseEvent(QMouseEvent *event)
bool canvasKeyReleaseEvent(QKeyEvent *event)
virtual void draw(const graphics_handle &handle)=0
void setCursor(MouseMode mode)
virtual graphics_object selectFromAxes(const graphics_object &ax, const QPoint &pt)=0
the element is set to zero In other the statement xample y
virtual uint8NDArray do_getPixels(const graphics_handle &handle)=0
static Canvas * create(const std::string &name, QWidget *parent, const graphics_handle &handle)
void annotation_callback(const octave_value_list &args)
virtual void resize(int x, int y, int width, int height)=0
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
void blockRedraw(bool block=true)
void clearEventMask(int m)
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x
virtual ~Canvas(void)=default