]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.h
e32806bb23a31e2d021fc93d257e00ba0b9c3ab2
[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 };
28
29
30
31 class bbcreaVtk_EXPORT PlaneWidget
32  : 
33    public bbtk::AtomicBlackBox
34 {
35   BBTK_BLACK_BOX_INTERFACE(PlaneWidget,bbtk::AtomicBlackBox);
36 //===== 
37 // 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)
38 //===== 
39   BBTK_DECLARE_INPUT(Active,bool);
40   BBTK_DECLARE_INPUT(In,vtkImageData*);
41   BBTK_DECLARE_INPUT(Resolution,int);
42   BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
43   BBTK_DECLARE_INPUT(Representation,int);
44   BBTK_DECLARE_INPUT(Origin,std::vector<double>);
45   BBTK_DECLARE_INPUT(NormalIn,std::vector<double>);
46   BBTK_DECLARE_OUTPUT(Out,vtkDataSet*);
47   BBTK_DECLARE_OUTPUT(Center,std::vector<double>);
48   BBTK_DECLARE_OUTPUT(Normal,std::vector<double>);
49   BBTK_PROCESS(Process);
50   void Process();
51
52     boxcreaVtkPlaneWidget _boxcreavtkplanewidget;
53
54 //===== 
55 // 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)
56 //===== 
57 };
58
59
60 BBTK_BEGIN_DESCRIBE_BLACK_BOX(PlaneWidget,bbtk::AtomicBlackBox);
61 BBTK_NAME("PlaneWidget");
62 BBTK_AUTHOR("ED at Info-Dev Creatis");
63 BBTK_DESCRIPTION("No Description.");
64
65 BBTK_CATEGORY("empty");
66
67   BBTK_INPUT(PlaneWidget,Active,"Active widget (false default)",bool,"");
68   BBTK_INPUT(PlaneWidget,In,"Reference Image",vtkImageData*,"");
69   BBTK_INPUT(PlaneWidget,Resolution,"Resolution (60 default)",int,"");
70   BBTK_INPUT(PlaneWidget,Renderer,"vtkRenderer",vtkRenderer*,"");
71   BBTK_INPUT(PlaneWidget,Representation,"(default 1) 0:OutLine 1:Wireframe 2:Surface",int,"");
72   BBTK_INPUT(PlaneWidget,Origin,"Origin [x,y,z]",std::vector<double>,"");
73   BBTK_INPUT(PlaneWidget,NormalIn,"Normal [x,y,z]",std::vector<double>,"");
74
75   BBTK_OUTPUT(PlaneWidget,Out,"Dynamic plane result from vtkPlaneSource",vtkDataSet*,"");
76   BBTK_OUTPUT(PlaneWidget,Center,"Center of the plane",std::vector<double>,"");
77   BBTK_OUTPUT(PlaneWidget,Normal,"Normal of the plane",std::vector<double>,"");
78
79 BBTK_END_DESCRIBE_BLACK_BOX(PlaneWidget);
80
81 //===== 
82 // 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)
83 //===== 
84 }
85 // EO namespace bbcreaVtk
86
87 #endif // __bbcreaVtkPlaneWidget_h_INCLUDED__
88