]> Creatis software - clitk.git/blobdiff - tools/clitkProfileImageGenericFilter.h
Debug RTStruct conversion with empty struc
[clitk.git] / tools / clitkProfileImageGenericFilter.h
index e251ff586495c8709faf1c3a5d33f6e0fae0bb4d..e22ed74206018bac0dad4f8d67d66f2512813daa 100644 (file)
@@ -23,6 +23,8 @@
 #include "clitkImageToImageGenericFilter.h"
 #include "clitkProfileImage_ggo.h"
 
+#include <vtkFloatArray.h>
+
 //--------------------------------------------------------------------
 namespace clitk 
 {
@@ -34,8 +36,8 @@ namespace clitk
   public:
     //--------------------------------------------------------------------
     typedef ProfileImageGenericFilter         Self;
-    typedef itk::SmartPointer<Self>            Pointer;
-    typedef itk::SmartPointer<const Self>      ConstPointer;
+    typedef itk::SmartPointer<Self>           Pointer;
+    typedef itk::SmartPointer<const Self>     ConstPointer;
     typedef args_info_clitkProfileImage       args_info_type;
    
     //--------------------------------------------------------------------
@@ -51,12 +53,27 @@ namespace clitk
     // Main function called each time the filter is updated
     template<class InputImageType>  
     void UpdateWithInputImageType();
+    
+    vtkFloatArray* GetArrayX();
+    vtkFloatArray* GetArrayY();
+    vtkFloatArray* GetCoord();
+
+    //Write the output in the txt file
+    void WriteOutput(std::string outputFilename);
 
   protected:
     ProfileImageGenericFilter();
     template<unsigned int Dim> void InitializeImageType();
     args_info_type mArgsInfo;
     
+  
+    vtkSmartPointer<vtkFloatArray> mArrayX;
+    vtkSmartPointer<vtkFloatArray> mArrayY;
+    vtkSmartPointer<vtkFloatArray> mCoord;
+    vtkSmartPointer<vtkFloatArray> mCoordmm;
+    int mDimension;
+    
+    
   }; // end class
   //--------------------------------------------------------------------