]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkPointPicker.h
3150 creaVtk Feature New Normal - PointPicker box
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPointPicker.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 __bbcreaVtkPointPicker_h_INCLUDED__
5 #define __bbcreaVtkPointPicker_h_INCLUDED__
6 #include "bbcreaVtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include "vtkCommand.h"
11 #include "vtkRenderer.h"
12
13 namespace bbcreaVtk
14 {
15
16
17 //---------------------------------------------
18 class creaVtkCallbackPointPicker : public vtkCommand
19 {
20         public:
21                 static creaVtkCallbackPointPicker *New() { return new creaVtkCallbackPointPicker; }
22                 void Delete() { delete this; }
23                 virtual void Execute(vtkObject *caller, unsigned long, void*);
24                 
25 };
26
27
28 //---------------------------------------------
29 //---------------------------------------------
30 //---------------------------------------------
31
32
33 class bbcreaVtk_EXPORT PointPicker
34  : 
35    public bbtk::AtomicBlackBox
36 {
37   BBTK_BLACK_BOX_INTERFACE(PointPicker,bbtk::AtomicBlackBox);
38 //===== 
39 // 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)
40 //===== 
41   BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
42   BBTK_DECLARE_OUTPUT(Out,std::vector<double>);
43   BBTK_PROCESS(Process);
44   void Process();
45
46   bool firsttime;
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(PointPicker,bbtk::AtomicBlackBox);
53 BBTK_NAME("PointPicker");
54 BBTK_AUTHOR("InfoDev");
55 BBTK_DESCRIPTION("No Description.");
56 BBTK_CATEGORY("empty");
57 BBTK_INPUT(PointPicker,Renderer,"vtk Renderer",vtkRenderer*,"");
58 BBTK_OUTPUT(PointPicker,Out,"First output",std::vector<double>,"");
59 BBTK_END_DESCRIBE_BLACK_BOX(PointPicker);
60 //===== 
61 // 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)
62 //===== 
63 }
64 // EO namespace bbcreaVtk
65
66 #endif // __bbcreaVtkPointPicker_h_INCLUDED__
67