]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkCreateImage.h
4d23d1cf198f0d17135878925a0545dcfef96de1
[bbtk.git] / packages / vtk / src / bbvtkCreateImage.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 __bbvtkCreateImage_h_INCLUDED__
5 #define __bbvtkCreateImage_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9 #include <vector>
10 #include <string>
11
12
13 #include "vtkImageData.h"
14
15 namespace bbvtk
16 {
17
18 class bbvtk_EXPORT CreateImage
19  : 
20    public bbtk::AtomicBlackBox
21 {
22   BBTK_BLACK_BOX_INTERFACE(CreateImage,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(Dimensions,std::vector<int>);
27         BBTK_DECLARE_INPUT(Spacing,std::vector<double>);
28         BBTK_DECLARE_INPUT(OutputFormat,std::string);
29         BBTK_DECLARE_INPUT(InitialValue,double);
30         BBTK_DECLARE_OUTPUT(Out,vtkImageData *);
31         BBTK_PROCESS(Process);
32    void Process();
33         
34         vtkImageData* imageoutput;
35
36         
37 //===== 
38 // 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)
39 //===== 
40 };
41
42 BBTK_BEGIN_DESCRIBE_BLACK_BOX(CreateImage,bbtk::AtomicBlackBox);
43         
44         BBTK_NAME("CreateImage");
45         BBTK_AUTHOR("Info-Dev");
46         BBTK_DESCRIPTION("Create a new vtkImageData");
47         BBTK_CATEGORY("Filter");
48         
49         BBTK_INPUT(CreateImage,Dimensions,"[SizeX SizeY SizeZ] of the image ([250 250 250] default)",std::vector<int>,"");
50         BBTK_INPUT(CreateImage,Spacing,"[SpcX SpcY SpcZ] of the image ([1 1 1] default)",std::vector<double>,"");
51         BBTK_INPUT(CreateImage,OutputFormat,"Image output format:  VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT VTK_UNSIGNED_SHORT (default), VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE",std::string,"");
52         BBTK_INPUT(CreateImage,InitialValue,"Initial value inside the image (0 default)",double,"");
53
54         BBTK_OUTPUT(CreateImage,Out,"Output vtkImageData",vtkImageData*,"");
55         
56 BBTK_END_DESCRIBE_BLACK_BOX(CreateImage);
57 //===== 
58 // 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)
59 //===== 
60 }
61 // EO namespace bbvtk
62
63 #endif // __bbvtkCreateImage_h_INCLUDED__
64