X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPointPicker.h;fp=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPointPicker.h;h=804309f09e400a12d7ab94e8e9be0b6373e800ba;hb=89f100d62b34e0248551ba2ce51de2c1ec7aa890;hp=0000000000000000000000000000000000000000;hpb=175699379042403d48be1c75d24a6aa9308eb2c1;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPointPicker.h b/bbtk_creaVtk_PKG/src/bbcreaVtkPointPicker.h new file mode 100644 index 0000000..804309f --- /dev/null +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPointPicker.h @@ -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); + 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,""); +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__ +