]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxDescriptorPanel.cpp
Set GDCM2 library as available DICOM Reader
[creaImageIO.git] / src2 / creaImageIOWxDescriptorPanel.cpp
index d192534b96c80c305b25d27a3b5d7f78a29c72d3..3b0f78e55dd3dd4918f1bcfcbb14cbfe2239be9d 100644 (file)
@@ -1,7 +1,9 @@
 #include "creaImageIOWxDescriptorPanel.h"
 #include <creaImageIOSystem.h>
+#if defined(USE_GDCM)
 #include <gdcmGlobal.h>
 #include <gdcmDictSet.h>
+#endif
 #include <boost/algorithm/string.hpp>
 
 #include <boost/algorithm/string.hpp>
@@ -243,7 +245,7 @@ namespace creaImageIO
                  val.clear();
                  val <<   std::dec << el ;
                  val >> std::hex >> element;
-                       
+#if defined(USE_GDCM)  
                 // Retrieve the name from gdcm dict
                  GDCM_NAME_SPACE::DictEntry* entry = GDCM_NAME_SPACE::Global::GetDicts()->GetDefaultPubDict()->GetEntry(group, element);
                 // AttributeCombo->Clear();
@@ -257,6 +259,7 @@ namespace creaImageIO
                          AttributeCombo->Delete(0);
                          AttributeCombo->Insert(_T("Unknown Attribute"),0);
                  }
+#endif
                          AttributeCombo->SetSelection(0);
                
          }
@@ -759,11 +762,13 @@ namespace creaImageIO
                                        compose +=  descriptors[1];
                                        compose += "_";
                                        compose +=  descriptors[2];
+#if defined(USE_GDCM)
                                        GDCM_NAME_SPACE::DictEntry* entry = GDCM_NAME_SPACE::Global::GetDicts()->GetDefaultPubDict()->GetEntry(group, element);
                                        if(ilevel>0)
                                        {
                                                onAddAttribute( entry->GetName(),compose, level);
                                        }
+#endif
                                }
                                else if(descriptors[0].find("#") != -1)
                                {