X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolStructureSetManager.h;h=4fd4d8ed4090e12b24688340ef92a01c46f80dcb;hb=acdc20ec4afc95db1db29bf8d885a3b72c9c7ee0;hp=4d4cf505e4dd405d3574a36ee0f353b434ec5477;hpb=f6af622df43e07149d56b5ffc0627e19c30874c5;p=clitk.git diff --git a/vv/vvToolStructureSetManager.h b/vv/vvToolStructureSetManager.h index 4d4cf50..4fd4d8e 100644 --- a/vv/vvToolStructureSetManager.h +++ b/vv/vvToolStructureSetManager.h @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html - ======================================================================-====*/ + ===========================================================================**/ #ifndef VVTOOLSTRUCTURESETMANAGER_H #define VVTOOLSTRUCTURESETMANAGER_H @@ -26,6 +26,8 @@ #include "ui_vvToolStructureSetManager.h" #include "vvROIActor.h" +#include + class vvStructureSetActor; //------------------------------------------------------------------------------ @@ -37,7 +39,7 @@ class vvToolStructureSetManager: Q_OBJECT public: vvToolStructureSetManager(vvMainWindowBase* parent=0, Qt::WindowFlags f=0, vvSlicerManager * c = NULL); - ~vvToolStructureSetManager(); + virtual ~vvToolStructureSetManager(); static void Initialize(); virtual void InputIsSelected(vvSlicerManager *m); @@ -47,7 +49,7 @@ class vvToolStructureSetManager: void AddRoiInTreeWidget(clitk::DicomRT_ROI * roi, QTreeWidget * w); static vvToolStructureSetManager * AddImage(vvSlicerManager * m, std::string name, vvImage::Pointer image, double BG, bool modeBG=true); - void AddImage(vvImage::Pointer image, std::string filename, double BG, bool modeBG=true); + void AddImage(vvImage * image, std::string filename, double BG, bool modeBG=true); void UpdateImage(); public slots: @@ -67,21 +69,22 @@ public slots: protected: Ui::vvToolStructureSetManager ui; - clitk::DicomRT_StructureSet * mCurrentStructureSet; + clitk::DicomRT_StructureSet* mCurrentStructureSet; vvStructureSetActor * mCurrentStructureSetActor; int mCurrentStructureSetIndex; - clitk::DicomRT_ROI * mCurrentROI; + clitk::DicomRT_ROI::Pointer mCurrentROI; vvROIActor * mCurrentROIActor; - vtkLookupTable * mDefaultLUTColor; + vtkSmartPointer mDefaultLUTColor; bool mIsAllVisibleEnabled; int mNumberOfVisibleROI; int mNumberOfVisibleContourROI; - std::vector mStructureSetsList; - std::vector mStructureSetActorsList; - std::map mMapStructureSetIndexToTreeWidget; - std::map mMapROIToTreeWidget; - std::map mMapTreeWidgetToROI; + std::vector mStructureSetsList; + std::vector< QSharedPointer > mStructureSetActorsList; + std::vector< QSharedPointer > mTreeWidgetList; + std::map mMapROIToTreeWidget; + std::map mMapTreeWidgetToROI; std::vector mLoadedROIIndex; + std::vector mOpenedBinaryImage; void setCurrentSelectedROI(clitk::DicomRT_ROI * roi); void UpdateAllROIStatus();