]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.h
#3483 PlaneWidget_Base Box
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPlaneWidget.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 __bbcreaVtkPlaneWidget_h_INCLUDED__
5 #define __bbcreaVtkPlaneWidget_h_INCLUDED__
6 #include "bbcreaVtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include "creaVtkPlaneWidget.h"
11
12 #include "vtkImageData.h"
13 #include "vtkPlaneSource.h"
14 #include "vtkRenderer.h"
15
16
17 namespace bbcreaVtk
18 {
19
20 class PlaneWidget;
21
22 class boxcreaVtkPlaneWidget : public creaVtkPlaneWidget
23 {
24   public:
25     virtual void Execute();
26     PlaneWidget     *_box;
27     int             _ReactiveType;
28     double          _cxBack;  // center
29     double          _cyBack;
30     double          _czBack;
31     double          _nxBack;  // normal
32     double          _nyBack;
33     double          _nzBack;
34 };
35
36
37
38 class bbcreaVtk_EXPORT PlaneWidget
39  : 
40    public bbtk::AtomicBlackBox
41 {
42   BBTK_BLACK_BOX_INTERFACE(PlaneWidget,bbtk::AtomicBlackBox);
43 //===== 
44 // 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)
45 //===== 
46     BBTK_DECLARE_INPUT(Active,bool);
47     BBTK_DECLARE_INPUT(In,vtkImageData*);
48     BBTK_DECLARE_INPUT(Resolution,int);
49     BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
50     BBTK_DECLARE_INPUT(Representation,int);
51     BBTK_DECLARE_INPUT(Origin,std::vector<double>);
52     BBTK_DECLARE_INPUT(NormalIn,std::vector<double>);
53     BBTK_DECLARE_INPUT(ReactiveType,int);
54
55     BBTK_DECLARE_OUTPUT(Out,vtkDataSet*);
56     BBTK_DECLARE_OUTPUT(Center,std::vector<double>);
57     BBTK_DECLARE_OUTPUT(Normal,std::vector<double>);
58     BBTK_DECLARE_OUTPUT(Base, creaVtkPlaneWidget* );
59     BBTK_PROCESS(Process);
60     void Process();
61
62     boxcreaVtkPlaneWidget _boxcreavtkplanewidget;
63
64 //===== 
65 // 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)
66 //===== 
67 };
68
69
70 BBTK_BEGIN_DESCRIBE_BLACK_BOX(PlaneWidget,bbtk::AtomicBlackBox);
71 BBTK_NAME("PlaneWidget");
72 BBTK_AUTHOR("ED at Info-Dev Creatis");
73 BBTK_DESCRIPTION("No Description.");
74
75 BBTK_CATEGORY("empty");
76
77   BBTK_INPUT(PlaneWidget,Active,"Active widget (false default)",bool,"");
78   BBTK_INPUT(PlaneWidget,In,"Reference Image",vtkImageData*,"");
79   BBTK_INPUT(PlaneWidget,Resolution,"Resolution (60 default)",int,"");
80   BBTK_INPUT(PlaneWidget,Renderer,"vtkRenderer",vtkRenderer*,"");
81   BBTK_INPUT(PlaneWidget,Representation,"(default 1) 0:OutLine 1:Wireframe 2:Surface",int,"");
82   BBTK_INPUT(PlaneWidget,Origin,"Origin [x,y,z]",std::vector<double>,"");
83   BBTK_INPUT(PlaneWidget,NormalIn,"Normal [x,y,z]",std::vector<double>,"");
84   BBTK_INPUT(PlaneWidget,ReactiveType,"(default 0)  0=Centar and Normal change  1=Center change  2=Normal change",int,"");
85
86   BBTK_OUTPUT(PlaneWidget,Out,"Dynamic plane result from vtkPlaneSource",vtkDataSet*,"");
87   BBTK_OUTPUT(PlaneWidget,Center,"Center of the plane",std::vector<double>,"");
88   BBTK_OUTPUT(PlaneWidget,Normal,"Normal of the plane",std::vector<double>,"");
89   BBTK_OUTPUT(PlaneWidget,Base,"Base creaVtkPlaneWidget", creaVtkPlaneWidget* ,"");
90
91 BBTK_END_DESCRIBE_BLACK_BOX(PlaneWidget);
92
93 //===== 
94 // 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)
95 //===== 
96 }
97 // EO namespace bbcreaVtk
98
99 #endif // __bbcreaVtkPlaneWidget_h_INCLUDED__
100