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 __bbvtkText3D_h_INCLUDED__
5 #define __bbvtkText3D_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
10 #include "vtkProp3D.h"
11 #include "vtkRenderer.h"
12 #include "vtkLinearTransform.h"
13 #include "vtkTextActor3D.h"
14 #include "vtkTextProperty.h"
20 class bbvtk_EXPORT Text3D
22 public bbtk::AtomicBlackBox
24 BBTK_BLACK_BOX_INTERFACE(Text3D,bbtk::AtomicBlackBox);
26 // 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)
28 BBTK_DECLARE_INPUT(In,std::string);
29 BBTK_DECLARE_INPUT(X,int);
30 BBTK_DECLARE_INPUT(Y,int);
31 BBTK_DECLARE_INPUT(Z,int);
32 BBTK_DECLARE_INPUT(Colour,std::vector<double>);
33 BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
34 BBTK_DECLARE_INPUT(Transform,vtkLinearTransform*);
36 BBTK_DECLARE_OUTPUT(Out,vtkProp3D*);
37 BBTK_PROCESS(Process);
40 vtkTextActor3D *_textActor;
41 vtkTextProperty *_textProp;
43 // 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)
47 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Text3D,bbtk::AtomicBlackBox);
49 BBTK_AUTHOR("Info-Deb");
50 BBTK_DESCRIPTION("Text in 3D vtkRender");
53 BBTK_INPUT(Text3D,In,"Input Text",std::string,"");
54 BBTK_INPUT(Text3D,X,"position X",int,"");
55 BBTK_INPUT(Text3D,Y,"position Y",int,"");
56 BBTK_INPUT(Text3D,Z,"position Z",int,"");
57 BBTK_INPUT(Text3D,Colour,"Colour vector RGB",std::vector<double>,"");
58 BBTK_INPUT(Text3D,Renderer,"vtk Renderer",vtkRenderer*,"");
59 BBTK_INPUT(Text3D,Transform,"",vtkLinearTransform*,"");
61 BBTK_OUTPUT(Text3D,Out,"vtk Actor",vtkProp3D*,"");
63 BBTK_END_DESCRIBE_BLACK_BOX(Text3D);
65 // 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 #endif // __bbvtkText3D_h_INCLUDED__