1 #ifndef vvImageWriter_H
2 #define vvImageWriter_H
7 #include "itkCommand.h"
17 void SetOutputFileName(std::string filename);
18 void SetObserver(itk::Command::Pointer o) {
19 mUseAnObserver = true;
22 void DisableObserver() {
23 mUseAnObserver = false;
26 void SetInput(vvImage::Pointer image) {
30 std::string GetLastError() {
34 //====================================================================
37 Update(mImage->GetNumberOfDimensions(),mImage->GetScalarTypeAsString());
39 void Update(int dim, std::string OutputPixelType);
42 //====================================================================
43 std::string mOutputFilename;
44 itk::Command::Pointer mObserver;
46 std::string mLastError;
49 //====================================================================
50 template<unsigned int VImageDimension>
51 void UpdateWithDim(std::string OutputPixelType);
53 //====================================================================
54 template<class OutputPixelType, unsigned int VImageDimension>
55 void UpdateWithDimAndOutputPixelType();
58 vvImage::Pointer mImage;
60 }; // end class vvImageWriter
62 #endif /* end #define vvImageWriter_H */