]> Creatis software - clitk.git/blobdiff - common/clitkDicomRT_ROI.h
make difference between 2D and 3D with a single slice image (Dim obtained from ITK...
[clitk.git] / common / clitkDicomRT_ROI.h
index fe95208b2665644a820532524b5dae01fc1168e4..c1cf9778f2ca13838137b43b4b0f441ce32e6bfe 100644 (file)
@@ -36,23 +36,44 @@ 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;
+
+    void SetDisplayColor(double r, double v, double b);
+    std::vector<double> & GetDisplayColor() { return mColor; }
+    
+    double GetBackgroundValueLabelImage() const;
+    void SetBackgroundValueLabelImage(double bg);
+    
+    double GetForegroundValueLabelImage() const;
+    void SetForegroundValueLabelImage(double bg);
+    
+    void SetImage(vvImage * im);
+    DicomRT_Contour* GetContour(int n);
+
+    double GetContourSpacing() const {return mZDelta;}
     
   protected:
     void ComputeMesh();
     std::string mName;
+    std::string mFilename;
     int mNumber;
     std::vector<double> mColor;
     std::vector<DicomRT_Contour*> mListOfContours;
     vtkPolyData * mMesh;
     bool mMeshIsUpToDate;
     vvImage::Pointer mImage;
+    double mBackgroundValue;
+    double mForegroundValue;
+    ///Spacing between two contours
+    double mZDelta;
   };
   //--------------------------------------------------------------------