// AKT: wxOSX 2.9.x defines __WXOSX_COCOA__ rather than __WXCOCOA__
#ifdef __WXOSX_COCOA__
- #import <Cocoa/Cocoa.h>
- #define __WXCOCOA__
+ #import <Cocoa/Cocoa.h>
+ #define __WXCOCOA__
#endif
#if defined(__WXMAC__) && wxCHECK_VERSION(2,9,0)
// To access objc calls on cocoa
#ifdef __WXCOCOA__
#ifdef VTK_USE_COCOA
-//EED #import <Cocoa/Cocoa.h>
// This trick is no longer need in VTK CVS, should get rid of that:
#define id Id
#else
END_EVENT_TABLE()
//EED win Compilation why??: vtkCxxRevisionMacro(wxVTKRenderWindowInteractor, "$Revision$")
-vtkInstantiatorNewMacro(wxVTKRenderWindowInteractor)
+
+//EED2020-04-10
+#if VTK_MAJOR_VERSION < 8
+ vtkInstantiatorNewMacro(wxVTKRenderWindowInteractor)
+#endif
#if defined(__WXGTK__) && defined(USE_WXGLCANVAS)
static int wxvtk_attributes[]={
Size[0] = x;
Size[1] = y;
// and our RenderWindow's size
+
+#ifdef __WXCOCOA__
+ #ifdef VTK_USE_COCOA
+ #else
+ #endif //VTK_USE_COCOA
+#else
RenderWindow->SetSize(x, y);
+#endif //__WXCOCOA__
+
#if defined(__WXMSW__)
this->Refresh();
#endif //__WXMSW__
- }
- }
+ } // if x y
+ } // if RenderWindow
}
//---------------------------------------------------------------------------
int wxVTKRenderWindowInteractor::CreateTimer(int WXUNUSED(timertype))
void wxVTKRenderWindowInteractor::OnPaint(wxPaintEvent& WXUNUSED(event))
{
//must always be here
- wxPaintDC pDC(this);
+//EED2021-08-26
+#ifdef __WXCOCOA__
+#else
+ wxPaintDC pDC(this);
+#endif
//do it here rather than in the cstor: this is safer.
if(!Handle)
#else
RenderWindow->SetWindowId(reinterpret_cast<void *>(Handle));
#endif
-
-
// Cocoa
// this->GetNSView() <-> DisplayId