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();
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);
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 );
227 double* GetDataPointer();
232 void FillFromDataPointer(
int n,
double* ptr);
237 int inputDataType,
int numberOfValues,
238 int inputIncrement,
int outputIncrement);
281 double BelowRangeColor[3];
287 double AboveRangeColor[3];
299 unsigned char UnsignedCharRGBAValue[4];
321 void SortAndUpdateRange();
329 void MovePoint(
double oldX,
double newX);
GLboolean GLboolean GLboolean b
GLenum GLenum GLenum input
#define vtkGetMacro(name, type)
record modification and/or execution time
#define vtkSetClampMacro(name, type, min, max)
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
#define vtkTypeMacro(thisClass, superclass)
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])
#define vtkGetVector3Macro(name, type)
void SetColorSpaceToRGB()
int AllowDuplicateScalars
void SetColorSpaceToDiverging()
#define vtkGetVector2Macro(name, type)
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])
#define vtkBooleanMacro(name, type)
virtual void DeepCopy(vtkScalarsToColors *o)
void SetColorSpaceToHSV()
virtual void SetRange(double, double)
#define vtkSetVector3Macro(name, type)
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_CTF_DIVERGING
GLfloat GLfloat GLfloat GLfloat h
virtual vtkIdType GetNumberOfAvailableColors()
#define vtkSetMacro(name, type)