]> Creatis software - crea.git/blobdiff - src/creawxVTKRenderWindowInteractor.h
Clean code
[crea.git] / src / creawxVTKRenderWindowInteractor.h
index 0d03187703a6e5ffa978effba9923f04c71481b4..82b463a681d8bca11044b7cf46705c33e88a79c2 100644 (file)
@@ -79,6 +79,7 @@
 #include <wx/dcclient.h>
 
 // vtk includes
+#include <vtkVersionMacros.h>
 #include "vtkRenderWindowInteractor.h"
 #include "vtkRenderWindow.h"
 
 # error This GUI is not supported by wxVTKRenderWindowInteractor for now
 #endif
 
+#include "creaSystem.h"
+
+#include "vtkTDxConfigure.h" // defines VTK_USE_TDX
+#ifdef VTK_USE_TDX
+class vtkTDxMacDevice;
+#endif
+
+
+
 // wx forward declarations
 class wxPaintEvent;
 class wxMouseEvent;
@@ -113,7 +123,7 @@ namespace crea
 #if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
 class wxVTKRenderWindowInteractor : public wxGLCanvas, public vtkRenderWindowInteractor
 #else
-class wxVTKRenderWindowInteractor : public wxWindow, public vtkRenderWindowInteractor
+class CREA_EXPORT wxVTKRenderWindowInteractor : public wxWindow, public vtkRenderWindowInteractor
 #endif //__WXGTK__
 {
 //EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
@@ -133,7 +143,7 @@ class wxVTKRenderWindowInteractor : public wxWindow, public vtkRenderWindowInter
                                 const wxSize &size = wxDefaultSize,
                                 long style = wxWANTS_CHARS | wxNO_FULL_REPAINT_ON_RESIZE,
                                 const wxString &name = wxPanelNameStr);
-    vtkTypeRevisionMacro(wxVTKRenderWindowInteractor,vtkRenderWindowInteractor);
+  //EED win Compilation why ??:    vtkTypeRevisionMacro(wxVTKRenderWindowInteractor,vtkRenderWindowInteractor);
     static wxVTKRenderWindowInteractor * New();
     void PrintSelf(ostream& os, vtkIndent indent);
 
@@ -204,6 +214,11 @@ class wxVTKRenderWindowInteractor : public wxWindow, public vtkRenderWindowInter
     long GetHandleHack();
     int Stereo;
     
+#ifdef VTK_USE_TDX
+  vtkTDxMacDevice *Device;
+#endif
+
+    
   private:
     long Handle;
     bool Created;