X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolROIManager.h;h=db630c641b059c4838a376d7bdfdf380a70d4fd5;hb=1c6241402b25efea0052f0464be9a494e761b19e;hp=8ad4a1c65ece4c5393460804b03715f18248cbae;hpb=8f2812ce4bdf3565a909feaadbb956f1513fc967;p=clitk.git diff --git a/vv/vvToolROIManager.h b/vv/vvToolROIManager.h index 8ad4a1c..db630c6 100644 --- a/vv/vvToolROIManager.h +++ b/vv/vvToolROIManager.h @@ -19,7 +19,12 @@ #ifndef VVTOOLROIMANAGER_H #define VVTOOLROIMANAGER_H +#include +#if QT_VERSION >= 0x050000 +#include +#else #include +#endif #include #include "vvToolBase.h" @@ -46,7 +51,11 @@ class vvToolROIManager: void AddImage(vvImage * binaryImage, std::string name, std::string filename, double BG, bool m_modeBG=true); void UpdateAllContours(); void UpdateAllROIStatus(); +#if __cplusplus > 199711L + virtual void SaveState(std::shared_ptr & m_XmlWriter); +#else virtual void SaveState(std::auto_ptr & m_XmlWriter); +#endif virtual void InitializeNewTool(bool ReadStateFlag); public slots: @@ -64,9 +73,10 @@ class vvToolROIManager: void ChangeContourWidth(int n); void ChangeDepth(int n); void AllVisibleROIToggled(int b); - void AllVisibleContourROIToggled(bool b); + void AllVisibleContourROIToggled(int b); void ReloadCurrentROI(); void close(); + void RemoveROI(); vvSlicerManager * GetCurrentSlicerManager() { return mCurrentSlicerManager; } protected: @@ -79,6 +89,7 @@ protected: int mNumberOfVisibleROI; int mNumberOfVisibleContourROI; + static int nbTotalROI; vtkSmartPointer mDefaultLUTColor;