41 #ifndef vtkColorTransferFunction_h
42 #define vtkColorTransferFunction_h
47 class vtkColorTransferFunctionInternals;
52 #define VTK_CTF_DIVERGING 3
54 #define VTK_CTF_LINEAR 0
55 #define VTK_CTF_LOG10 1
76 int AddRGBPoint(
double x,
double r,
double g,
double b );
77 int AddRGBPoint(
double x,
double r,
double g,
double b,
78 double midpoint,
double sharpness );
79 int AddHSVPoint(
double x,
double h,
double s,
double v );
80 int AddHSVPoint(
double x,
double h,
double s,
double v,
81 double midpoint,
double sharpness );
82 int RemovePoint(
double x );
87 void AddRGBSegment(
double x1,
double r1,
double g1,
double b1,
88 double x2,
double r2,
double g2,
double b2 );
89 void AddHSVSegment(
double x1,
double h1,
double s1,
double v1,
90 double x2,
double h2,
double s2,
double v2 );
94 void RemoveAllPoints();
100 void GetColor(
double x,
double rgb[3]);
105 double GetRedValue(
double x );
106 double GetGreenValue(
double x );
107 double GetBlueValue(
double x );
113 int GetNodeValue(
int index,
double val[6] );
114 int SetNodeValue(
int index,
double val[6] );
118 virtual unsigned char *
MapValue(
double v);
122 vtkGetVector2Macro( Range,
double );
127 int AdjustRange(
double range[2]);
133 void GetTable(
double x1,
double x2,
int n,
double* table );
134 void GetTable(
double x1,
double x2,
int n,
float* table );
135 const unsigned char *GetTable(
double x1,
double x2,
int n );
145 void BuildFunctionFromTable(
double x1,
double x2,
int size,
double *table );
153 vtkSetClampMacro( Clamping,
int, 0, 1 );
154 vtkGetMacro( Clamping,
int );
155 vtkBooleanMacro( Clamping,
int );
171 vtkGetMacro( ColorSpace,
int );
172 vtkSetMacro(HSVWrap,
int);
173 vtkGetMacro(HSVWrap,
int);
174 vtkBooleanMacro(HSVWrap,
int);
181 vtkSetMacro(Scale,
int);
184 vtkGetMacro(Scale,
int);
190 vtkSetVector3Macro(NanColor,
double);
191 vtkGetVector3Macro(NanColor,
double);
197 vtkSetVector3Macro(BelowRangeColor,
double);
198 vtkGetVector3Macro(BelowRangeColor,
double);
203 vtkSetMacro(UseBelowRangeColor,
int);
204 vtkGetMacro(UseBelowRangeColor,
int);
205 vtkBooleanMacro(UseBelowRangeColor,
int);
211 vtkSetVector3Macro(AboveRangeColor,
double);
212 vtkGetVector3Macro(AboveRangeColor,
double);
217 vtkSetMacro(UseAboveRangeColor,
int);
218 vtkGetMacro(UseAboveRangeColor,
int);
219 vtkBooleanMacro(UseAboveRangeColor,
int);
227 double* GetDataPointer();
232 void FillFromDataPointer(
int n,
double* ptr);
237 int inputDataType,
int numberOfValues,
238 int inputIncrement,
int outputIncrement);
244 vtkSetMacro(AllowDuplicateScalars,
int);
245 vtkGetMacro(AllowDuplicateScalars,
int);
246 vtkBooleanMacro(AllowDuplicateScalars,
int);
281 double BelowRangeColor[3];
287 double AboveRangeColor[3];
299 unsigned char UnsignedCharRGBAValue[4];
321 void SortAndUpdateRange();
329 void MovePoint(
double oldX,
double newX);
record modification and/or execution time
virtual void MapScalarsThroughTable2(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputFormat)
vtkColorTransferFunctionInternals * Internal
virtual unsigned char * MapValue(double v)
Superclass for mapping scalar values to colors.
static vtkScalarsToColors * New()
double * GetColor(double x)
void SetColorSpaceToLab()
a simple class to control print indentation
virtual void GetColor(double v, double rgb[3])
void SetColorSpaceToRGB()
int AllowDuplicateScalars
void SetColorSpaceToDiverging()
Defines a transfer function for mapping a property to an RGB color value.
virtual void GetIndexedColor(vtkIdType i, double rgba[4])
#define VTKRENDERINGCORE_EXPORT
void SetRange(double rng[2])
virtual void DeepCopy(vtkScalarsToColors *o)
void SetColorSpaceToHSV()
virtual void SetRange(double, double)
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_CTF_DIVERGING
virtual vtkIdType GetNumberOfAvailableColors()