X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkText2D.h;fp=packages%2Fvtk%2Fsrc%2FbbvtkText2D.h;h=ff85ca4c8479e400e6f62162eae0f8866ba9e758;hb=427d8c0ac838ab789a57b28f62a7f9ff243e7b60;hp=0000000000000000000000000000000000000000;hpb=c2d2ccbc4bac635e5d0b802d9830efd94b060dab;p=bbtk.git diff --git a/packages/vtk/src/bbvtkText2D.h b/packages/vtk/src/bbvtkText2D.h new file mode 100644 index 0000000..ff85ca4 --- /dev/null +++ b/packages/vtk/src/bbvtkText2D.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 __bbvtkText2D_h_INCLUDED__ +#define __bbvtkText2D_h_INCLUDED__ +#include "bbvtk_EXPORT.h" +#include "bbtkAtomicBlackBox.h" +#include "iostream" + +#include "vtkProp.h" +#include "vtkRenderer.h" +#include "vtkTextActor.h" + +namespace bbvtk +{ + +class bbvtk_EXPORT Text2D + : + public bbtk::AtomicBlackBox +{ + BBTK_BLACK_BOX_INTERFACE(Text2D,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(In,std::string); + BBTK_DECLARE_INPUT(Renderer,vtkRenderer*); + BBTK_DECLARE_INPUT(Point,std::vector); + BBTK_DECLARE_INPUT(Spacing,std::vector); + BBTK_DECLARE_INPUT(Opacity,double); + BBTK_DECLARE_INPUT(FontSize,int); + BBTK_DECLARE_INPUT(Color,std::vector); + BBTK_DECLARE_OUTPUT( Out , vtkProp* ); + BBTK_PROCESS(Process); + void Process(); + + vtkTextActor *_textActor; + +//===== +// 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(Text2D,bbtk::AtomicBlackBox); + BBTK_NAME("Text2D"); + BBTK_AUTHOR("Info-Dev"); + BBTK_DESCRIPTION("No Description."); + BBTK_CATEGORY("empty"); + + BBTK_INPUT(Text2D,In,"Input text (default = 'VOID')",std::string,""); + BBTK_INPUT(Text2D,Point,"Point [x,y,z]",std::vector,""); + BBTK_INPUT(Text2D,Spacing,"Spacing [sx,sy,sz] default [1,1,1]",std::vector,""); + BBTK_INPUT(Text2D,Opacity,"Pacity (default 1)",double,""); + BBTK_INPUT(Text2D,Renderer,"Vtk Rendere ",vtkRenderer*,""); + BBTK_INPUT(Text2D,FontSize,"Font size (default 14)",int,""); + BBTK_INPUT(Text2D,Color,"vector color [r,g,b] (default [0,0,1])",std::vector,""); + + BBTK_OUTPUT(Text2D,Out,"vtk Prop",vtkProp*,""); + +BBTK_END_DESCRIBE_BLACK_BOX(Text2D); +//===== +// 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 bbvtk + +#endif // __bbvtkText2D_h_INCLUDED__ +