itom  4.1.0
0.h
1 #ifndef A_H
2 #define A_H
3 
4 // This file is a dirty litte trick for the automoccer of qt - we MUST include our python stuff before ANY
5 // qt stuff so we make this class which is first in the file list and first in alphabet and gets included
6 // in the automoccer cpp file first
7 
8 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
9 
11 // see http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=7f3f750596a105d48ea84ebfe1b1c4ca03e0bab3
12 #if (defined _DEBUG) && (defined WIN32)
13  #undef _DEBUG
14 
15  //workaround following: https://stackoverflow.com/questions/23068700/embedding-python3-in-qt-5
16  #pragma push_macro("slots")
17  #undef slots
18  #include "Python.h"
19  #pragma pop_macro("slots")
20 
21  #include "node.h"
22  #include "numpy/arrayobject.h" //for numpy arrays
23  #define _DEBUG
24 #else
25  //workaround following: https://stackoverflow.com/questions/23068700/embedding-python3-in-qt-5
26  #pragma push_macro("slots")
27  #undef slots
28  #include "Python.h"
29  #pragma pop_macro("slots")
30 
31  #include "node.h"
32  #include "numpy/arrayobject.h"
33 #endif
34 
35 #include <qobject.h>
36 
37 class qDummyClass : public QObject
38 {
39  Q_OBJECT
40  public:
41  qDummyClass() {};
42  ~qDummyClass() {};
43 
44  private:
45 };
46 
47 #endif // A_H
python
Definition: 0.h:37