X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvImageWriter.h;h=e9a9c3825f6837c4f7a5ee17c45736bee1faab0e;hb=6764ab075c799e9cdbf63e246f734c9be391199e;hp=e39cc64aba30a28a18d7379aa7e0a7bc0843a9a5;hpb=0b7c9b1e1215634b02cbd38d4e4ba101d6111ba8;p=clitk.git diff --git a/vv/vvImageWriter.h b/vv/vvImageWriter.h index e39cc64..e9a9c38 100644 --- a/vv/vvImageWriter.h +++ b/vv/vvImageWriter.h @@ -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 @@ -27,52 +27,52 @@ 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 - void UpdateWithDim(std::string OutputPixelType); + //==================================================================== + template + void UpdateWithDim(std::string OutputPixelType); - //==================================================================== - template - void UpdateWithDimAndOutputPixelType(); + //==================================================================== + template + void UpdateWithDimAndOutputPixelType(); private: - vvImage::Pointer mImage; + vvImage::Pointer mImage; }; // end class vvImageWriter