]> Creatis software - creaMaracasVisu.git/blob - bbtk/src/bbcreaMaracasVisuTubeFilter.h
no message
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuTubeFilter.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 __bbcreaMaracasVisuTubeFilter_h_INCLUDED__
5 #define __bbcreaMaracasVisuTubeFilter_h_INCLUDED__
6 #include "bbcreaMaracasVisu_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 #include <vtkProp3D.h>
11 #include <vtkRenderer.h>
12 #include <vtkTransform.h>
13
14 namespace bbcreaMaracasVisu
15 {
16
17         class MaracasTubeFilter
18         {
19         public:
20                 MaracasTubeFilter();
21                 ~MaracasTubeFilter();
22                 
23                 void SetvtkRenderer( vtkRenderer *render);
24                 void SetlstPoints( std::vector<double> lstPointX , std::vector<double> lstPointY , std::vector<double> lstPointZ );
25                 void SetlstRadius( std::vector<double> lstRadius  );
26                 void Run();
27                 
28                 vtkRenderer *renderer;
29                 
30                 std::vector<double> lstPointX;
31                 std::vector<double> lstPointY;
32                 std::vector<double> lstPointZ;
33                 std::vector<double> lstRadius;
34                 
35         };
36         
37 class bbcreaMaracasVisu_EXPORT TubeFilter
38  : 
39    public bbtk::AtomicBlackBox
40 {
41   BBTK_BLACK_BOX_INTERFACE(TubeFilter,bbtk::AtomicBlackBox);
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         BBTK_DECLARE_INPUT(Renderer ,vtkRenderer*);
46         BBTK_DECLARE_INPUT(lstPointX,std::vector<double>);
47         BBTK_DECLARE_INPUT(lstPointY,std::vector<double>);
48         BBTK_DECLARE_INPUT(lstPointZ,std::vector<double>);
49         BBTK_DECLARE_INPUT(lstRadio ,std::vector<double>);
50         BBTK_DECLARE_INPUT(Colour   ,std::vector<double>);
51         BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
52         BBTK_DECLARE_OUTPUT(OutAxis,vtkProp3D *);
53   BBTK_PROCESS(Process);
54   void Process();
55         
56         MaracasTubeFilter *tubefilter;
57
58 //===== 
59 // 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)
60 //===== 
61 };
62
63 BBTK_BEGIN_DESCRIBE_BLACK_BOX(TubeFilter,bbtk::AtomicBlackBox);
64   BBTK_NAME("TubeFilter");
65   BBTK_AUTHOR("Info-Dev");
66   BBTK_DESCRIPTION("vtk Tube Filter");
67         BBTK_CATEGORY("actor");
68         BBTK_INPUT(TubeFilter,Renderer,"Renderer",vtkRenderer*,"");
69         BBTK_INPUT(TubeFilter,lstPointX,"lstPointX",std::vector<double>,"");
70         BBTK_INPUT(TubeFilter,lstPointY,"lstPointY",std::vector<double>,"");
71         BBTK_INPUT(TubeFilter,lstPointZ,"lstPointZ",std::vector<double>,"");
72         BBTK_INPUT(TubeFilter,lstRadio,"lstRadio",std::vector<double>,"");
73         BBTK_INPUT(TubeFilter,Colour,"Colour",std::vector<double>,"");
74         BBTK_INPUT(TubeFilter,Transform,"vtkTransform", vtkLinearTransform *,"");
75         BBTK_OUTPUT(TubeFilter,OutAxis,"Tube Actor",vtkProp3D *,"");
76         BBTK_END_DESCRIBE_BLACK_BOX(TubeFilter);
77 //===== 
78 // 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)
79 //===== 
80 }
81 // EO namespace bbcreaMaracasVisu
82
83 #endif // __bbcreaMaracasVisuTubeFilter_h_INCLUDED__
84