X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FvtkgdcmSerieViewer2.cxx;h=7b108e37ae1fd6e8a12206b95fb005cd79aceb71;hb=fb1db702e2e94adb9c04387604dbe635726db898;hp=e4d8e2ea4e5702534ce7df0d85be19fbfde9da61;hpb=f5d25e9e82d8b5e68c25f0afe59b4628e98dd48b;p=gdcm.git diff --git a/vtk/vtkgdcmSerieViewer2.cxx b/vtk/vtkgdcmSerieViewer2.cxx index e4d8e2ea..7b108e37 100755 --- a/vtk/vtkgdcmSerieViewer2.cxx +++ b/vtk/vtkgdcmSerieViewer2.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkgdcmSerieViewer2.cxx,v $ Language: C++ - Date: $Date: 2007/06/08 12:41:07 $ - Version: $Revision: 1.9 $ + Date: $Date: 2007/06/21 14:47:16 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,7 +16,7 @@ =========================================================================*/ // This example illustrates how the vtkGdcmReader vtk class can -// use the result of gdcm::SerieHelper constructor and check +// use the result of GDCM_NAME_SPACE::SerieHelper constructor and check // the various Setters : // SerieHelper::SetOrderToReverse, // SerieHelper::SetUserLessThanFunction @@ -52,10 +52,10 @@ #define vtkFloatingPointType float #endif -void userSuppliedMirrorFunction (uint8_t *im, gdcm::File *f); -void userSuppliedUpsideDownFunction(uint8_t *im, gdcm::File *f); -bool userSuppliedLessThanFunction(gdcm::File *f1, gdcm::File *f2); -bool userSuppliedLessThanFunction2(gdcm::File *f1, gdcm::File *f2); +void userSuppliedMirrorFunction (uint8_t *im, GDCM_NAME_SPACE::File *f); +void userSuppliedUpsideDownFunction(uint8_t *im, GDCM_NAME_SPACE::File *f); +bool userSuppliedLessThanFunction(GDCM_NAME_SPACE::File *f1, GDCM_NAME_SPACE::File *f2); +bool userSuppliedLessThanFunction2(GDCM_NAME_SPACE::File *f1, GDCM_NAME_SPACE::File *f2); int orderNb; uint16_t *elemsToOrderOn; @@ -138,7 +138,7 @@ int main(int argc, char *argv[]) // Initialize Arguments Manager - gdcm::ArgMgr *am= new gdcm::ArgMgr(argc, argv); + GDCM_NAME_SPACE::ArgMgr *am= new GDCM_NAME_SPACE::ArgMgr(argc, argv); if (argc == 1 || am->ArgMgrDefined("usage") ) { @@ -149,15 +149,15 @@ int main(int argc, char *argv[]) char *dirName = am->ArgMgrWantString("dirname",usage); - int loadMode = gdcm::LD_ALL; + int loadMode = GDCM_NAME_SPACE::LD_ALL; if ( am->ArgMgrDefined("noshadowseq") ) - loadMode |= gdcm::LD_NOSHADOWSEQ; + loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ; else { if ( am->ArgMgrDefined("noshadow") ) - loadMode |= gdcm::LD_NOSHADOW; + loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW; if ( am->ArgMgrDefined("noseq") ) - loadMode |= gdcm::LD_NOSEQ; + loadMode |= GDCM_NAME_SPACE::LD_NOSEQ; } int reverse = am->ArgMgrDefined("reverse"); @@ -181,7 +181,7 @@ int main(int argc, char *argv[]) elemsToOrderOn = am->ArgMgrGetXInt16Enum("order", &orderNb); if (am->ArgMgrDefined("debug")) - gdcm::Debug::DebugOn(); + GDCM_NAME_SPACE::Debug::DebugOn(); /* if unused Param we give up */ if ( am->ArgMgrPrintUnusedLabels() ) @@ -195,7 +195,7 @@ int main(int argc, char *argv[]) // ----------------------- End Arguments Manager ---------------------- - gdcm::SerieHelper *sh = gdcm::SerieHelper::New(); + GDCM_NAME_SPACE::SerieHelper *sh = GDCM_NAME_SPACE::SerieHelper::New(); sh->SetLoadMode(loadMode); if (reverse) sh->SetSortOrderToReverse(); @@ -204,8 +204,8 @@ int main(int argc, char *argv[]) // Just to see int nbFiles; - // For all the 'Single Serie UID' FileSets of the gdcm::Serie - gdcm::FileList *l = sh->GetFirstSingleSerieUIDFileSet(); + // For all the 'Single Serie UID' FileSets of the GDCM_NAME_SPACE::Serie + GDCM_NAME_SPACE::FileList *l = sh->GetFirstSingleSerieUIDFileSet(); if (l == 0 ) { std::cout << "Oops! No 'Single Serie UID' FileSet found ?!?" << std::endl; @@ -362,7 +362,7 @@ int main(int argc, char *argv[]) } \ } -void userSuppliedMirrorFunction(uint8_t *im, gdcm::File *f) +void userSuppliedMirrorFunction(uint8_t *im, GDCM_NAME_SPACE::File *f) { if (f->GetZSize() != 1) { @@ -417,7 +417,7 @@ void userSuppliedMirrorFunction(uint8_t *im, gdcm::File *f) } \ } -void userSuppliedUpsideDownFunction(uint8_t *im, gdcm::File *f) +void userSuppliedUpsideDownFunction(uint8_t *im, GDCM_NAME_SPACE::File *f) { if (f->GetZSize() != 1) { @@ -463,12 +463,12 @@ void userSuppliedUpsideDownFunction(uint8_t *im, gdcm::File *f) // -------------------------------------------------------- -bool userSuppliedLessThanFunction(gdcm::File *f1, gdcm::File *f2) +bool userSuppliedLessThanFunction(GDCM_NAME_SPACE::File *f1, GDCM_NAME_SPACE::File *f2) { // for *this* user supplied function, I supposed only ValEntries are checked. // std::string s1, s2; - gdcm::DataEntry *e1,*e2; + GDCM_NAME_SPACE::DataEntry *e1,*e2; for (int ri=0; riGetFileName() << "] vs [" << f2->GetFileName() << "]" << std::endl;