X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvMainWindow.h;h=c77a59a8a4948a482e6db31d46e816c52056cec7;hb=cd04d8c797defe2fdaff3d1fa09928b22dd6edc4;hp=dfcbca6d40319fff99f8a23e1dd0edd5b6012240;hpb=acdc20ec4afc95db1db29bf8d885a3b72c9c7ee0;p=clitk.git diff --git a/vv/vvMainWindow.h b/vv/vvMainWindow.h index dfcbca6..c77a59a 100644 --- a/vv/vvMainWindow.h +++ b/vv/vvMainWindow.h @@ -63,6 +63,8 @@ class vvMainWindow: public vvMainWindowBase, void ShowLastImage(); void SaveCurrentStateAs(const std::string& stateFile); void ReadSavedStateFile(const std::string& stateFile); + void LinkAllImages(); + QString Get4x4MatrixDoubleAsString(vtkSmartPointer matrix, const int precision=3); virtual void UpdateCurrentSlicer(); virtual QTabWidget * GetTab(); @@ -72,6 +74,7 @@ class vvMainWindow: public vvMainWindowBase, public slots: ///Allows the user to open and select various surfaces contained in a dicom-struct file + void AddDCStructContour(int index, QString file); void OpenDCStructContour(); ///Computes the midposition image of a 4D sequence with a VF and displays it void ComputeMidPosition(); @@ -115,6 +118,7 @@ public slots: void SetWindowLevel(double w, double l); void UpdateColorMap(); void UpdateWindowLevel(); + void UpdateSlicingPreset(); void SwitchWindowLevel(); void ApplyWindowLevelToAllImages(); void UpdateLinkManager(std::string id, int slicer, double x, double y, double z, int temps); @@ -151,7 +155,7 @@ public slots: void SetVFProperty(int subsampling,int scale,int lut, int width, double r, double g, double b); void SetOverlayProperty(int color, int linked, double window, double level); - void SetFusionProperty(int opacity, int tresOpacity, int colormap,double window,double level); + void SetFusionProperty(int opacity, int tresOpacity, int colormap,double window,double level, bool showLegend); void GoToCursor(); void PlayPause(); @@ -192,7 +196,6 @@ private: QString GetSizeInBytes(unsigned long size); QString GetVectorDoubleAsString(std::vector vectorDouble); QString GetVectorIntAsString(std::vector vectorInt); - QString Get4x4MatrixDoubleAsString(vtkSmartPointer matrix); int GetSlicerIndexFromItem(QTreeWidgetItem* item); QTreeWidgetItem* GetItemFromSlicerManager(vvSlicerManager* sm); void SaveScreenshot(QVTKWidget *widget);