GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: plugins/pyqcustomplot/decorator.cc Lines: 0 57 0.0 %
Date: 2024-04-14 11:13:22 Branches: 0 2 0.0 %

Line Branch Exec Source
1
// Copyright (c) 2018, Joseph Mirabel
2
// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3
//
4
// This file is part of gepetto-viewer.
5
// gepetto-viewer is free software: you can redistribute it
6
// and/or modify it under the terms of the GNU Lesser General Public
7
// License as published by the Free Software Foundation, either version
8
// 3 of the License, or (at your option) any later version.
9
//
10
// gepetto-viewer is distributed in the hope that it will be
11
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
// General Lesser Public License for more details.  You should have
14
// received a copy of the GNU Lesser General Public License along with
15
// gepetto-viewer. If not, see <http://www.gnu.org/licenses/>.
16
17
#include <PythonQt.h>
18
19
#include <decorator.hh>
20
#include <wrapper/qcp.hh>
21
22
void registerQCustomPlot() {
23
  PythonQt::self()->registerCPPClass(
24
      "QCP", "", "QCustomPlot", PythonQtCreateObject<wrapper::PyQCP>, NULL);
25
26
  PythonQt::self()->registerClass(&QCustomPlot ::staticMetaObject,
27
                                  "QCustomPlot");
28
  PythonQt::self()->registerClass(&QCPPainter ::staticMetaObject,
29
                                  "QCustomPlot");
30
  PythonQt::self()->registerClass(&QCPLayer ::staticMetaObject, "QCustomPlot");
31
32
  PythonQt::self()->registerClass(&QCPLayerable ::staticMetaObject,
33
                                  "QCustomPlot");
34
35
  PythonQt::self()->registerClass(&QCPAbstractPlottable::staticMetaObject,
36
                                  "QCustomPlot");
37
  PythonQt::self()->registerClass(&QCPBars ::staticMetaObject, "QCustomPlot");
38
  PythonQt::self()->registerClass(&QCPColorMap ::staticMetaObject,
39
                                  "QCustomPlot");
40
  PythonQt::self()->registerClass(&QCPCurve ::staticMetaObject, "QCustomPlot");
41
  PythonQt::self()->registerClass(&QCPFinancial ::staticMetaObject,
42
                                  "QCustomPlot");
43
  PythonQt::self()->registerClass(&QCPGraph ::staticMetaObject, "QCustomPlot");
44
45
  PythonQt::self()->registerClass(&QCPAbstractItem ::staticMetaObject,
46
                                  "QCustomPlot");
47
  PythonQt::self()->registerClass(&QCPItemBracket ::staticMetaObject,
48
                                  "QCustomPlot");
49
  PythonQt::self()->registerClass(&QCPItemCurve ::staticMetaObject,
50
                                  "QCustomPlot");
51
  PythonQt::self()->registerClass(&QCPItemEllipse ::staticMetaObject,
52
                                  "QCustomPlot");
53
  PythonQt::self()->registerClass(&QCPItemLine ::staticMetaObject,
54
                                  "QCustomPlot");
55
  PythonQt::self()->registerClass(&QCPItemPixmap ::staticMetaObject,
56
                                  "QCustomPlot");
57
  PythonQt::self()->registerClass(&QCPItemRect ::staticMetaObject,
58
                                  "QCustomPlot");
59
  PythonQt::self()->registerClass(&QCPItemStraightLine::staticMetaObject,
60
                                  "QCustomPlot");
61
  PythonQt::self()->registerClass(&QCPItemText ::staticMetaObject,
62
                                  "QCustomPlot");
63
  PythonQt::self()->registerClass(&QCPItemRichText ::staticMetaObject,
64
                                  "QCustomPlot");
65
  PythonQt::self()->registerClass(&QCPItemTracer ::staticMetaObject,
66
                                  "QCustomPlot");
67
  // PythonQt::self()->addParentClass ("QCPItemRichText", "QCPItemText",
68
  // PythonQtUpcastingOffset<QCPItemRichText,QCPItemText>());
69
70
  PythonQt::self()->registerClass(&QCPLayoutElement::staticMetaObject,
71
                                  "QCustomPlot");
72
  PythonQt::self()->registerClass(&QCPLayout ::staticMetaObject, "QCustomPlot");
73
  PythonQt::self()->registerClass(&QCPAxisRect ::staticMetaObject,
74
                                  "QCustomPlot");
75
  PythonQt::self()->registerClass(&QCPLayoutGrid ::staticMetaObject,
76
                                  "QCustomPlot");
77
  PythonQt::self()->registerClass(&QCPLegend ::staticMetaObject, "QCustomPlot");
78
  PythonQt::self()->registerClass(&QCPAxis ::staticMetaObject, "QCustomPlot");
79
80
  PythonQt::self()->addDecorators(new QCustomPlotDecorator());
81
  PythonQt::self()->registerCPPClass("QCPPainter", "QPainter", "QCustomPlot");
82
  PythonQt::self()->registerCPPClass("QCustomPlot", "QWidget", "QCustomPlot");
83
  // PythonQt::self()->registerCPPClass ("QCPAxisPainterPrivate",
84
  // "QGraphicsItem" , "QCustomPlot");
85
  PythonQt::self()->registerCPPClass("QCPLayer", "QObject", "QCustomPlot");
86
  // PythonQt::self()->registerCPPClass ("QCPPlotTitle"         ,
87
  // "QGraphicsItem" , "QCustomPlot"); PythonQt::self()->registerCPPClass
88
  // ("QCPAbstractLegendItem", "QGraphicsItem" , "QCustomPlot");
89
  // PythonQt::self()->registerCPPClass ("QCPColorMap"          ,
90
  // "QGraphicsItem" , "QCustomPlot"); PythonQt::self()->registerCPPClass
91
  // ("QCPColorScale"        , "QGraphicsItem" , "QCustomPlot");
92
  // PythonQt::self()->registerCPPClass ("QCPBars"              ,
93
  // "QGraphicsItem" , "QCustomPlot");
94
95
  PythonQt::self()->registerCPPClass("QCPItemAnchor", NULL, "QCustomPlot");
96
  PythonQt::self()->registerCPPClass("QCPItemPosition", "QCPItemAnchor",
97
                                     "QCustomPlot");
98
99
  // Children of QCPLayerable
100
  PythonQt::self()->registerCPPClass("QCPLayerable", "QObject", "QCustomPlot");
101
102
  PythonQt::self()->registerCPPClass("QCPAbstractItem", "QCPLayerable",
103
                                     "QCustomPlot");
104
  PythonQt::self()->registerCPPClass("QCPItemBracket", "QCPAbstractItem",
105
                                     "QCustomPlot");
106
  PythonQt::self()->registerCPPClass("QCPItemCurve", "QCPAbstractItem",
107
                                     "QCustomPlot");
108
  PythonQt::self()->registerCPPClass("QCPItemEllipse", "QCPAbstractItem",
109
                                     "QCustomPlot");
110
  PythonQt::self()->registerCPPClass("QCPItemLine", "QCPAbstractItem",
111
                                     "QCustomPlot");
112
  PythonQt::self()->registerCPPClass("QCPItemPixmap", "QCPAbstractItem",
113
                                     "QCustomPlot");
114
  PythonQt::self()->registerCPPClass("QCPItemRect", "QCPAbstractItem",
115
                                     "QCustomPlot");
116
  PythonQt::self()->registerCPPClass("QCPItemStraightLine", "QCPAbstractItem",
117
                                     "QCustomPlot");
118
  PythonQt::self()->registerCPPClass("QCPItemText", "QCPAbstractItem",
119
                                     "QCustomPlot");
120
  PythonQt::self()->registerCPPClass("QCPItemTracer", "QCPAbstractItem",
121
                                     "QCustomPlot");
122
123
  PythonQt::self()->registerCPPClass("QCPItemRichText", "QCPItemText",
124
                                     "QCustomPlot");
125
126
  PythonQt::self()->registerCPPClass("QCPAbstractPlottable", "QCPLayerable",
127
                                     "QCustomPlot");
128
  PythonQt::self()->registerCPPClass("QCPBars", "QCPAbstractPlottable",
129
                                     "QCustomPlot");
130
  // PythonQt::self()->registerCPPClass ("QCPColorMap"          ,
131
  // "QCPAbstractPlottable" , "QCustomPlot");
132
  PythonQt::self()->registerCPPClass("QCPCurve", "QCPAbstractPlottable",
133
                                     "QCustomPlot");
134
  // PythonQt::self()->registerCPPClass ("QCPFinancial"         ,
135
  // "QCPAbstractPlottable" , "QCustomPlot");
136
  PythonQt::self()->registerCPPClass("QCPGraph", "QCPAbstractPlottable",
137
                                     "QCustomPlot");
138
  // PythonQt::self()->registerCPPClass ("QCPStatisticalBox"    ,
139
  // "QCPAbstractPlottable" , "QCustomPlot");
140
141
  PythonQt::self()->registerCPPClass("QCPLayoutElement", "QCPLayerable",
142
                                     "QCustomPlot");
143
  PythonQt::self()->registerCPPClass("QCPLayout", "QCPLayoutElement",
144
                                     "QCustomPlot");
145
  PythonQt::self()->registerCPPClass("QCPAxisRect", "QCPLayoutElement",
146
                                     "QCustomPlot");
147
  PythonQt::self()->registerCPPClass("QCPLayoutGrid", "QCPLayout",
148
                                     "QCustomPlot");
149
  PythonQt::self()->registerCPPClass("QCPLegend", "QCPLayoutGrid",
150
                                     "QCustomPlot");
151
152
  PythonQt::self()->registerCPPClass("QCPAxis", "QCPLayerable", "QCustomPlot");
153
}