40 #ifndef __vtkColorTransferFunction_h
41 #define __vtkColorTransferFunction_h
46 class vtkColorTransferFunctionInternals;
51 #define VTK_CTF_DIVERGING 3
53 #define VTK_CTF_LINEAR 0
54 #define VTK_CTF_LOG10 1
75 int AddRGBPoint(
double x,
double r,
double g,
double b );
76 int AddRGBPoint(
double x,
double r,
double g,
double b,
77 double midpoint,
double sharpness );
78 int AddHSVPoint(
double x,
double h,
double s,
double v );
79 int AddHSVPoint(
double x,
double h,
double s,
double v,
80 double midpoint,
double sharpness );
81 int RemovePoint(
double x );
86 void AddRGBSegment(
double x1,
double r1,
double g1,
double b1,
87 double x2,
double r2,
double g2,
double b2 );
88 void AddHSVSegment(
double x1,
double h1,
double s1,
double v1,
89 double x2,
double h2,
double s2,
double v2 );
93 void RemoveAllPoints();
104 double GetRedValue(
double x );
105 double GetGreenValue(
double x );
106 double GetBlueValue(
double x );
112 int GetNodeValue(
int index,
double val[6] );
113 int SetNodeValue(
int index,
double val[6] );
117 virtual unsigned char *
MapValue(
double v);
121 vtkGetVector2Macro( Range,
double );
126 int AdjustRange(
double range[2]);
131 void GetTable(
double x1,
double x2,
int n,
double*
table );
132 void GetTable(
double x1,
double x2,
int n,
float*
table );
133 const unsigned char *GetTable(
double x1,
double x2,
int n);
140 void BuildFunctionFromTable(
double x1,
double x2,
int size,
double *
table);
144 vtkSetClampMacro( Clamping,
int, 0, 1 );
145 vtkGetMacro( Clamping,
int );
146 vtkBooleanMacro( Clamping,
int );
162 vtkGetMacro( ColorSpace,
int );
163 vtkSetMacro(HSVWrap,
int);
164 vtkGetMacro(HSVWrap,
int);
165 vtkBooleanMacro(HSVWrap,
int);
172 vtkSetMacro(Scale,
int);
175 vtkGetMacro(Scale,
int);
181 vtkSetVector3Macro(NanColor,
double);
182 vtkGetVector3Macro(NanColor,
double);
188 double *GetDataPointer();
189 void FillFromDataPointer(
int,
double*);
195 int inputDataType,
int numberOfValues,
196 int inputIncrement,
int outputIncrement);
202 vtkSetMacro(AllowDuplicateScalars,
int);
203 vtkGetMacro(AllowDuplicateScalars,
int);
204 vtkBooleanMacro(AllowDuplicateScalars,
int);
245 unsigned char UnsignedCharRGBAValue[4];
263 void SortAndUpdateRange();
269 void MovePoint(
double oldX,
double newX);
GLboolean GLboolean GLboolean b
GLenum GLenum GLenum input
record modification and/or execution time
virtual void MapScalarsThroughTable2(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputFormat)
GLenum GLsizei GLenum GLenum const GLvoid * table
GLdouble GLdouble GLdouble r
vtkColorTransferFunctionInternals * Internal
virtual unsigned char * MapValue(double v)
Superclass for mapping scalar values to colors.
GLint GLint GLint GLint GLint x
GLfloat GLfloat GLfloat v2
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])
Get the "indexed color" assigned to an index.
#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
GLfloat GLfloat GLfloat GLfloat h
virtual vtkIdType GetNumberOfAvailableColors()