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)
4 #ifndef __bbcreaMaracasVisuTubeFilter_h_INCLUDED__
5 #define __bbcreaMaracasVisuTubeFilter_h_INCLUDED__
6 #include "bbcreaMaracasVisu_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
10 #include <vtkProp3D.h>
11 #include <vtkRenderer.h>
12 #include <vtkTransform.h>
14 #include <vtkLinearTransform.h>
15 #include <vtkSmartPointer.h>
17 namespace bbcreaMaracasVisu
20 class MaracasTubeFilter
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 );
34 vtkRenderer *renderer;
35 vtkSmartPointer<vtkActor> actor;
38 vtkLinearTransform *transform;
39 std::vector<double> lstPointX;
40 std::vector<double> lstPointY;
41 std::vector<double> lstPointZ;
42 std::vector<double> lstRadius;
46 class bbcreaMaracasVisu_EXPORT TubeFilter
48 public bbtk::AtomicBlackBox
50 BBTK_BLACK_BOX_INTERFACE(TubeFilter,bbtk::AtomicBlackBox);
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)
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 *);
63 BBTK_DECLARE_OUTPUT(OutAxis,vtkProp3D *);
64 BBTK_PROCESS(Process);
67 MaracasTubeFilter *tubefilter;
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)
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);
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)
93 // EO namespace bbcreaMaracasVisu
95 #endif // __bbcreaMaracasVisuTubeFilter_h_INCLUDED__