mBackgroundValue = 0;
mForegroundValue = 1;
SetDicomUptodateFlag(false);
+ mFilename = "";
}
//--------------------------------------------------------------------
#if GDCM_MAJOR_VERSION == 2
bool clitk::DicomRT_ROI::Read(gdcm::Item * itemInfo, gdcm::Item * itemContour)
{
+ FATAL("Error : compile vv with itk4 + external gdcm");
// Keep dicom item
mItemInfo = itemInfo;
mItemContour = itemContour;
#if GDCM_MAJOR_VERSION == 2
-
//--------------------------------------------------------------------
void clitk::DicomRT_ROI::UpdateDicomItem()
{
+ FATAL("Error : compile vv with itk4 + external gdcm");
+
if (GetDicomUptoDateFlag()) return;
DD("ROI::UpdateDicomItem");
DD(GetName());
//--------------------------------------------------------------------
void clitk::DicomRT_ROI::ComputeContoursFromImage()
{
+ FATAL("ComputeContoursFromImage should not be call. To be replace");
DD("ComputeMeshFromImage");
// Check that an image is loaded
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);