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 __bbcreaVtkPointPicker_h_INCLUDED__
5 #define __bbcreaVtkPointPicker_h_INCLUDED__
6 #include "bbcreaVtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
10 #include "vtkCommand.h"
11 #include "vtkRenderer.h"
12 #include "vtkProp3D.h"
13 #include <vtkRenderWindowInteractor.h>
21 //---------------------------------------------
22 class creaVtkCallbackPointPicker : public vtkCommand
26 creaVtkCallbackPointPicker();
28 static creaVtkCallbackPointPicker *New() { return new creaVtkCallbackPointPicker; }
29 void Delete() { delete this; }
30 virtual void Execute(vtkObject *caller, unsigned long, void*);
31 void setBox(PointPicker *box);
33 PointPicker *boxPointPicker;
38 //---------------------------------------------
39 //---------------------------------------------
40 //---------------------------------------------
42 typedef long int longInt;
44 class bbcreaVtk_EXPORT PointPicker
46 public bbtk::AtomicBlackBox
48 BBTK_BLACK_BOX_INTERFACE(PointPicker,bbtk::AtomicBlackBox);
50 // 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)
52 BBTK_DECLARE_INPUT(Active,bool);
53 BBTK_DECLARE_INPUT(TypeEvent,int );
54 BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
55 BBTK_DECLARE_OUTPUT(Point,std::vector<double>);
56 BBTK_DECLARE_OUTPUT(Mesh,vtkProp3D*);
57 BBTK_DECLARE_OUTPUT(PointId,longInt);
58 BBTK_DECLARE_OUTPUT(CellId,longInt);
59 BBTK_PROCESS(Process);
63 creaVtkCallbackPointPicker *callPicker;
66 // 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)
70 BBTK_BEGIN_DESCRIBE_BLACK_BOX(PointPicker,bbtk::AtomicBlackBox);
71 BBTK_NAME("PointPicker");
72 BBTK_AUTHOR("InfoDev");
73 BBTK_DESCRIPTION("No Description.");
74 BBTK_CATEGORY("empty");
76 BBTK_INPUT(PointPicker,Active,"(true default) true/false",bool,"");
77 BBTK_INPUT(PointPicker,TypeEvent,"(0 default) 0:NOTHING, 1:MouseMoveEvent 2:LeftButtonPressEvent 3:LeftButtonDoubleClickEvent",int,"");
78 BBTK_INPUT(PointPicker,Renderer,"vtk Renderer",vtkRenderer*,"");
80 BBTK_OUTPUT(PointPicker,Point,"Point (double)",std::vector<double>,"");
81 BBTK_OUTPUT(PointPicker,Mesh,"Mesh",vtkProp3D*,"");
82 BBTK_OUTPUT(PointPicker,PointId,"Point Id in Mesh",longInt,"");
83 BBTK_OUTPUT(PointPicker,CellId,"Cell Id in Mesh",longInt,"");
85 BBTK_END_DESCRIBE_BLACK_BOX(PointPicker);
87 // 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)
90 // EO namespace bbcreaVtk
92 #endif // __bbcreaVtkPointPicker_h_INCLUDED__