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 __bbcreaMaracasVisuTubeTreeFilter_h_INCLUDED__
5 #define __bbcreaMaracasVisuTubeTreeFilter_h_INCLUDED__
6 #include "bbcreaMaracasVisu_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
11 #include <vtkProp3D.h>
12 #include <vtkRenderer.h>
13 #include "vtkImageData.h"
15 #include "vtkPolyData.h"
16 #include "vtkPolyDataMapper.h"
17 #include "vtkPoints.h"
18 #include "vtkCellArray.h"
19 #include "vtkProperty.h"
20 #include "vtkLinearTransform.h"
21 #include "vtkLookupTable.h"
22 #include "vtkScalarsToColors.h"
26 class /*VTK_COMMON_EXPORT*/ vtkLookupTableEED : public vtkScalarsToColors
30 // Construct with range=[0,1]; and hsv ranges set up for rainbow color table
31 // (from red to blue).
32 static vtkLookupTableEED *New();
34 vtkTypeMacro(vtkLookupTableEED,vtkScalarsToColors);
35 void PrintSelf(ostream& os, vtkIndent indent);
37 double *GetRange() { return this->GetTableRange(); };
38 void SetRange(double min, double max) { this->SetTableRange(min, max); };
39 void SetRange(double rng[2]) { this->SetRange(rng[0], rng[1]); };
41 void SetTableRange(double r[2]);
42 virtual void SetTableRange(double min, double max);
43 vtkGetVectorMacro(TableRange,double,2);
45 unsigned char *MapValue(double v);
47 void GetColor(double x, double rgb[3]);
49 void MapScalarsThroughTable2(void *input, unsigned char *output,
50 int inputDataType, int numberOfValues,
51 int inputIncrement, int outputIncrement);
57 vtkLookupTableEED(int sze=256, int ext=256);
62 vtkLookupTableEED(const vtkLookupTableEED&); // Not implemented.
63 void operator=(const vtkLookupTableEED&); // Not implemented.
70 namespace bbcreaMaracasVisu
74 class bbcreaMaracasVisu_EXPORT TubeTreeFilter
76 public bbtk::AtomicBlackBox
78 BBTK_BLACK_BOX_INTERFACE(TubeTreeFilter,bbtk::AtomicBlackBox);
80 // 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)
82 BBTK_DECLARE_INPUT(Renderer , vtkRenderer*);
83 BBTK_DECLARE_INPUT(lstIndexs , std::vector<int>);
84 BBTK_DECLARE_INPUT(lstPointX , std::vector<double>);
85 BBTK_DECLARE_INPUT(lstPointY , std::vector<double>);
86 BBTK_DECLARE_INPUT(lstPointZ , std::vector<double>);
87 BBTK_DECLARE_INPUT(lstRadio , std::vector<double>);
88 BBTK_DECLARE_INPUT(Colour , std::vector<double>);
89 BBTK_DECLARE_INPUT(ColourLaw , int);
90 BBTK_DECLARE_INPUT(Transform , vtkLinearTransform *);
91 BBTK_DECLARE_INPUT(Opacity , double );
92 BBTK_DECLARE_INPUT(iTube , int );
93 BBTK_DECLARE_OUTPUT(OutTube,vtkProp3D *);
94 BBTK_PROCESS(Process);
98 std::vector<vtkActor*> vecVtkActors;
99 void DrawOneTube(int iGeneral,int numPoints, int iTube);
100 void SetGraphicProperties();
104 // 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)
108 BBTK_BEGIN_DESCRIBE_BLACK_BOX(TubeTreeFilter,bbtk::AtomicBlackBox);
109 BBTK_NAME("TubeTreeFilter");
110 BBTK_AUTHOR("Info-Dev");
111 BBTK_DESCRIPTION("vtk Tube Tree Filter");
112 BBTK_CATEGORY("actor");
114 BBTK_INPUT(TubeTreeFilter,Renderer,"Renderer",vtkRenderer*,"");
115 BBTK_INPUT(TubeTreeFilter,lstIndexs,"Indexs",std::vector<int>,"");
116 BBTK_INPUT(TubeTreeFilter,lstPointX,"lstPointX",std::vector<double>,"");
117 BBTK_INPUT(TubeTreeFilter,lstPointY,"lstPointY",std::vector<double>,"");
118 BBTK_INPUT(TubeTreeFilter,lstPointZ,"lstPointZ",std::vector<double>,"");
119 BBTK_INPUT(TubeTreeFilter,lstRadio,"lstRadio",std::vector<double>,"");
120 BBTK_INPUT(TubeTreeFilter,Colour,"Colour",std::vector<double>,"");
121 BBTK_INPUT(TubeTreeFilter,ColourLaw,"ColorLaw 1(default) solid color, 2 color by segment, 3 color for each point",int,"");
122 BBTK_INPUT(TubeTreeFilter,Transform,"vtkTransform", vtkLinearTransform *,"");
123 BBTK_INPUT(TubeTreeFilter,iTube,"iTube",int,"");
124 BBTK_INPUT(TubeTreeFilter,Opacity,"Opacity",double,"");
125 BBTK_OUTPUT(TubeTreeFilter,OutTube,"Tube[iTube]",vtkProp3D *,"");
129 BBTK_END_DESCRIBE_BLACK_BOX(TubeTreeFilter);
131 // 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)
134 // EO namespace bbcreaMaracasVisu
136 #endif // __bbcreaMaracasVisuTubeTreeFilter_h_INCLUDED__