]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkMetaImageWriter.h
Clean code
[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 "vtkVersion.h"
12 #include <vtkImageData.h> 
13
14
15 namespace bbvtk
16 {
17
18 class bbvtk_EXPORT MetaImageWriter
19  : 
20    public bbtk::AtomicBlackBox
21 {
22   BBTK_BLACK_BOX_INTERFACE(MetaImageWriter,bbtk::AtomicBlackBox);
23 //===== 
24 // 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)
25 //===== 
26   BBTK_DECLARE_INPUT(In,vtkImageData*);
27   BBTK_DECLARE_INPUT(Filename,std::string);
28   BBTK_DECLARE_INPUT(Compression,bool);
29   BBTK_DECLARE_INPUT(SizeBlock,int);
30 //  BBTK_DECLARE_OUTPUT(Out,double);
31   BBTK_PROCESS(Process);
32   void Process();
33   
34 void Save_mhdb( std::string filename  , vtkImageData* img , int sizeB);
35   
36 //===== 
37 // 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)
38 //===== 
39 };
40
41 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MetaImageWriter,bbtk::AtomicBlackBox);
42   BBTK_NAME("MetaImageWriter");
43   BBTK_AUTHOR("InfoDev");
44   BBTK_DESCRIPTION("No Description.");
45   BBTK_CATEGORY("empty");
46
47   BBTK_INPUT(MetaImageWriter,In,"Input image",vtkImageData*,"");
48   BBTK_INPUT(MetaImageWriter,Filename,"Name of the file to write",std::string,"file name");
49   BBTK_INPUT(MetaImageWriter,Compression,"default(false)   true/false",bool,"");
50   BBTK_INPUT(MetaImageWriter,SizeBlock,"(default 50)  Size block  (for .mhdb format)",int,"");
51   
52   //BBTK_OUTPUT(MetaImageWriter,Out,"First output",double,"");
53   
54 BBTK_END_DESCRIBE_BLACK_BOX(MetaImageWriter);
55 //===== 
56 // 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)
57 //===== 
58 }
59 // EO namespace bbvtk
60
61 #endif // __bbvtkMetaImageWriter_h_INCLUDED__
62