]> Creatis software - bbtk.git/blob - packages/vtk/src/bbvtkText2D.h
ad9821ed9f56980df625532fa8df569cfc5a4263
[bbtk.git] / packages / vtk / src / bbvtkText2D.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 __bbvtkText2D_h_INCLUDED__
5 #define __bbvtkText2D_h_INCLUDED__
6 #include "bbvtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include "vtkProp.h"
11 #include "vtkRenderer.h"
12 #include "vtkTextActor.h"
13
14 namespace bbvtk
15 {
16
17 class bbvtk_EXPORT Text2D
18  : 
19    public bbtk::AtomicBlackBox
20 {
21   BBTK_BLACK_BOX_INTERFACE(Text2D,bbtk::AtomicBlackBox);
22 //===== 
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)
24 //===== 
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_OUTPUT( Out , vtkProp* );
31   BBTK_PROCESS(Process);
32   void Process();
33
34   vtkTextActor *_textActor;
35
36 //===== 
37 // 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)
38 //===== 
39 };
40
41 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Text2D,bbtk::AtomicBlackBox);
42   BBTK_NAME("Text2D");
43   BBTK_AUTHOR("Info-Dev");
44   BBTK_DESCRIPTION("No Description.");
45   BBTK_CATEGORY("empty");
46
47   BBTK_INPUT(Text2D,In,"Input text (default = 'VOID')",std::string,"");
48   BBTK_INPUT(Text2D,Point,"Point [x,y,z]",std::vector<double>,"");
49   BBTK_INPUT(Text2D,Spacing,"Spacing [sx,sy,sz] default [1,1,1]",std::vector<double>,"");
50   BBTK_INPUT(Text2D,Opacity,"Pacity default 1 ",double,"");
51   BBTK_INPUT(Text2D,Renderer,"Input text",vtkRenderer*,"");
52
53   BBTK_OUTPUT(Text2D,Out,"vtk Prop",vtkProp*,"");
54
55 BBTK_END_DESCRIBE_BLACK_BOX(Text2D);
56 //===== 
57 // 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)
58 //===== 
59 }
60 // EO namespace bbvtk
61
62 #endif // __bbvtkText2D_h_INCLUDED__
63