#if defined(USE_GDCM)
#include <gdcmGlobal.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);
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
+}
#include <gdcmScanner.h>
#endif
+#include <vector>
+#include <string>
#define OUTPUTMODEL_TAG_i ""
#define OUTPUTMODEL_TAG_0 "TAG_BEGIN"
#define OUTPUTMODEL_TAG_4 "ANCHOR"
#define OUTPUTMODEL_TAG(i) OUTPUTMODEL_TAG_ ## i
-
-
-
namespace creaImageIO
{
+
class OutputModel
{
public:
#if defined(USE_XERCES)
OutputModel(OutputModelParser *i_outparser);
-
-
-
// Test if we need to check the "dicom" tag if it exists on database
void setDB(const std::string i_db, const std::string i_table);
const std::string getTag();
-
private:
bool checkModel(std::map<std::string, std::string> i_model, const std::string i_val);
#endif
};
- template <class T>
+
+/*
+ template <class T>
class OutputSort
{
public :
void sort (const std::map<std::string, T> i_values, std::vector<std::string> &o_sort)
{
- for(T index = tags[OUTPUTMODEL_TAG(0)]; index <= tags[OUTPUTMODEL_TAG(1)]; index += tags[OUTPUTMODEL_TAG(2)])
+ std::map<std::string, T>::const_iterator it_val;
+ for(T index = tags[OUTPUTMODEL_TAG(0)]; index <= tags[OUTPUTMODEL_TAG(1)]; index += tags[OUTPUTMODEL_TAG(2)])
{
- std::map<std::string, T>::const_iterator it_val = i_values.begin();
- for(;it_val != values.end(); it_val++)
+ //std::map<std::string, T>::const_iterator it_val;
+ for(it_val = i_values.begin();it_val != i_values.end(); it_val++)
{
if(it_val->second.c_str() == index)
{
}
}
};
+*/
+
} // namespace creaImageIO
-#endif //__creaImageIOoutputModel_h_INCLUDED__
\ No newline at end of file
+#endif //__creaImageIOoutputModel_h_INCLUDED__
int start_point = 45;
- wxStaticText * ExportText=new wxStaticText(this,-1,_T(sentence), wxPoint(5,10));
+ wxStaticText * ExportText=new wxStaticText(this,-1,crea::std2wx(sentence), wxPoint(5,10));
std::vector<std::string>::iterator it = outsentences.begin();
for(int i = 0;it != outsentences.end(); it++, i++, start_point += 45)
{
- wxCheckBox *check = new wxCheckBox(this, -1, _T((*it)), wxPoint(5,start_point) );
+ wxCheckBox *check = new wxCheckBox(this, -1, crea::std2wx((*it)), wxPoint(5,start_point) );
if(i == deflt)
check->SetValue(true);
else
checkOut.push_back(check);
}
- checkAsking = new wxCheckBox(this, -1, _T(("Do you want to save this output and no more asking")), wxPoint(5,start_point) );
+ checkAsking = new wxCheckBox(this, -1, _T("Do you want to save this output and no more asking"), wxPoint(5,start_point) );
// VALIDATION BUTTON
wxButton *Ok = new wxButton(this, -1,_T("OK"), wxPoint(5,start_point+20) );