]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuManualPaint_Model.h
#2976 creaMaracasVisu Feature New Normal - ManualContourModel_Box
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuManualPaint_Model.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 __bbcreaMaracasVisuManualPaint_Model_h_INCLUDED__
5 #define __bbcreaMaracasVisuManualPaint_Model_h_INCLUDED__
6 #include "bbcreaMaracasVisu_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include <ManualPaintModel.h>
11
12 namespace bbcreaMaracasVisu
13 {
14
15 class bbcreaMaracasVisu_EXPORT ManualPaint_Model
16  : 
17    public bbtk::AtomicBlackBox
18 {
19   BBTK_BLACK_BOX_INTERFACE(ManualPaint_Model,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(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_PROCESS(Process);
42   void Process();
43
44
45   ManualPaintModel *manualpaintmodel;
46
47 //===== 
48 // 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)
49 //===== 
50 };
51
52 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ManualPaint_Model,bbtk::AtomicBlackBox);
53   BBTK_NAME("ManualPaint_Model");
54   BBTK_AUTHOR("InfoDev");
55   BBTK_DESCRIPTION("No Description.");
56   BBTK_CATEGORY("empty");
57
58   BBTK_INPUT(ManualPaint_Model,Active,"true (default) , false",bool,"");
59   BBTK_INPUT(ManualPaint_Model,Tool,"0=Brush, 1=Fill(default)",int,"");
60   BBTK_INPUT(ManualPaint_Model,2D3D,"0=2D, 1=3D (default)",int,"");
61   BBTK_INPUT(ManualPaint_Model,Image,"Image input / image result",vtkImageData*,"");
62   BBTK_INPUT(ManualPaint_Model,Image2,"Image result",vtkImageData*,"");
63   BBTK_INPUT(ManualPaint_Model,GrayLevel,"Fill gray level (100 default)",double,"");
64   BBTK_INPUT(ManualPaint_Model,Direction,"Used in the 2D mode.   0=YZ , 1=XY , 2=XY(default) ",int,"");
65   BBTK_INPUT(ManualPaint_Model,BrushSize,"default 3",int,"");
66   BBTK_INPUT(ManualPaint_Model,BrushForm,"1 default   A) 2D 0=rect,1=circle    B) 3D 0=cube,1=sphere",int,"");
67   BBTK_INPUT(ManualPaint_Model,ToleranceFill,"default 50",double,"");
68   BBTK_INPUT(ManualPaint_Model,DistanceFill,"25 (default)",int,"");
69   BBTK_INPUT(ManualPaint_Model,Point,"[] (default)",std::vector<int>,"");
70   BBTK_INPUT(ManualPaint_Model,ByImagePoints,"Use image with values > 0 to run the ManualPaint",vtkImageData*,"");
71   BBTK_INPUT(ManualPaint_Model,ByLstPointsX,"X Lst of points to run the Manual Paint",std::vector<int>,"");
72   BBTK_INPUT(ManualPaint_Model,ByLstPointsY,"Y Lst of points to run the Manual Paint",std::vector<int>,"");
73   BBTK_INPUT(ManualPaint_Model,ByLstPointsZ,"Z Lst of points to run the Manual Paint",std::vector<int>,"");
74   BBTK_INPUT(ManualPaint_Model,Range,"min-max range [0 200] default",std::vector<double>,"");
75   BBTK_OUTPUT(ManualPaint_Model,Out,"Output image. Is the same pointer of input Image or Image2 with the modifications",vtkImageData*,"");
76
77 BBTK_END_DESCRIBE_BLACK_BOX(ManualPaint_Model);
78 //===== 
79 // 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)
80 //===== 
81 }
82 // EO namespace bbcreaMaracasVisu
83
84 #endif // __bbcreaMaracasVisuManualPaint_Model_h_INCLUDED__
85