#if defined(USE_GDCM)
#include <gdcmGlobal.h>
+#include <gdcmFile.h>
#include <gdcmSerieHelper.h>
+#include <gdcmFile.h>
#endif
#if defined(USE_GDCM2)
#include <gdcmGlobal.h>
#endif
-
#if defined(USE_XERCES)
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMDocument.hpp>
namespace creaImageIO
{
-
OutputModel::~OutputModel()
{
}
- #if defined(USE_GDCM)
+#if defined(USE_GDCM)
double OutputModel::orderFilesWithZspacing(std::vector<std::string> &im)
{
double spacing=1;
lstAux.push_back(*it);
}
} // for
-
-
+
if ((fileVector.size()>1) && (sh->IsCoherent( &fileVector )))
{
sh->OrderFileList(&fileVector);
}else {
std::sort( im.begin(), im.end() );
}
-
+
return spacing;
}
- #endif
+#endif
#if defined(USE_GDCM2)
// TO DO
}
#endif
-
-
#if defined(USE_XERCES)
OutputModel::OutputModel(OutputModelParser *i_outparser) : m_outparser(i_outparser)
}
return bres;
-
}
OutputModel::~OutputModel()
o_val[(*it)] = "";
}
}
- }
-
+ }
}
//const gdcm::VR::VRType OutputModel::getType(const std::string i_tag)
#endif
-
#if defined(USE_GDCM)
double OutputModel::orderFiles(std::vector<std::string> im, std::vector<std::string> &out)
{
#endif
- void OutputModel::sort(const std::vector<std::string> i_filenames, std::vector<std::string> &o_sort, int level)
+ void OutputModel::sort(const std::vector<std::string> i_filenames, std::vector<std::string> &o_sort, int level)
{
#if defined(USE_XERCES)
int tags[3];
if( checkModel(model, OUTPUTMODEL_TAG(3)) && !b_db)
{
#if defined (USE_GDCM2)
-
+
//OutputSort< getType(model[OUTPUTMODEL_TAG(3)] > osort;
getValues<std::string>(i_filenames, model[OUTPUTMODEL_TAG(3)], values);
}
#endif
}
-
#endif
-
-}
\ No newline at end of file
+}