GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Backend.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2011-2018 Michael Goffioul
4 
5 This file is part of Octave.
6 
7 Octave is free software: you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_Backend_h)
24 #define octave_Backend_h 1
25 
26 #include <QObject>
27 
28 #include "graphics.h"
29 
30 namespace QtHandles
31 {
32 
33  class Object;
34  class ObjectProxy;
35 
36  class Backend :
37  public QObject,
39  {
40  Q_OBJECT
41 
42  public:
43  Backend (void);
44 
45  ~Backend (void);
46 
47  bool is_valid (void) const { return true; }
48 
49  void redraw_figure (const graphics_object& h) const;
50 
51  void update (const graphics_object& obj, int pId);
52 
53  bool initialize (const graphics_object& obj);
54 
55  void finalize (const graphics_object& obj);
56 
57  void print_figure (const graphics_object& go,
58  const std::string& term,
59  const std::string& file_cmd,
60  const std::string& /*debug_file*/) const;
61 
62  uint8NDArray get_pixels (const graphics_object& go) const;
63 
64  static Object * toolkitObject (const graphics_object& go);
65 
66  static ObjectProxy * toolkitObjectProxy (const graphics_object& go);
67 
68  signals:
69  void createObject (double handle);
70  };
71 
72 }
73 
74 #endif
void update(const graphics_object &obj, int pId)
Definition: Backend.cc:115
bool initialize(const graphics_object &obj)
Definition: Backend.cc:85
void redraw_figure(const graphics_object &h) const
Definition: Backend.cc:171
void print_figure(const graphics_object &go, const std::string &term, const std::string &file_cmd, const std::string &) const
Definition: Backend.cc:183
void createObject(double handle)
double h
Definition: graphics.cc:11808
static ObjectProxy * toolkitObjectProxy(const graphics_object &go)
Definition: Backend.cc:223
uint8NDArray get_pixels(const graphics_object &go) const
Definition: Backend.cc:196
static Object * toolkitObject(const graphics_object &go)
Definition: Backend.cc:212
bool is_valid(void) const
Definition: Backend.h:47
is a function handle
Definition: bsxfun.cc:337
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
Definition: utils.cc:888
void finalize(const graphics_object &obj)
Definition: Backend.cc:152