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
Backend.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2011-2017 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 the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 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 <http://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  static Object* toolkitObject (const graphics_object& go);
63 
65 
66  signals:
67  void createObject (double handle);
68  };
69 
70 }
71 
72 #endif
void update(const graphics_object &obj, int pId)
Definition: Backend.cc:115
bool initialize(const graphics_object &obj)
Definition: Backend.cc:85
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 redraw_figure(const graphics_object &h) const
Definition: Backend.cc:171
void createObject(double handle)
Definition: moc-Backend.cc:100
double h
Definition: graphics.cc:11205
static ObjectProxy * toolkitObjectProxy(const graphics_object &go)
Definition: Backend.cc:210
static Object * toolkitObject(const graphics_object &go)
Definition: Backend.cc:199
bool is_valid(void) const
Definition: Backend.h:47
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:854
void finalize(const graphics_object &obj)
Definition: Backend.cc:152