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