--- /dev/null
+#ifndef __creaImageIOImagePointerHolder_INCLUDED__
+#define __creaImageIOImagePointerHolder_INCLUDED__
+#include <creaImageIOSystem.h>
+#ifdef USE_WXWIDGETS
+
+// wx
+#include <creaWx.h>
+#include <wx/image.h>
+#include <wx/imaglist.h>
+#include <wx/splitter.h>
+#include <vtkImageData.h>
+namespace creaImageIO
+{
+ // The class that holds the pointer to the images to show
+ class ImagePointerHolder
+ {
+ public:
+ ImagePointerHolder(vtkImageData* im):
+ mImage(im)
+ {}
+ ImagePointerHolder();
+ void Set(vtkImageData* im){wxMutexLocker lock(mMutex);mImage=im;}
+ vtkImageData* Get(){wxMutexLocker lock(mMutex);return mImage;}
+ private:
+ vtkImageData* mImage;
+ /// The mutex
+ wxMutex mMutex;
+ };
+}
+#endif
+#endif
\ No newline at end of file