]> Creatis software - clitk.git/blob - vv/vvImageWriter.cxx
e5fc2d6edc8c4b82c4b6300c0eade3e36523da15
[clitk.git] / vv / vvImageWriter.cxx
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://oncora1.lyon.fnclcc.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
18 #ifndef vvImageWriter_CXX
19 #define vvImageWriter_CXX
20 #include "vvImageWriter.h"
21 #include "vvImageWriter.txx"
22
23 #include <string.h>
24 //====================================================================
25 vvImageWriter::vvImageWriter() {
26     mImage = NULL;
27     mOutputFilename = "";
28     mLastError = "";
29     mUseAnObserver = false;
30 }
31 //====================================================================
32
33 //====================================================================
34 vvImageWriter::~vvImageWriter() {
35 }
36 //====================================================================
37
38 //====================================================================
39 void vvImageWriter::Update(int dim,std::string OutputPixelType) {
40     //CALL_FOR_ALL_DIMS(dim,UpdateWithDim,inputPixelType);
41     if (dim == 2)
42         UpdateWithDim<2>(OutputPixelType);
43     else if (dim == 3)
44         UpdateWithDim<3>(OutputPixelType);
45     else if (dim == 4)
46         UpdateWithDim<4>(OutputPixelType);
47     else
48         std::cerr << "dim not know in Update ! " << std::endl;
49 }
50 //====================================================================
51
52 //====================================================================
53 void vvImageWriter::SetOutputFileName(std::string filename) {
54     mOutputFilename = filename;
55 }
56 //====================================================================
57
58 #endif
59