1 #ifndef __creaImageIOWxViewer_h_INCLUDED__
2 #define __creaImageIOWxViewer_h_INCLUDED__
9 #include <wx/imaglist.h>
10 #include <wx/splitter.h>
12 #include <creaImageIOSystem.h>
15 // vtk and wxvtk classes
16 #include "creawxVTKRenderWindowInteractor.h"
17 #include "vtkImageViewer2.h"
22 class WxViewer : public wxFrame
26 friend class ThreadedMovie;
29 WxViewer(wxWindow *parent,
36 ///Shows the image in the vector as a movie
38 ///Shows the image passed as parameter
39 void ShowImage(vtkImageData* im);
40 ///Adds an image to the selection
41 void AddImage(vtkImageData* im);
42 ///Clears the selection of images
44 ///Returns true if the image vector is empty
49 vtkImageViewer2* mViewer;
50 /// Associated wxvtk interactor
51 crea::creawxVTKRenderWindowInteractor *mInteractor;
53 int mx1,mx2,my1,my2,mz1,mz2;
54 double mspx,mspy,mspz;
56 /// The vector of images to show
57 std::vector<vtkImageData*> images;
59 ThreadedMovie* mMovie;