Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef VISU_LookupTable_H
00028 #define VISU_LookupTable_H
00029
00030 #include "VISUPipeline.hxx"
00031
00032 #include <vtkLookupTable.h>
00033
00034 #include "VTKViewer.h"
00035
00036 class VISU_PIPELINE_EXPORT VISU_LookupTable: public vtkLookupTable
00037 {
00038 public:
00039 vtkTypeMacro(VISU_LookupTable,vtkLookupTable);
00040 static VISU_LookupTable *New();
00041
00042 virtual void ForceBuild();
00043
00044 virtual void MapScalarsThroughTable2(void *input, unsigned char *output,
00045 int inputDataType, int numberOfValues,
00046 int inputIncrement, int outputIncrement);
00047
00048 vtkFloatingPointType GetMapScale() { return myScale; }
00049 void SetMapScale(vtkFloatingPointType theScale = 1.0);
00050
00051 bool GetBicolor() { return myBicolor; }
00052 void SetBicolor( bool theBicolor );
00053
00054 static int ComputeLogRange( vtkFloatingPointType inRange[2],
00055 vtkFloatingPointType outRange[2] );
00056
00057 unsigned char *MapValue(vtkFloatingPointType v);
00058
00059 void MarkValueByColor( vtkFloatingPointType theValue,
00060 unsigned char* theColor );
00061
00062 bool HasMarkedValues() const { return myHasMarkedValues; }
00063
00064 void FillByColor( unsigned char* theColor );
00065
00066 void MakeBiColor();
00067
00068 protected:
00069 VISU_LookupTable(int sze=256, int ext=256);
00070 ~VISU_LookupTable() {};
00071
00072 vtkFloatingPointType myScale;
00073
00074 bool myBicolor;
00075 bool myHasMarkedValues;
00076 };
00077 #endif // VISU_LookupTable_H