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 __bbvtkCreateImage_h_INCLUDED__
5 #define __bbvtkCreateImage_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
13 #include "vtkImageData.h"
18 class bbvtk_EXPORT CreateImage
20 public bbtk::AtomicBlackBox
22 BBTK_BLACK_BOX_INTERFACE(CreateImage,bbtk::AtomicBlackBox);
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)
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);
34 vtkImageData* imageoutput;
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)
42 BBTK_BEGIN_DESCRIBE_BLACK_BOX(CreateImage,bbtk::AtomicBlackBox);
44 BBTK_NAME("CreateImage");
45 BBTK_AUTHOR("Info-Dev");
46 BBTK_DESCRIPTION("Create a new vtkImageData");
47 BBTK_CATEGORY("Filter");
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,"");
54 BBTK_OUTPUT(CreateImage,Out,"Output vtkImageData",vtkImageData*,"");
56 BBTK_END_DESCRIBE_BLACK_BOX(CreateImage);
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)
63 #endif // __bbvtkCreateImage_h_INCLUDED__