]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkReadMHDPlane.h
#2711 creaVtk Feature New Normal - new Box ReadMHDPlane
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkReadMHDPlane.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 __bbcreaVtkReadMHDPlane_h_INCLUDED__
5 #define __bbcreaVtkReadMHDPlane_h_INCLUDED__
6
7
8
9
10
11
12 #include "bbcreaVtk_EXPORT.h"
13 #include "bbtkAtomicBlackBox.h"
14 #include "iostream"
15
16 #include "vtkImageData.h"
17 #include "vtkMetaImageReader.h"
18
19 namespace bbcreaVtk
20 {
21
22 class bbcreaVtk_EXPORT ReadMHDPlane
23  : 
24    public bbtk::AtomicBlackBox
25 {
26   BBTK_BLACK_BOX_INTERFACE(ReadMHDPlane,bbtk::AtomicBlackBox);
27 //===== 
28 // 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)
29 //===== 
30   BBTK_DECLARE_INPUT(FileName,std::string);
31   BBTK_DECLARE_INPUT(Slice,int);
32   BBTK_DECLARE_INPUT(DirectionPlane,std::string);
33   BBTK_DECLARE_INPUT(Type,int);
34   BBTK_DECLARE_OUTPUT(Out,vtkImageData*); 
35   BBTK_PROCESS(Process);
36         
37   vtkImageData* CreateDefaultImage();
38   void ReadNormalMHD();
39   void Read64lseek();
40
41   void Process();
42 //===== 
43 // 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)
44 //===== 
45 };
46
47 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadMHDPlane,bbtk::AtomicBlackBox);
48  BBTK_NAME("ReadMHDPlane");
49  BBTK_AUTHOR("InfoDev");
50  BBTK_DESCRIPTION("No Description.");
51  BBTK_CATEGORY("empty");
52  BBTK_INPUT(ReadMHDPlane,FileName,"Image file name",std::string,"");
53  BBTK_INPUT(ReadMHDPlane,Slice,"Slice number",int,"");
54  BBTK_INPUT(ReadMHDPlane,DirectionPlane,"Direction plane: XY (default), YZ , XZ",std::string,"");
55  BBTK_INPUT(ReadMHDPlane,Type,"(0 default) 0 = Normal mhd,  1 = lseek64",int,"");
56  BBTK_OUTPUT(ReadMHDPlane,Out,"Image 2D",vtkImageData*,"");
57 BBTK_END_DESCRIBE_BLACK_BOX(ReadMHDPlane);
58 //===== 
59 // 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)
60 //===== 
61 }
62 // EO namespace bbcreaVtk
63
64 #endif // __bbcreaVtkReadMHDPlane_h_INCLUDED__
65