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"
24 class WxViewer : public wxPanel
28 // friend class ThreadedMovie;
31 WxViewer(wxWindow *parent,
38 ///Shows the image in the vector as a movie
40 /// Sets the movie size
41 void SetMovieSize(unsigned int);
42 ///Sets the ith image of the movie
43 void SetImage(int i, vtkImageData* im);
44 ///Clears the selection of images
45 // void ClearImages();
46 ///Returns true if the image vector is empty
51 void OnInternalIdle();
55 bool RefreshIfNecessary();
58 ///Shows the image passed as parameter
59 void ShowImage(vtkImageData* im);
62 vtkImageViewer2* mViewer;
63 /// Associated wxvtk interactor
64 crea::creawxVTKRenderWindowInteractor *mInteractor;
67 int mx1,mx2,my1,my2,mz1,mz2;
69 double mspx,mspy,mspz;
71 /// The vector of images to show
72 std::vector<vtkImageData*> images;
75 ///The threaded movie player
76 WxViewerPlayer* mPlayer;
83 vtkImageData* mLastImageShown;