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)
4 #ifndef __bbcreaVtkReadMHDPlane_h_INCLUDED__
5 #define __bbcreaVtkReadMHDPlane_h_INCLUDED__
12 #include "bbcreaVtk_EXPORT.h"
13 #include "bbtkAtomicBlackBox.h"
16 #include "vtkImageData.h"
17 #include "vtkMetaImageReader.h"
22 class bbcreaVtk_EXPORT ReadMHDPlane
24 public bbtk::AtomicBlackBox
26 BBTK_BLACK_BOX_INTERFACE(ReadMHDPlane,bbtk::AtomicBlackBox);
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)
30 BBTK_DECLARE_INPUT(FileName,std::string);
31 BBTK_DECLARE_INPUT(Slice,int);
32 BBTK_DECLARE_INPUT(Width,int);
33 BBTK_DECLARE_INPUT(DirectionPlane,std::string);
34 BBTK_DECLARE_INPUT(Type,int);
35 BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
36 BBTK_DECLARE_OUTPUT(Out2,vtkImageData*);
37 BBTK_PROCESS(Process);
39 vtkImageData* CreateDefaultImage();
40 // EED Borrame void ReadNormalMHD();
41 // EED Borrame void Read64lseek();
42 void Read64lseek(std::string,std::string plane);
43 void copy_ZX_plane(int fd,vtkImageData *newImage,int slice,int iWidth,int dimX,int dimY,int dimZ,int dataSize);
44 void copy_YZ_plane(int fd,vtkImageData *newImage,int slice,int iWidth,int dimX,int dimY,int dimZ,int dataSize);
45 vtkImageData* ChangeOrientation(vtkImageData* img);
50 // 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 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ReadMHDPlane,bbtk::AtomicBlackBox);
55 BBTK_NAME("ReadMHDPlane");
56 BBTK_AUTHOR("InfoDev");
57 BBTK_DESCRIPTION("No Description.");
58 BBTK_CATEGORY("empty");
59 BBTK_INPUT(ReadMHDPlane,FileName,"Image file name",std::string,"");
60 BBTK_INPUT(ReadMHDPlane,Slice,"Slice number",int,"");
61 BBTK_INPUT(ReadMHDPlane,Width,"(1 default) Number of slices to be read",int,"");
62 BBTK_INPUT(ReadMHDPlane,DirectionPlane,"Direction plane: XY (default), YZ , XZ",std::string,"");
63 BBTK_INPUT(ReadMHDPlane,Type,"(1 default) 0 = Normal mhd, 1 = lseek64",int,"");
64 BBTK_OUTPUT(ReadMHDPlane,Out,"Image 2D",vtkImageData*,"");
65 BBTK_OUTPUT(ReadMHDPlane,Out2,"Image 2D in the good orientation",vtkImageData*,"");
66 BBTK_END_DESCRIBE_BLACK_BOX(ReadMHDPlane);
68 // 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)
71 // EO namespace bbcreaVtk
73 #endif // __bbcreaVtkReadMHDPlane_h_INCLUDED__