]> Creatis software - gdcm.git/blobdiff - vtk/vtkGdcm4DSplitter.h
using EXPORT should help...
[gdcm.git] / vtk / vtkGdcm4DSplitter.h
index 3cc3528bd35b48f8d0a2c0f7991b51c83dbbd6d0..eb46c74de5ec6aca0036da30a84c20d110a284ea 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: vtkGdcm4DSplitter.h,v $
   Language:  C++
-  Date:      $Date: 2011/04/13 13:30:58 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2011/09/20 16:05:15 $
+  Version:   $Revision: 1.13 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -39,7 +39,7 @@ typedef  bool (*FoncComp)(GDCM_NAME_SPACE::File *file1, GDCM_NAME_SPACE::File *f
    
 //namespace GDCM_NAME_SPACE
 //{
-  class vtkGdcm4DSplitter {
+  class VTK_EXPORT vtkGdcm4DSplitter {
     public:
 //-----------------------------------------------------------------------------
 
@@ -54,6 +54,8 @@ typedef  bool (*FoncComp)(GDCM_NAME_SPACE::File *file1, GDCM_NAME_SPACE::File *f
        bool setVectFileName(std::vector<std::string> &vectFileName);
        
        bool setVectGdcmFile(std::vector<GDCM_NAME_SPACE::File *> *vectGdcmFile);
+       
+       void setFlipY(bool f) { FlipY = f; }
 
        // Split
        // =====
@@ -95,12 +97,17 @@ typedef  bool (*FoncComp)(GDCM_NAME_SPACE::File *file1, GDCM_NAME_SPACE::File *f
        bool CompareOnSortTagConvertToFloat(GDCM_NAME_SPACE::File *file1, GDCM_NAME_SPACE::File *file2);
        void reorgXCoherentFileSetmap      (GDCM_NAME_SPACE::XCoherentFileSetmap &xcm);
        bool sortVectElem(std::vector<ELEM> *le);
-
+      GDCM_NAME_SPACE::FileList * getGdcmFileList();
     // Data
     // ----
     public:
     protected:
     private:
+    
+       //
+       // Set by user
+       //
        std::string DirName;
        std::vector<std::string> VectDirName;
        std::vector<std::string> VectFileName;
@@ -116,27 +123,33 @@ typedef  bool (*FoncComp)(GDCM_NAME_SPACE::File *file1, GDCM_NAME_SPACE::File *f
  
        bool SortOnPosition;
        bool SortOnOrientation;
-       bool SortOnTag;
+       //bool SortOnTag;
        bool SortOnFileName;
        bool SortOnUserFunction;
 
        FoncComp UserCompareFunction;
 
-       unsigned short int SortGroup;
-       unsigned short int SortElem;
-       bool SortConvertToFloat;
+       //unsigned short int SortGroup;
+       //unsigned short int SortElem;
+       //bool SortConvertToFloat;
 
        bool Recursive;
-       int TypeDir;
-       //int TypeResult;
+       bool FlipY;
        bool verbose;
-       std::vector<vtkImageData*> *ImageDataVector;
-       vtkImageData *ImageData;
-       //std::vector<GDCM_NAME_SPACE::File *> VectGdcmFile;
-       GDCM_NAME_SPACE::FileList *VectGdcmFile; 
+       
+       //
+       // needed, to work
+       //       
+       int TypeDir;
        GDCM_NAME_SPACE::XCoherentFileSetmap xcm;
-       //std::vector<std::vector<GDCM_NAME_SPACE::File *> > VectGdcmFileLists;
-       std::vector<GDCM_NAME_SPACE::FileList *> VectGdcmFileLists;
+       
+       //
+       // may be got by user
+       //
+       std::vector<vtkImageData*> *ImageDataVector;
+       GDCM_NAME_SPACE::FileList *VectGdcmFile;       // std::vector of gdcm::File*
+       
+       std::vector<GDCM_NAME_SPACE::FileList *> VectGdcmFileLists; // result of the splitting operation
   };
 
 //} // end namespace gdcm