]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkImageProperties.h
dfdefe0397073a7503a9d7327bac3faca9bebab5
[bbtk.git] / packages / vtk / src / bbvtkImageProperties.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 __bbvtkImageProperties_h_INCLUDED__
5 #define __bbvtkImageProperties_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9 #include <vtkImageData.h>
10
11
12 namespace bbvtk
13 {
14
15 class bbvtk_EXPORT ImageProperties
16  : 
17    public bbtk::AtomicBlackBox
18 {
19   BBTK_BLACK_BOX_INTERFACE(ImageProperties,bbtk::AtomicBlackBox);
20 //===== 
21 // 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)
22 //===== 
23         BBTK_DECLARE_INPUT(In,vtkImageData*);
24         BBTK_DECLARE_OUTPUT(Dimension,unsigned int);
25         BBTK_DECLARE_OUTPUT(MinMax,std::vector<float>);
26         BBTK_DECLARE_OUTPUT(Size,std::vector<int>);
27         BBTK_DECLARE_OUTPUT(Spacing,std::vector<float>);
28         BBTK_DECLARE_OUTPUT(TypeName,std::string);
29         BBTK_DECLARE_OUTPUT(Components,int);
30   BBTK_PROCESS(Process);
31   void Process();
32 //===== 
33 // 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)
34 //===== 
35 };
36
37 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageProperties,bbtk::AtomicBlackBox);
38  BBTK_NAME("ImageProperties");
39  BBTK_AUTHOR("Info-Dev Creatis");
40  BBTK_DESCRIPTION("Image information Dim, Spc, Type, MinMax");
41  BBTK_CATEGORY("filter");
42  BBTK_INPUT(ImageProperties,In,"Input image (vtk)",vtkImageData*,"");
43  BBTK_OUTPUT(ImageProperties,Dimension,"Dimensions 1D 2D 3D",unsigned int,"");
44  BBTK_OUTPUT(ImageProperties,MinMax,"Gray level range min and max",std::vector<float>,"");
45  BBTK_OUTPUT(ImageProperties,Size,"Size of the image",std::vector<int>,"");
46  BBTK_OUTPUT(ImageProperties,Spacing,"Spacing of the image",std::vector<float>,"");
47  BBTK_OUTPUT(ImageProperties,TypeName,"Type format of the image",std::string,"");
48  BBTK_OUTPUT(ImageProperties,Components,"Number of scalar components",int,"");
49 BBTK_END_DESCRIBE_BLACK_BOX(ImageProperties);
50 //===== 
51 // 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)
52 //===== 
53 }
54 // EO namespace bbvtk
55
56 #endif // __bbvtkImageProperties_h_INCLUDED__
57