]> Creatis software - clitk.git/blobdiff - common/clitkDicomRT_ROI.h
Functionality to delete last image
[clitk.git] / common / clitkDicomRT_ROI.h
index b16b7a18dd051efe024ac52d9e42c7d2d4d235e8..288d4d950e8a5c82dbb30c1f0c9ff2eb1ceee40b 100644 (file)
@@ -36,10 +36,12 @@ namespace clitk {
     void Read(std::map<int, std::string> & rois, gdcm::SQItem * item);
     void SetFromBinaryImage(vvImage::Pointer image, int n, 
                            std::string name, 
-                           std::vector<double> color);
+                           std::vector<double> color, 
+                           std::string filename);
 
     int GetROINumber() const;
     const std::string & GetName() const;
+    const std::string & GetFilename() const;
     const std::vector<double> & GetDisplayColor() const;
     vtkPolyData * GetMesh();
     const vvImage::Pointer GetImage() const;
@@ -50,9 +52,16 @@ namespace clitk {
     double GetBackgroundValueLabelImage() const;
     void SetBackgroundValueLabelImage(double bg);
     
+    double GetForegroundValueLabelImage() const;
+    void SetForegroundValueLabelImage(double bg);
+    
+    void SetImage(vvImage * im);
+    DicomRT_Contour* GetContour(int n);
+    
   protected:
     void ComputeMesh();
     std::string mName;
+    std::string mFilename;
     int mNumber;
     std::vector<double> mColor;
     std::vector<DicomRT_Contour*> mListOfContours;
@@ -60,6 +69,7 @@ namespace clitk {
     bool mMeshIsUpToDate;
     vvImage::Pointer mImage;
     double mBackgroundValue;
+    double mForegroundValue;
   };
   //--------------------------------------------------------------------