- void SetDisplayColor(double r, double v, double b);
-
- double GetBackgroundValueLabelImage() const;
- void SetBackgroundValueLabelImage(double bg);
-
- protected:
- void ComputeMesh();
- std::string mName;
- int mNumber;
- std::vector<double> mColor;
- std::vector<DicomRT_Contour*> mListOfContours;
- vtkPolyData * mMesh;
- bool mMeshIsUpToDate;
- vvImage::Pointer mImage;
- double mBackgroundValue;
- };
- //--------------------------------------------------------------------
+ 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::Pointer> mListOfContours;
+ vtkPolyData * mMesh;
+ bool mMeshIsUpToDate;
+ vvImage::Pointer mImage;
+ double mBackgroundValue;
+ double mForegroundValue;
+ ///Spacing between two contours
+ double mZDelta;
+
+private:
+ DicomRT_ROI();
+ ~DicomRT_ROI();
+};
+//--------------------------------------------------------------------