]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkMetaImageWriter.h
37ec801fc71bfc8eea345c352a0c845ab9c91ab7
[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_OUTPUT(Out,double);
29   BBTK_PROCESS(Process);
30   void Process();
31   
32 void Save_mhdb( std::string filename  , vtkImageData* img , int sizeB);
33   
34 //===== 
35 // 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)
36 //===== 
37 };
38
39 BBTK_BEGIN_DESCRIBE_BLACK_BOX(MetaImageWriter,bbtk::AtomicBlackBox);
40   BBTK_NAME("MetaImageWriter");
41   BBTK_AUTHOR("InfoDev");
42   BBTK_DESCRIPTION("No Description.");
43   BBTK_CATEGORY("empty");
44
45   BBTK_INPUT(MetaImageWriter,In,"Input image",vtkImageData*,"");
46   BBTK_INPUT(MetaImageWriter,Filename,"Name of the file to write",std::string,"file name");
47   BBTK_INPUT(MetaImageWriter,Compression,"default(false)   true/false",bool,"");
48   
49   //BBTK_OUTPUT(MetaImageWriter,Out,"First output",double,"");
50   
51 BBTK_END_DESCRIBE_BLACK_BOX(MetaImageWriter);
52 //===== 
53 // 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)
54 //===== 
55 }
56 // EO namespace bbvtk
57
58 #endif // __bbvtkMetaImageWriter_h_INCLUDED__
59