1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
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.
13 It is distributed under dual licence
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
21 #include "vvImageWriter.h"
22 #include "vvImageWriter.txx"
26 //------------------------------------------------------------------------------
27 vvImageWriter::vvImageWriter()
32 mUseAnObserver = false;
33 mSaveTransform = false;
35 //------------------------------------------------------------------------------
38 //------------------------------------------------------------------------------
39 vvImageWriter::~vvImageWriter()
42 //------------------------------------------------------------------------------
45 //------------------------------------------------------------------------------
46 void vvImageWriter::Update(int dim,std::string OutputPixelType)
48 //CALL_FOR_ALL_DIMS(dim,UpdateWithDim,inputPixelType);
50 UpdateWithDim<2>(OutputPixelType);
52 UpdateWithDim<3>(OutputPixelType);
54 UpdateWithDim<4>(OutputPixelType);
56 std::cerr << "dim not know in Update ! " << std::endl;
58 //------------------------------------------------------------------------------
61 //------------------------------------------------------------------------------
62 void vvImageWriter::SetOutputFileName(std::string filename)
64 mOutputFilename = filename;
66 //------------------------------------------------------------------------------