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 SetlstColour( std::vector<double> lstColour );
30 void SetOpacity(double opacity);
31 void SetTransform( vtkLinearTransform* transform );
35 vtkRenderer *renderer;
36 vtkSmartPointer<vtkActor> actor;
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;
48 class bbcreaMaracasVisu_EXPORT TubeFilter
50 public bbtk::AtomicBlackBox
52 BBTK_BLACK_BOX_INTERFACE(TubeFilter,bbtk::AtomicBlackBox);
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)
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 *);
65 BBTK_DECLARE_OUTPUT(OutAxis,vtkProp3D *);
66 BBTK_PROCESS(Process);
69 MaracasTubeFilter *tubefilter;
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)
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);
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)
95 // EO namespace bbcreaMaracasVisu
97 #endif // __bbcreaMaracasVisuTubeFilter_h_INCLUDED__