]> 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 #include <vtkActor.h>
14 #include <vtkLinearTransform.h>
15 #include <vtkSmartPointer.h>
16
17 namespace bbcreaMaracasVisu
18 {
19
20         class MaracasTubeFilter
21         {
22         public:
23                 MaracasTubeFilter();
24                 ~MaracasTubeFilter();
25
26                 void SetvtkRenderer( vtkRenderer *render);
27                 void SetlstPoints( std::vector<double> lstPointX , std::vector<double> lstPointY , std::vector<double> lstPointZ );
28                 void SetlstRadius( std::vector<double> lstRadius  );
29                 void SetlstColour( std::vector<double> lstColour  );
30                 void SetOpacity(double opacity);
31                 void SetTransform( vtkLinearTransform* transform  );
32                 vtkActor *GetActor();
33                 void Run();
34
35                 vtkRenderer *renderer;
36                 vtkSmartPointer<vtkActor> actor;
37
38                 double opacity;
39                 vtkLinearTransform *transform;
40                 std::vector<double> lstPointX;
41                 std::vector<double> lstPointY;
42                 std::vector<double> lstPointZ;
43                 std::vector<double> lstRadius;
44                 std::vector<double> lstColour;
45
46         };
47
48 class bbcreaMaracasVisu_EXPORT TubeFilter
49  :
50    public bbtk::AtomicBlackBox
51 {
52   BBTK_BLACK_BOX_INTERFACE(TubeFilter,bbtk::AtomicBlackBox);
53 //=====
54 // 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)
55 //=====
56         BBTK_DECLARE_INPUT(Renderer ,vtkRenderer*);
57         BBTK_DECLARE_INPUT(lstPointX,std::vector<double>);
58         BBTK_DECLARE_INPUT(lstPointY,std::vector<double>);
59         BBTK_DECLARE_INPUT(lstPointZ,std::vector<double>);
60         BBTK_DECLARE_INPUT(lstRadio ,std::vector<double>);
61     BBTK_DECLARE_INPUT(Opacity,double);
62         BBTK_DECLARE_INPUT(Colour   ,std::vector<double>);
63         BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
64
65         BBTK_DECLARE_OUTPUT(OutAxis,vtkProp3D *);
66   BBTK_PROCESS(Process);
67   void Process();
68
69         MaracasTubeFilter *tubefilter;
70
71 //=====
72 // 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)
73 //=====
74 };
75
76 BBTK_BEGIN_DESCRIBE_BLACK_BOX(TubeFilter,bbtk::AtomicBlackBox);
77     BBTK_NAME("TubeFilter");
78     BBTK_AUTHOR("Info-Dev");
79     BBTK_DESCRIPTION("vtk Tube Filter");
80         BBTK_CATEGORY("actor");
81         BBTK_INPUT(TubeFilter,Renderer,"Renderer",vtkRenderer*,"");
82         BBTK_INPUT(TubeFilter,lstPointX,"lstPointX",std::vector<double>,"");
83         BBTK_INPUT(TubeFilter,lstPointY,"lstPointY",std::vector<double>,"");
84         BBTK_INPUT(TubeFilter,lstPointZ,"lstPointZ",std::vector<double>,"");
85         BBTK_INPUT(TubeFilter,lstRadio,"lstRadio",std::vector<double>,"");
86         BBTK_INPUT(TubeFilter,Colour,"Colour",std::vector<double>,"");
87         BBTK_INPUT(TubeFilter,Transform,"vtkTransform", vtkLinearTransform *,"");
88         BBTK_INPUT(TubeFilter,Opacity,"Opacity",double,"");
89         BBTK_OUTPUT(TubeFilter,OutAxis,"Tube Actor",vtkProp3D *,"");
90 BBTK_END_DESCRIBE_BLACK_BOX(TubeFilter);
91 //=====
92 // 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)
93 //=====
94 }
95 // EO namespace bbcreaMaracasVisu
96
97 #endif // __bbcreaMaracasVisuTubeFilter_h_INCLUDED__
98