]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkStreamLineVisu.h
#2446 creaVtk Feature New Normal - Stream Tracer, Stream Line (interface, widget)
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkStreamLineVisu.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 __bbcreaVtkStreamLineVisu_h_INCLUDED__
5 #define __bbcreaVtkStreamLineVisu_h_INCLUDED__
6 #include "bbcreaVtk_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include "vtkDataObject.h"
11 #include "vtkDataSet.h"
12
13 #include "vtkPolyData.h"
14 #include "vtkRenderer.h"
15
16 #include "creaVtkStreamLine.h"
17
18 namespace bbcreaVtk
19 {
20
21 class bbcreaVtk_EXPORT StreamLineVisu
22  : 
23    public bbtk::AtomicBlackBox
24 {
25   BBTK_BLACK_BOX_INTERFACE(StreamLineVisu,bbtk::AtomicBlackBox);
26 //===== 
27 // 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 //===== 
29
30   BBTK_DECLARE_INPUT(In,vtkDataObject*);
31   BBTK_DECLARE_INPUT(Source,vtkDataSet*);
32
33
34   BBTK_DECLARE_INPUT(Active,bool);
35   BBTK_DECLARE_INPUT(PolyData,vtkPolyData*);
36   BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
37   BBTK_DECLARE_INPUT(Opacity,double);
38   BBTK_DECLARE_INPUT(ScaleFactor,double);
39   BBTK_DECLARE_INPUT(TypeForm,int);
40   BBTK_DECLARE_INPUT(ColorLaw,int);
41   BBTK_DECLARE_INPUT(Color, std::vector<double> );
42   BBTK_DECLARE_OUTPUT(Out,vtkProp3D*);
43   BBTK_PROCESS(Process);
44   void Process();
45
46 private:
47   creaVtkStreamLine  creavtkstreamline;
48
49 //===== 
50 // 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)
51 //===== 
52 };
53
54 BBTK_BEGIN_DESCRIBE_BLACK_BOX(StreamLineVisu,bbtk::AtomicBlackBox);
55  BBTK_NAME("StreamLineVisu");
56  BBTK_AUTHOR("ED at InfoDev Creatis");
57  BBTK_DESCRIPTION("vtk Stream Line");
58  BBTK_CATEGORY("empty");
59
60  BBTK_INPUT(StreamLineVisu,Active,"Active (false default)",bool,"");
61  BBTK_INPUT(StreamLineVisu,PolyData,"(needed) vtkPolyData.",vtkPolyData*,"");
62  BBTK_INPUT(StreamLineVisu,Opacity,"Opacity (1 default)",double,"");
63  BBTK_INPUT(StreamLineVisu,Renderer,"vtkRenderer",vtkRenderer*,"");
64  BBTK_INPUT(StreamLineVisu,ScaleFactor,"Scale factor",double,"");
65  BBTK_INPUT(StreamLineVisu,TypeForm,"Type of form : 0(default) Tubes, 1 Ribbons,2 Lines",int,"");
66  BBTK_INPUT(StreamLineVisu,ColorLaw,"(default 0) 0=Direction 1=MagnitudDirection 2=Solid",int,"");
67  BBTK_INPUT(StreamLineVisu,Color,"In case of ColorLaw=Solid the color is [R,G,B] 0..1",std::vector<double>,"");
68
69  BBTK_OUTPUT(StreamLineVisu,Out,"vtkProp3D of an vtkActor",vtkProp3D*,"");
70
71 BBTK_END_DESCRIBE_BLACK_BOX(StreamLineVisu);
72 //===== 
73 // 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)
74 //===== 
75 }
76 // EO namespace bbcreaVtk
77
78 #endif // __bbcreaVtkStreamLineVisu_h_INCLUDED__
79