40 #ifndef __vtkColorTransferFunction_h
41 #define __vtkColorTransferFunction_h
45 class vtkColorTransferFunctionInternals;
50 #define VTK_CTF_DIVERGING 3
52 #define VTK_CTF_LINEAR 0
53 #define VTK_CTF_LOG10 1
74 int AddRGBPoint(
double x,
double r,
double g,
double b );
75 int AddRGBPoint(
double x,
double r,
double g,
double b,
76 double midpoint,
double sharpness );
77 int AddHSVPoint(
double x,
double h,
double s,
double v );
78 int AddHSVPoint(
double x,
double h,
double s,
double v,
79 double midpoint,
double sharpness );
80 int RemovePoint(
double x );
85 void AddRGBSegment(
double x1,
double r1,
double g1,
double b1,
86 double x2,
double r2,
double g2,
double b2 );
87 void AddHSVSegment(
double x1,
double h1,
double s1,
double v1,
88 double x2,
double h2,
double s2,
double v2 );
92 void RemoveAllPoints();
98 void GetColor(
double x,
double rgb[3]);
103 double GetRedValue(
double x );
104 double GetGreenValue(
double x );
105 double GetBlueValue(
double x );
111 int GetNodeValue(
int index,
double val[6] );
112 int SetNodeValue(
int index,
double val[6] );
116 virtual unsigned char *
MapValue(
double v);
120 vtkGetVector2Macro( Range,
double );
125 int AdjustRange(
double range[2]);
129 void GetTable(
double x1,
double x2,
int n,
double* table );
130 void GetTable(
double x1,
double x2,
int n,
float* table );
131 const unsigned char *GetTable(
double x1,
double x2,
int n);
138 void BuildFunctionFromTable(
double x1,
double x2,
int size,
double *table);
142 vtkSetClampMacro( Clamping,
int, 0, 1 );
143 vtkGetMacro( Clamping,
int );
144 vtkBooleanMacro( Clamping,
int );
160 vtkGetMacro( ColorSpace,
int );
161 vtkSetMacro(HSVWrap,
int);
162 vtkGetMacro(HSVWrap,
int);
163 vtkBooleanMacro(HSVWrap,
int);
170 vtkSetMacro(Scale,
int);
173 vtkGetMacro(Scale,
int);
179 vtkSetVector3Macro(NanColor,
double);
180 vtkGetVector3Macro(NanColor,
double);
186 double *GetDataPointer();
187 void FillFromDataPointer(
int,
double*);
193 int inputDataType,
int numberOfValues,
194 int inputIncrement,
int outputIncrement);
200 vtkSetMacro(AllowDuplicateScalars,
int);
201 vtkGetMacro(AllowDuplicateScalars,
int);
202 vtkBooleanMacro(AllowDuplicateScalars,
int);
238 unsigned char UnsignedCharRGBAValue[4];
255 void SortAndUpdateRange();
259 void MovePoint(
double oldX,
double newX);