]> Creatis software - clitk.git/blobdiff - vv/vvToolStructureSetManager.h
release memory when overlay and fusion images are closed
[clitk.git] / vv / vvToolStructureSetManager.h
index 4d4cf505e4dd405d3574a36ee0f353b434ec5477..240ca794ddafed0d00597f7177ed13e42618a4cc 100644 (file)
@@ -47,7 +47,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:
@@ -76,7 +76,7 @@ protected:
   bool mIsAllVisibleEnabled;
   int mNumberOfVisibleROI;
   int mNumberOfVisibleContourROI;
-  std::vector<clitk::DicomRT_StructureSet*       mStructureSetsList;
+  std::vector<clitk::DicomRT_StructureSet* >       mStructureSetsList;
   std::vector<vvStructureSetActor *>               mStructureSetActorsList;
   std::map<int, QTreeWidgetItem *>                 mMapStructureSetIndexToTreeWidget;
   std::map<clitk::DicomRT_ROI*, QTreeWidgetItem *> mMapROIToTreeWidget;