#include <wx/splitter.h>
#include <creaImageIOSystem.h>
+#include <creaImageIOImagePointerHolder.h>
// For image preview
// vtk and wxvtk classes
class WxViewer : public wxPanel
{
-
+
public:
- // friend class ThreadedMovie;
/// Ctor
WxViewer();
WxViewer(wxWindow *parent,
const wxSize& size);
/// Dtor
virtual ~WxViewer();
- ///Shows the image in the vector as a movie
- //void ShowImages();
- /// Sets the movie size
- void SetMovieSize(unsigned int);
- ///Sets the ith image of the movie
- void SetImage(int i, vtkImageData* im);
- ///Clears the selection of images
- // void ClearImages();
- ///Returns true if the image vector is empty
- bool ImagesEmpty();
///
void ShowNextImage();
-
- void OnInternalIdle();
void StartPlayer();
bool RefreshIfNecessary();
+ void SetImageVector(std::vector<ImagePointerHolder*>& pointers);
+
+
private:
///Shows the image passed as parameter
void ShowImage(vtkImageData* im);
/// Current spacing
double mspx,mspy,mspz;
- /// The vector of images to show
- std::vector<vtkImageData*> images;
///
int mCurrent;
///The threaded movie player
///
bool mNeedRefresh;
+
+
vtkImageData* mLastImageShown;
+ std::vector<ImagePointerHolder*> imagePointers;
};