X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvMainWindow.h;h=c21939754107158077001f72023ccea754fc53a8;hb=7ee1221182f8b142a3f91a61bf13f1bc0c3852cd;hp=ffae061112b828f7bd3fc5db982183eb0394a32b;hpb=0b04af7278ad344a167c4e8d99e6e67c535f0d95;p=clitk.git diff --git a/vv/vvMainWindow.h b/vv/vvMainWindow.h index ffae061..c219397 100644 --- a/vv/vvMainWindow.h +++ b/vv/vvMainWindow.h @@ -45,9 +45,11 @@ class vvMainWindow: public vvMainWindowBase, vvMainWindow(); ~vvMainWindow(); void LoadImages(std::vector filenames, LoadedImageType type); - void AddImage(vvImage::Pointer image,std::string filename); + vvSlicerManager * AddImage(vvImage::Pointer image,std::string filename); void AddField(QString file,int index); void AddOverlayImage(int index, QString filename); + void AddFusionImage(int index, QString filename); + void AddROI(int index, QString filename); ///Adds a mesh to a SlicerManager, with optional warping by vector field void AddContour(int image_index, vvMesh::Pointer contour, bool propagation); ///This is used to show an image when opened or computed @@ -70,6 +72,7 @@ public slots: void OpenRecentImage(); void OpenImageWithTime(); void MergeImages(); + void SliceImages(); void MergeImagesWithTime(); void OpenDicom(); ///Open a vtkPolyData surface mesh and display it over the current image @@ -125,13 +128,11 @@ public slots: void SaveSOScreenshot(); void ShowContextMenu(QPoint point); - // void CropImage(); - void SplitImage(); void CloseImage(); void ReloadImage(); void OpenField(); void SelectOverlayImage(); - void AddFusionImage(); + void SelectFusionImage(); void SetVFProperty(int subsampling,int scale,int lut, int width); void SetOverlayProperty(int color); @@ -172,6 +173,7 @@ private: int GetSlicerIndexFromItem(QTreeWidgetItem* item); QTreeWidgetItem* GetItemFromSlicerManager(vvSlicerManager* sm); void SaveScreenshot(vtkImageData* image); + int GetImageDuplicateFilenameNumber(std::string filename); QMenu contextMenu; //QMenu *AddSubImageMenu; @@ -179,6 +181,8 @@ private: std::vector horizontalSliders; std::vector verticalSliders; int mFrameRate; + + std::string mCurrentSelectedImageId; // vvMainWindowToolInfo * mCurrentToolInfo; // std::vector mListOfRunningTool;