//--------------------------------------------------------------------
+//--------------------------------------------------------------------
+void clitk::DicomRT_StructureSet::SetTransformMatrix(vtkMatrix4x4* matrix)
+{
+ mTransformMatrix = matrix;
+}
+//--------------------------------------------------------------------
+
+
//--------------------------------------------------------------------
const std::string & clitk::DicomRT_StructureSet::GetTime() const
{
//--------------------------------------------------------------------
-#if GDCM_MAJOR_VERSION == 2
+#if GDCM_MAJOR_VERSION >= 2
//--------------------------------------------------------------------
int clitk::DicomRT_StructureSet::ReadROINumber(const gdcm::Item & item)
{
//--------------------------------------------------------------------
void clitk::DicomRT_StructureSet::Write(const std::string & filename)
{
-#if GDCM_MAJOR_VERSION == 2
+#if GDCM_MAJOR_VERSION >= 2
// Assert that the gdcm file is still open (we can write only if it was readed)
if (mFile == NULL) {
int nb = i->first;//ReadROINumber(i);//mROIIndex[i];
// Create the roi
mROIs[nb] = DicomRT_ROI::New();
+ mROIs[nb]->SetTransformMatrix(mTransformMatrix);
mROIs[nb]->Read(mMapOfROIInfo[nb], mMapOfROIContours[nb]);
}
bool clitk::DicomRT_StructureSet::IsDicomRTStruct(const std::string & filename)
{
// Open DICOM
-#if GDCM_MAJOR_VERSION == 2
+#if GDCM_MAJOR_VERSION >= 2
// Read gdcm file
mReader = new gdcm::Reader;
mReader->SetFileName(filename.c_str());