]> Creatis software - clitk.git/blobdiff - vv/vvImageWriter.h
Romulo: fixed log file, AppendOn was missing
[clitk.git] / vv / vvImageWriter.h
index e39cc64aba30a28a18d7379aa7e0a7bc0843a9a5..e9a9c3825f6837c4f7a5ee17c45736bee1faab0e 100644 (file)
@@ -14,7 +14,7 @@
 
   - BSD        See included LICENSE.txt file
   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+  ======================================================================-====*/
 #ifndef vvImageWriter_H
 #define vvImageWriter_H
 #include <string>
 class vvImageWriter {
 
 public:
-    // constructor
-    vvImageWriter();
-    ~vvImageWriter();
-
-    void SetOutputFileName(std::string filename);
-    void SetObserver(itk::Command::Pointer o) {
-        mUseAnObserver = true;
-        mObserver = o;
-    }
-    void DisableObserver() {
-        mUseAnObserver = false;
-    }
-
-    void SetInput(vvImage::Pointer image) {
-        mImage = image;
-    }
-
-    std::string GetLastError() {
-        return mLastError;
-    }
-
-    //====================================================================
-    // Main function
-    void Update() {
-        Update(mImage->GetNumberOfDimensions(),mImage->GetScalarTypeAsString());
-    }
-    void Update(int dim, std::string OutputPixelType);
+  // constructor
+  vvImageWriter();
+  ~vvImageWriter();
+
+  void SetOutputFileName(std::string filename);
+  void SetObserver(itk::Command::Pointer o) {
+    mUseAnObserver = true;
+    mObserver = o;
+  }
+  void DisableObserver() {
+    mUseAnObserver = false;
+  }
+
+  void SetInput(vvImage::Pointer image) {
+    mImage = image;
+  }
+
+  std::string GetLastError() {
+    return mLastError;
+  }
+
+  //====================================================================
+  // Main function
+  void Update() {
+    Update(mImage->GetNumberOfDimensions(),mImage->GetScalarTypeAsITKString());
+  }
+  void Update(int dim, std::string OutputPixelType);
 
 protected:
-    //====================================================================
-    std::string mOutputFilename;
-    itk::Command::Pointer mObserver;
+  //====================================================================
+  std::string mOutputFilename;
+  itk::Command::Pointer mObserver;
 
-    std::string mLastError;
-    bool mUseAnObserver;
+  std::string mLastError;
+  bool mUseAnObserver;
 
-    //====================================================================
-    template<unsigned int VImageDimension>
-    void UpdateWithDim(std::string OutputPixelType);
+  //====================================================================
+  template<unsigned int VImageDimension>
+  void UpdateWithDim(std::string OutputPixelType);
 
-    //====================================================================
-    template<class OutputPixelType, unsigned int VImageDimension>
-    void UpdateWithDimAndOutputPixelType();
+  //====================================================================
+  template<class OutputPixelType, unsigned int VImageDimension>
+  void UpdateWithDimAndOutputPixelType();
 
 private:
-    vvImage::Pointer mImage;
+  vvImage::Pointer mImage;
 
 }; // end class vvImageWriter