]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkMetaImageWriter.h
Merge branch 'vtk8itk5wx3-mingw64' of ssh://git.creatis.insa-lyon.fr/bbtk into vtk8it...
[bbtk.git] / packages / vtk / src / bbvtkMetaImageWriter.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbvtkMetaImageWriter_h_INCLUDED__
5 #define __bbvtkMetaImageWriter_h_INCLUDED__
6
7 #include "bbvtk_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 #include <vtkImageData.h> 
12
13
14 namespace bbvtk
15 {
16
17 class bbvtk_EXPORT MetaImageWriter
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(MetaImageWriter,bbtk::AtomicBlackBox);
22 //===== 
23 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
24 //===== 
25   BBTK_DECLARE_INPUT(In,vtkImageData*);
26   BBTK_DECLARE_INPUT(Filename,std::string);
27   BBTK_DECLARE_INPUT(Compression,bool);
28   BBTK_DECLARE_INPUT(SizeBlock,int);
29 //  BBTK_DECLARE_OUTPUT(Out,double);
30   BBTK_PROCESS(Process);
31   void Process();
32   
33 void Save_mhdb( std::string filename  , vtkImageData* img , int sizeB);
34   
35 //===== 
36 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
37 //===== 
38 };
39
40 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MetaImageWriter,bbtk::AtomicBlackBox);
41   BBTK_NAME("MetaImageWriter");
42   BBTK_AUTHOR("InfoDev");
43   BBTK_DESCRIPTION("No Description.");
44   BBTK_CATEGORY("empty");
45
46   BBTK_INPUT(MetaImageWriter,In,"Input image",vtkImageData*,"");
47   BBTK_INPUT(MetaImageWriter,Filename,"Name of the file to write",std::string,"file name");
48   BBTK_INPUT(MetaImageWriter,Compression,"default(false)   true/false",bool,"");
49   BBTK_INPUT(MetaImageWriter,SizeBlock,"(default 50)  Size block  (for .mhdb format)",int,"");
50   
51   //BBTK_OUTPUT(MetaImageWriter,Out,"First output",double,"");
52   
53 BBTK_END_DESCRIBE_BLACK_BOX(MetaImageWriter);
54 //===== 
55 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
56 //===== 
57 }
58 // EO namespace bbvtk
59
60 #endif // __bbvtkMetaImageWriter_h_INCLUDED__
61