//--------------------------------------------------------------------
clitk::DicomRT_ROI::~DicomRT_ROI()
{
-
+ mImage->Delete();
}
//--------------------------------------------------------------------
//--------------------------------------------------------------------
-void clitk::DicomRT_ROI::SetFromBinaryImage(vvImage::Pointer image, int n,
+void clitk::DicomRT_ROI::SetFromBinaryImage(vvImage * image, int n,
std::string name,
std::vector<double> color,
std::string filename)
//--------------------------------------------------------------------
-const vvImage::Pointer clitk::DicomRT_ROI::GetImage() const
+vvImage * clitk::DicomRT_ROI::GetImage() const
{
return mImage;
}
void Print(std::ostream & os = std::cout) const;
void Read(std::map<int, std::string> & rois, gdcm::SQItem * item);
- void SetFromBinaryImage(vvImage::Pointer image, int n,
+ void SetFromBinaryImage(vvImage * image, int n,
std::string name,
std::vector<double> color,
std::string filename);
const std::string & GetFilename() const;
const std::vector<double> & GetDisplayColor() const;
vtkPolyData * GetMesh();
- const vvImage::Pointer GetImage() const;
+ vvImage * GetImage() const;
void SetDisplayColor(double r, double v, double b);
std::vector<double> & GetDisplayColor() { return mColor; }
std::vector<DicomRT_Contour*> mListOfContours;
vtkPolyData * mMesh;
bool mMeshIsUpToDate;
- vvImage::Pointer mImage;
+ vvImage * mImage;
double mBackgroundValue;
double mForegroundValue;
///Spacing between two contours
//--------------------------------------------------------------------
clitk::DicomRT_StructureSet::~DicomRT_StructureSet()
{
-
+ for(uint i=0; i<mListOfROI.size(); i++) {
+ delete mListOfROI[i];
+ }
}
//--------------------------------------------------------------------
//--------------------------------------------------------------------
-int clitk::DicomRT_StructureSet::AddBinaryImageAsNewROI(vvImage::Pointer im, std::string n)
+int clitk::DicomRT_StructureSet::AddBinaryImageAsNewROI(vvImage * im, std::string n)
{
//DD("AddBinaryImageAsNewROI");
// Search max ROI number
const std::string & GetDate() const;
const std::string & GetTime() const;
- int AddBinaryImageAsNewROI(vvImage::Pointer i, std::string name);
+ int AddBinaryImageAsNewROI(vvImage * i, std::string name);
protected:
std::string mStudyID;