]> Creatis software - clitk.git/blob - vv/vvImageWriter.cxx
removed headers
[clitk.git] / vv / vvImageWriter.cxx
1 #ifndef vvImageWriter_CXX
2 #define vvImageWriter_CXX
3 #include "vvImageWriter.h"
4 #include "vvImageWriter.txx"
5
6 #include <string.h>
7 //====================================================================
8 vvImageWriter::vvImageWriter() {
9     mImage = NULL;
10     mOutputFilename = "";
11     mLastError = "";
12     mUseAnObserver = false;
13 }
14 //====================================================================
15
16 //====================================================================
17 vvImageWriter::~vvImageWriter() {
18 }
19 //====================================================================
20
21 //====================================================================
22 void vvImageWriter::Update(int dim,std::string OutputPixelType) {
23     //CALL_FOR_ALL_DIMS(dim,UpdateWithDim,inputPixelType);
24     if (dim == 2)
25         UpdateWithDim<2>(OutputPixelType);
26     else if (dim == 3)
27         UpdateWithDim<3>(OutputPixelType);
28     else if (dim == 4)
29         UpdateWithDim<4>(OutputPixelType);
30     else
31         std::cerr << "dim not know in Update ! " << std::endl;
32 }
33 //====================================================================
34
35 //====================================================================
36 void vvImageWriter::SetOutputFileName(std::string filename) {
37     mOutputFilename = filename;
38 }
39 //====================================================================
40
41 #endif
42