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 __bbcreaMaracasVisuManualPaint_Model_h_INCLUDED__
5 #define __bbcreaMaracasVisuManualPaint_Model_h_INCLUDED__
6 #include "bbcreaMaracasVisu_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
10 #include <ManualPaintModel.h>
12 namespace bbcreaMaracasVisu
15 class bbcreaMaracasVisu_EXPORT ManualPaint_Model
17 public bbtk::AtomicBlackBox
19 BBTK_BLACK_BOX_INTERFACE(ManualPaint_Model,bbtk::AtomicBlackBox);
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)
23 BBTK_DECLARE_INPUT(Active,bool);
24 BBTK_DECLARE_INPUT(Tool,int);
25 BBTK_DECLARE_INPUT(2D3D,int);
26 BBTK_DECLARE_INPUT(Image,vtkImageData*);
27 BBTK_DECLARE_INPUT(Image2,vtkImageData*);
28 BBTK_DECLARE_INPUT(GrayLevel,double);
29 BBTK_DECLARE_INPUT(Direction,int);
30 BBTK_DECLARE_INPUT(BrushSize,int);
31 BBTK_DECLARE_INPUT(BrushForm,int);
32 BBTK_DECLARE_INPUT(ToleranceFill,double);
33 BBTK_DECLARE_INPUT(DistanceFill,int);
34 BBTK_DECLARE_INPUT(Point,std::vector<int>);
35 BBTK_DECLARE_INPUT(ByImagePoints,vtkImageData*);
36 BBTK_DECLARE_INPUT(ByLstPointsX,std::vector<int>);
37 BBTK_DECLARE_INPUT(ByLstPointsY,std::vector<int>);
38 BBTK_DECLARE_INPUT(ByLstPointsZ,std::vector<int>);
39 BBTK_DECLARE_INPUT(Range,std::vector<double>);
40 BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
41 BBTK_DECLARE_OUTPUT(Manualpaintmodel,ManualPaintModel*);
42 BBTK_PROCESS(Process);
45 void LstPointOMPAnalice();
46 ManualPaintModel *manualpaintmodel;
49 // 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)
53 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ManualPaint_Model,bbtk::AtomicBlackBox);
54 BBTK_NAME("ManualPaint_Model");
55 BBTK_AUTHOR("InfoDev");
56 BBTK_DESCRIPTION("No Description.");
57 BBTK_CATEGORY("empty");
59 BBTK_INPUT(ManualPaint_Model,Active,"true (default) , false",bool,"");
60 BBTK_INPUT(ManualPaint_Model,Tool,"0=Brush, 1=Fill(default)",int,"");
61 BBTK_INPUT(ManualPaint_Model,2D3D,"0=2D, 1=3D (default)",int,"");
62 BBTK_INPUT(ManualPaint_Model,Image,"Image input / image result",vtkImageData*,"");
63 BBTK_INPUT(ManualPaint_Model,Image2,"Image result",vtkImageData*,"");
64 BBTK_INPUT(ManualPaint_Model,GrayLevel,"Fill gray level (100 default)",double,"");
65 BBTK_INPUT(ManualPaint_Model,Direction,"Used in the 2D mode. 0=YZ , 1=XZ , 2=XY(default) ",int,"");
66 BBTK_INPUT(ManualPaint_Model,BrushSize,"default 3",int,"");
67 BBTK_INPUT(ManualPaint_Model,BrushForm,"1 default A) 2D 0=rect,1=circle B) 3D 0=cube,1=sphere",int,"");
68 BBTK_INPUT(ManualPaint_Model,ToleranceFill,"default 50",double,"");
69 BBTK_INPUT(ManualPaint_Model,DistanceFill,"25 (default)",int,"");
70 BBTK_INPUT(ManualPaint_Model,Point,"[] (default)",std::vector<int>,"");
71 BBTK_INPUT(ManualPaint_Model,ByImagePoints,"Use image with values > 0 to run the ManualPaint",vtkImageData*,"");
72 BBTK_INPUT(ManualPaint_Model,ByLstPointsX,"X Lst of points to run the Manual Paint",std::vector<int>,"");
73 BBTK_INPUT(ManualPaint_Model,ByLstPointsY,"Y Lst of points to run the Manual Paint",std::vector<int>,"");
74 BBTK_INPUT(ManualPaint_Model,ByLstPointsZ,"Z Lst of points to run the Manual Paint",std::vector<int>,"");
75 BBTK_INPUT(ManualPaint_Model,Range,"min-max range [0 200] default",std::vector<double>,"");
76 BBTK_OUTPUT(ManualPaint_Model,Out,"Output image. Is the same pointer of input Image or Image2 with the modifications",vtkImageData*,"");
77 BBTK_OUTPUT(ManualPaint_Model,Manualpaintmodel,"ManualPaintModel",ManualPaintModel*,"");
79 BBTK_END_DESCRIBE_BLACK_BOX(ManualPaint_Model);
81 // 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)
84 // EO namespace bbcreaMaracasVisu
86 #endif // __bbcreaMaracasVisuManualPaint_Model_h_INCLUDED__