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 __bbvtkText2D_h_INCLUDED__
5 #define __bbvtkText2D_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
11 #include "vtkRenderer.h"
12 #include "vtkTextActor.h"
17 class bbvtk_EXPORT Text2D
19 public bbtk::AtomicBlackBox
21 BBTK_BLACK_BOX_INTERFACE(Text2D,bbtk::AtomicBlackBox);
23 // 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)
25 BBTK_DECLARE_INPUT(In,std::string);
26 BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
27 BBTK_DECLARE_INPUT(Point,std::vector<double>);
28 BBTK_DECLARE_INPUT(Spacing,std::vector<double>);
29 BBTK_DECLARE_INPUT(Opacity,double);
30 BBTK_DECLARE_INPUT(FontSize,int);
31 BBTK_DECLARE_INPUT(FontBold,bool);
32 BBTK_DECLARE_INPUT(FontItalic,bool);
33 BBTK_DECLARE_INPUT(FontShadow,bool);
34 BBTK_DECLARE_INPUT(Color,std::vector<double>);
35 BBTK_DECLARE_OUTPUT( Out , vtkProp* );
36 BBTK_PROCESS(Process);
39 vtkTextActor *_textActor;
42 // 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)
46 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Text2D,bbtk::AtomicBlackBox);
48 BBTK_AUTHOR("Info-Dev");
49 BBTK_DESCRIPTION("No Description.");
50 BBTK_CATEGORY("empty");
52 BBTK_INPUT(Text2D,In,"Input text (default = 'VOID')",std::string,"");
53 BBTK_INPUT(Text2D,Point,"Point [x,y,z]",std::vector<double>,"");
54 BBTK_INPUT(Text2D,Spacing,"Spacing [sx,sy,sz] default [1,1,1]",std::vector<double>,"");
55 BBTK_INPUT(Text2D,Opacity,"Pacity (default 1)",double,"");
56 BBTK_INPUT(Text2D,Renderer,"Vtk Rendere ",vtkRenderer*,"");
57 BBTK_INPUT(Text2D,FontSize,"Font size (default 14)",int,"");
58 BBTK_INPUT(Text2D,FontBold,"(default false) Bold true/false",bool,"");
59 BBTK_INPUT(Text2D,FontItalic,"(default false) Italic true/false",bool,"");
60 BBTK_INPUT(Text2D,FontShadow,"(default false) Shadow true/false",bool,"");
61 BBTK_INPUT(Text2D,Color,"vector color [r,g,b] (default [0,0,1])",std::vector<double>,"");
63 BBTK_OUTPUT(Text2D,Out,"vtk Prop",vtkProp*,"");
65 BBTK_END_DESCRIBE_BLACK_BOX(Text2D);
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)
72 #endif // __bbvtkText2D_h_INCLUDED__