]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkText3D.h
Feature #1609 g packages/wxvtk/doc/bbdoc
[bbtk.git] / packages / vtk / src / bbvtkText3D.h
1 //===== 
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)
3 //===== 
4 #ifndef __bbvtkText3D_h_INCLUDED__
5 #define __bbvtkText3D_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include "vtkProp3D.h"
11 #include "vtkRenderer.h"
12 #include "vtkLinearTransform.h"
13 #include "vtkTextActor3D.h"
14 #include "vtkTextProperty.h"
15
16
17 namespace bbvtk
18 {
19
20 class bbvtk_EXPORT Text3D
21  : 
22    public bbtk::AtomicBlackBox
23 {
24   BBTK_BLACK_BOX_INTERFACE(Text3D,bbtk::AtomicBlackBox);
25 //===== 
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)
27 //===== 
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*);
35         
36         BBTK_DECLARE_OUTPUT(Out,vtkProp3D*);
37         BBTK_PROCESS(Process);
38         void Process();
39         
40         vtkTextActor3D *_textActor;
41         vtkTextProperty *_textProp;
42 //===== 
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)
44 //===== 
45 };
46
47 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Text3D,bbtk::AtomicBlackBox);
48 BBTK_NAME("Text3D");
49 BBTK_AUTHOR("Info-Deb");
50 BBTK_DESCRIPTION("Text in 3D vtkRender");
51 BBTK_CATEGORY("");
52         
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*,"");
60
61         BBTK_OUTPUT(Text3D,Out,"vtk Actor",vtkProp3D*,"");
62
63 BBTK_END_DESCRIBE_BLACK_BOX(Text3D);
64 //===== 
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)
66 //===== 
67 }
68 // EO namespace bbvtk
69
70 #endif // __bbvtkText3D_h_INCLUDED__
71