Commit 395383c1 authored by Sebastien Barre's avatar Sebastien Barre

ENH: add Modality as part of the info

parent 692d55a0
......@@ -15,7 +15,7 @@
#include "vtkMedicalImageReader2.h"
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkMedicalImageReader2, "1.3");
vtkCxxRevisionMacro(vtkMedicalImageReader2, "1.4");
vtkStandardNewMacro(vtkMedicalImageReader2);
vtkMedicalImageReader2::vtkMedicalImageReader2()
......@@ -26,6 +26,7 @@ vtkMedicalImageReader2::vtkMedicalImageReader2()
this->ImageNumber = 0;
this->Series = 0;
this->Study = 0;
this->Modality = 0;
}
vtkMedicalImageReader2::~vtkMedicalImageReader2()
......@@ -42,6 +43,8 @@ vtkMedicalImageReader2::~vtkMedicalImageReader2()
this->Series = NULL;
delete [] this->Study;
this->Study = NULL;
delete [] this->Modality;
this->Modality = NULL;
}
void vtkMedicalImageReader2::PrintSelf(ostream& os, vtkIndent indent)
......@@ -78,4 +81,9 @@ void vtkMedicalImageReader2::PrintSelf(ostream& os, vtkIndent indent)
{
os << this->Study;
}
os << "\n" << indent << "Modality: ";
if (this->Modality)
{
os << this->Modality;
}
}
......@@ -35,7 +35,7 @@ public:
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Methods to set/get the patient information data.
// Methods to set/get the patient and acquisition information data.
vtkSetStringMacro(PatientName);
vtkGetStringMacro(PatientName);
vtkSetStringMacro(PatientID);
......@@ -48,6 +48,8 @@ public:
vtkGetStringMacro(Study);
vtkSetStringMacro(ImageNumber);
vtkGetStringMacro(ImageNumber);
vtkSetStringMacro(Modality);
vtkGetStringMacro(Modality);
protected:
vtkMedicalImageReader2();
......@@ -60,6 +62,7 @@ protected:
char *ImageNumber;
char *Study;
char *Series;
char *Modality;
private:
vtkMedicalImageReader2(const vtkMedicalImageReader2&); // Not implemented.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment