]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkPointPicker.h
3150 creaVtk Feature New Normal - PointPicker box
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPointPicker.h
diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPointPicker.h b/bbtk_creaVtk_PKG/src/bbcreaVtkPointPicker.h
new file mode 100644 (file)
index 0000000..804309f
--- /dev/null
@@ -0,0 +1,67 @@
+//===== 
+// 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)
+//===== 
+#ifndef __bbcreaVtkPointPicker_h_INCLUDED__
+#define __bbcreaVtkPointPicker_h_INCLUDED__
+#include "bbcreaVtk_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+#include "vtkCommand.h"
+#include "vtkRenderer.h"
+
+namespace bbcreaVtk
+{
+
+
+//---------------------------------------------
+class creaVtkCallbackPointPicker : public vtkCommand
+{
+       public:
+               static creaVtkCallbackPointPicker *New() { return new creaVtkCallbackPointPicker; }
+               void Delete() { delete this; }
+               virtual void Execute(vtkObject *caller, unsigned long, void*);
+               
+};
+
+
+//---------------------------------------------
+//---------------------------------------------
+//---------------------------------------------
+
+
+class bbcreaVtk_EXPORT PointPicker
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(PointPicker,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+  BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
+  BBTK_DECLARE_OUTPUT(Out,std::vector<double>);
+  BBTK_PROCESS(Process);
+  void Process();
+
+  bool firsttime;
+//===== 
+// 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)
+//===== 
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(PointPicker,bbtk::AtomicBlackBox);
+BBTK_NAME("PointPicker");
+BBTK_AUTHOR("InfoDev");
+BBTK_DESCRIPTION("No Description.");
+BBTK_CATEGORY("empty");
+BBTK_INPUT(PointPicker,Renderer,"vtk Renderer",vtkRenderer*,"");
+BBTK_OUTPUT(PointPicker,Out,"First output",std::vector<double>,"");
+BBTK_END_DESCRIBE_BLACK_BOX(PointPicker);
+//===== 
+// 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)
+//===== 
+}
+// EO namespace bbcreaVtk
+
+#endif // __bbcreaVtkPointPicker_h_INCLUDED__
+