]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkText2D.h
Text2D vtk
[bbtk.git] / packages / vtk / src / bbvtkText2D.h
index cc5e72abf80d447caa4ac352bcbec68710dd0b78..ad9821ed9f56980df625532fa8df569cfc5a4263 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "vtkProp.h"
 #include "vtkRenderer.h"
+#include "vtkTextActor.h"
 
 namespace bbvtk
 {
@@ -24,10 +25,14 @@ class bbvtk_EXPORT Text2D
 BBTK_DECLARE_INPUT(In,std::string);
   BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
   BBTK_DECLARE_INPUT(Point,std::vector<double>);
+  BBTK_DECLARE_INPUT(Spacing,std::vector<double>);
   BBTK_DECLARE_INPUT(Opacity,double);
   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)
 //===== 
@@ -40,9 +45,10 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(Text2D,bbtk::AtomicBlackBox);
   BBTK_CATEGORY("empty");
 
   BBTK_INPUT(Text2D,In,"Input text (default = 'VOID')",std::string,"");
-  BBTK_INPUT(Text2D,Renderer,"Input text",vtkRenderer*,"");
   BBTK_INPUT(Text2D,Point,"Point [x,y,z]",std::vector<double>,"");
-  BBTK_INPUT(Text2D,Opacity,"Input text",double,"");
+  BBTK_INPUT(Text2D,Spacing,"Spacing [sx,sy,sz] default [1,1,1]",std::vector<double>,"");
+  BBTK_INPUT(Text2D,Opacity,"Pacity default 1 ",double,"");
+  BBTK_INPUT(Text2D,Renderer,"Input text",vtkRenderer*,"");
 
   BBTK_OUTPUT(Text2D,Out,"vtk Prop",vtkProp*,"");