#endif
#if defined USE_GDCM2
#include <gdcmReader.h>
+// #include "vtkImageData.h"
#include <gdcmImageHelper.h>
#include <vtkGDCMImageReader.h>
#endif
void GetInfoGdcmReader::bbUserSetDefaultValues()
{
- reader=NULL;
+#if defined USE_GDCM2
+ read=NULL;
+#endif
#if defined USE_GDCM
+ reader=NULL;
f=NULL;
#endif
bbSetInputIn("");
void GetInfoGdcmReader::bbUserFinalizeProcessing()
{
+#if defined USE_GDCM2
if( reader )
{
reader->Delete();
reader=NULL;
}
+#endif
+
#if defined USE_GDCM
+ if( reader )
+ {
+ reader->Delete();
+ reader=NULL;
+ }
+
if(f)
{
f->Delete();
#include "vtkGDCMImageReader.h"
#endif
+#include "vtkImageData.h"
+
namespace bbgdcmvtk
{
vtkGdcmReader *reader;
#endif
#if defined USE_GDCM2
- vtkGDCMImageReader *reader;
+ vtkGDCMImageReader *reader;
#endif
#include "gdcmFile.h"
#include "vtkImageData.h"
#include <vtkIndent.h>
+
#if defined USE_GDCM
-#include "gdcmFileHelper.h"
+ #include "gdcmFileHelper.h"
#endif
+
#if defined USE_GDCM2
#include <gdcmReader.h>
#include <gdcmImageHelper.h>
{
const std::string &f = *it;
files->InsertNextValue( f.c_str() );
- }
+ }
reader->SetFileNames(files);
reader->Update();
reader->GetOutput();
std::vector<std::string> init;
init.push_back("");
bbSetInputIn(init);
- reader=NULL;
+ //reader=NULL; /// \TODO fixme JPR
}
void GetXCoherentInfoGdcmReader::bbUserInitializeProcessing()
#include "bbgdcmvtk_EXPORT.h"
#include "bbtkAtomicBlackBox.h"
#include "iostream"
+
#if defined(USE_GDCM)
#include "vtkGdcmReader.h"
#endif
#include "gdcmFile.h"
#include "gdcmSerieHelper.h"
+#include "vtkImageData.h"
namespace bbgdcmvtk
{
private:
#if defined USE_GDCM
- GDCM_NAME_SPACE::File *f;
- GDCM_NAME_SPACE::SerieHelper *sh;
- vtkGdcmReader *reader;
+ GDCM_NAME_SPACE::File *f;
+ GDCM_NAME_SPACE::SerieHelper *sh;
+ vtkGdcmReader *reader;
#endif
#if defined USE_GDCM2
- vtkGDCMImageReader *reader;
+ vtkGDCMImageReader *reader;
#endif
};