X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOWxViewer.h;h=528336455f0fedb5e9cd2be74f5b83b78e83f13b;hb=7ae1412df3d682f639683e751f46a3f07be16d0b;hp=e9ea7a193cfd347597047f5cc2059050722d400c;hpb=82026cc5a9a36392c481513cd86091714eca51d1;p=creaImageIO.git diff --git a/src2/creaImageIOWxViewer.h b/src2/creaImageIOWxViewer.h index e9ea7a1..5283364 100644 --- a/src2/creaImageIOWxViewer.h +++ b/src2/creaImageIOWxViewer.h @@ -26,8 +26,7 @@ namespace creaImageIO { public: - // friend class ThreadedMovie; - /// Ctor + /// Ctors WxViewer(); WxViewer(wxWindow *parent, const wxWindowID id, @@ -36,59 +35,40 @@ namespace creaImageIO 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(); - /// + /// Shows the next image in the image vector void ShowNextImage(); - - void OnInternalIdle(); - + ///Starts the image player void StartPlayer(); - + ///Stops the image player void StopPlayer(); - + ///Refreshes the interface if the current image shown has changed bool RefreshIfNecessary(); - + ///Sets a new image vector to be read void SetImageVector(std::vector& pointers); private: - ///Shows the image passed as parameter + ///Shows the image passed as parameter void ShowImage(vtkImageData* im); - /// Previewer vtkImageViewer2* mViewer; /// Associated wxvtk interactor crea::creawxVTKRenderWindowInteractor *mInteractor; - /// Current extent int mx1,mx2,my1,my2,mz1,mz2; /// Current spacing double mspx,mspy,mspz; - - /// The vector of images to show - std::vector images; - /// + /// Current image shown int mCurrent; ///The threaded movie player WxViewerPlayer* mPlayer; - /// The mutex wxMutex mMutex; - - /// + /// Boolean that declares if the player needs to be refreshed bool mNeedRefresh; - - + ///Last image shown vtkImageData* mLastImageShown; + ///The vectors of images to be shown std::vector imagePointers; };