]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuTubeTreeFilter.h
1495 PlotterViewer , Refresh data
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuTubeTreeFilter.h
index d819ed715c76a9ab70c7a887a4b82c27b7dfec7b..f0a090e02fbc89fc7b6243fbfe767a33ec110f42 100644 (file)
 #include "vtkCellArray.h"
 #include "vtkProperty.h"
 #include "vtkLinearTransform.h"
+#include "vtkLookupTable.h"
+#include "vtkScalarsToColors.h"
+
+
+
+class /*VTK_COMMON_EXPORT*/ vtkLookupTableEED : public vtkScalarsToColors
+       {
+       public:
+               // Description:
+               // Construct with range=[0,1]; and hsv ranges set up for rainbow color table 
+               // (from red to blue).
+               static vtkLookupTableEED *New();
+               
+               vtkTypeMacro(vtkLookupTableEED,vtkScalarsToColors);
+               void PrintSelf(ostream& os, vtkIndent indent);
+               
+               double *GetRange() { return this->GetTableRange(); };
+               void SetRange(double min, double max) { this->SetTableRange(min, max); };
+               void SetRange(double rng[2]) { this->SetRange(rng[0], rng[1]); };
+               
+               void SetTableRange(double r[2]); 
+               virtual void SetTableRange(double min, double max);
+               vtkGetVectorMacro(TableRange,double,2);
+               
+               unsigned char *MapValue(double v);
+               
+               void GetColor(double x, double rgb[3]);
+               
+               void MapScalarsThroughTable2(void *input, unsigned char *output,
+                                                                        int inputDataType, int numberOfValues,
+                                                                        int inputIncrement, int outputIncrement);
+               
+               
+       protected:
+               
+               double TableRange[2];
+               vtkLookupTableEED(int sze=256, int ext=256);
+               ~vtkLookupTableEED();
+               
+               
+       private:
+               vtkLookupTableEED(const vtkLookupTableEED&);  // Not implemented.
+               void operator=(const vtkLookupTableEED&);  // Not implemented.
+};
+
+
+
 
 
 namespace bbcreaMaracasVisu
 {
+       
 
 class bbcreaMaracasVisu_EXPORT TubeTreeFilter
  :