+
+
+//--------------------------------------------------------------------
+#if CLITK_USE_SYSTEM_GDCM == 1
+void clitk::DicomRT_ROI::Read(vtkSmartPointer<vtkGDCMPolyDataReader> & reader, int roiindex)
+{
+ vtkRTStructSetProperties * p = reader->GetRTStructSetProperties();
+
+ mName = p->GetStructureSetROIName(roiindex);
+ mNumber = p->GetStructureSetROINumber(roiindex);
+
+ //mColor = //FIXME !!
+
+ // gdcm::Attribute<0x3006,0x002a> color = {};
+
+ // const gdcm::DataSet & nestedds = mItemContour->GetNestedDataSet();
+ // color.SetFromDataSet( nestedds );
+ // assert( color.GetNumberOfValues() == 3 );
+ // mColor[0] = color.GetValue(0);
+ // mColor[1] = color.GetValue(1);
+ // mColor[2] = color.GetValue(2);
+
+
+ SetDicomUptodateFlag(true);
+ // Get the contour
+ mMesh = reader->GetOutput(roiindex);
+ DicomRT_Contour::Pointer c = DicomRT_Contour::New();
+ c->SetTransformMatrix(mTransformMatrix);
+ c->SetMesh(mMesh); // FIXME no GetZ, not GetPoints
+ mMeshIsUpToDate = true;
+ mListOfContours.push_back(c);
+}
+#endif
+//--------------------------------------------------------------------
+