Go to the documentation of this file.
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
78 double midpoint,
double sharpness );
81 double midpoint,
double sharpness );
88 double x2,
double r2,
double g2,
double b2 );
90 double x2,
double h2,
double s2,
double v2 );
135 const unsigned char *
GetTable(
double x1,
double x2,
int n );
237 int inputDataType,
int numberOfValues,
238 int inputIncrement,
int outputIncrement);
281 double BelowRangeColor[3];
287 double AboveRangeColor[3];
299 unsigned char UnsignedCharRGBAValue[4];
void DeepCopy(vtkScalarsToColors *f)
double * GetColor(double x)
GLfloat GLfloat GLfloat v2
~vtkColorTransferFunction()
double * GetDataPointer()
GLboolean GLboolean GLboolean b
GLfloat GLfloat GLfloat GLfloat h
int AddHSVPoint(double x, double h, double s, double v)
#define vtkGetVector2Macro(name, type)
#define vtkSetVector3Macro(name, type)
static vtkColorTransferFunction * New()
void GetTable(double x1, double x2, int n, float *table)
vtkColorTransferFunction()
virtual vtkIdType GetNumberOfAvailableColors()
virtual unsigned char * MapValue(double v)
record modification and/or execution time
const unsigned char * GetTable(double x1, double x2, int n)
#define vtkTypeMacro(thisClass, superclass)
void SetColorSpaceToDiverging()
void MovePoint(double oldX, double newX)
vtkColorTransferFunctionInternals * Internal
void GetTable(double x1, double x2, int n, double *table)
GLint GLint GLint GLint GLint x
void SetRange(double rng[2])
void FillFromDataPointer(int n, double *ptr)
GLenum GLsizei GLenum GLenum const GLvoid * table
GLenum GLenum GLenum input
void BuildFunctionFromTable(double x1, double x2, int size, double *table)
Defines a transfer function for mapping a property to an RGB color value.
virtual void SetRange(double, double)
int AddRGBPoint(double x, double r, double g, double b)
void SetColorSpaceToLab()
int AddRGBPoint(double x, double r, double g, double b, double midpoint, double sharpness)
double GetRedValue(double x)
#define vtkSetClampMacro(name, type, min, max)
double GetBlueValue(double x)
#define vtkGetVector3Macro(name, type)
void SetColorSpaceToRGB()
int AdjustRange(double range[2])
a simple class to control print indentation
int AddHSVPoint(double x, double h, double s, double v, double midpoint, double sharpness)
#define vtkGetMacro(name, type)
void AddRGBSegment(double x1, double r1, double g1, double b1, double x2, double r2, double g2, double b2)
Superclass for mapping scalar values to colors.
void PrintSelf(ostream &os, vtkIndent indent)
virtual void GetColor(double v, double rgb[3])
double GetGreenValue(double x)
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro(IgnoreDriverBugs, bool)
GLdouble GLdouble GLdouble r
int RemovePoint(double x)
void SetColorSpaceToHSV()
int SetNodeValue(int index, double val[6])
int GetNodeValue(int index, double val[6])
void SortAndUpdateRange()
int AllowDuplicateScalars
void GetColor(double x, double rgb[3])
#define VTKRENDERINGCORE_EXPORT
virtual void GetIndexedColor(vtkIdType idx, double rgba[4])
#define VTK_CTF_DIVERGING
void ShallowCopy(vtkColorTransferFunction *f)
void AddHSVSegment(double x1, double h1, double s1, double v1, double x2, double h2, double s2, double v2)
virtual void MapScalarsThroughTable2(void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputIncrement)