1 #ifndef __creaImageIOWxViewer_h_INCLUDED__
2 #define __creaImageIOWxViewer_h_INCLUDED__
9 #include <wx/imaglist.h>
10 #include <wx/splitter.h>
12 #include <creaImageIOSystem.h>
13 #include <creaImageIOImagePointerHolder.h>
16 // vtk and wxvtk classes
17 #include "creawxVTKRenderWindowInteractor.h"
18 #include "vtkImageViewer2.h"
25 class WxViewer : public wxPanel
29 // friend class ThreadedMovie;
32 WxViewer(wxWindow *parent,
39 ///Shows the image in the vector as a movie
41 /// Sets the movie size
42 void SetMovieSize(unsigned int);
43 ///Sets the ith image of the movie
44 void SetImage(int i, vtkImageData* im);
45 ///Clears the selection of images
46 // void ClearImages();
47 ///Returns true if the image vector is empty
52 void OnInternalIdle();
58 bool RefreshIfNecessary();
60 void SetImageVector(std::vector<ImagePointerHolder*>& pointers);
64 ///Shows the image passed as parameter
65 void ShowImage(vtkImageData* im);
68 vtkImageViewer2* mViewer;
69 /// Associated wxvtk interactor
70 crea::creawxVTKRenderWindowInteractor *mInteractor;
73 int mx1,mx2,my1,my2,mz1,mz2;
75 double mspx,mspy,mspz;
77 /// The vector of images to show
78 std::vector<vtkImageData*> images;
81 ///The threaded movie player
82 WxViewerPlayer* mPlayer;
91 vtkImageData* mLastImageShown;
92 std::vector<ImagePointerHolder*> imagePointers;