44 #ifndef __vtkDiscretizableColorTransferFunction_h
45 #define __vtkDiscretizableColorTransferFunction_h
71 { this->SetIndexedColor(index, rgb[0], rgb[1], rgb[2]); }
72 void SetIndexedColor(
unsigned int index,
double r,
double g,
double b);
92 void SetNumberOfIndexedColors(
unsigned int count);
93 unsigned int GetNumberOfIndexedColors();
100 virtual void Build();
115 virtual void SetUseLogScale(
int useLogScale);
129 virtual unsigned char *
MapValue(
double v);
133 virtual void GetColor(
double v,
double rgb[3]);
155 double* GetRGBPoints();
179 {
return this->UseLogScale; }
199 virtual
unsigned long GetMTime();
203 ~vtkDiscretizableColorTransferFunction();
213 bool EnableOpacityMapping;
215 unsigned long ScalarOpacityFunctionObserverId;
217 void MapDataArrayToOpacity(
221 vtkDiscretizableColorTransferFunction(const vtkDiscretizableColorTransferFunction&);
222 void operator=(const vtkDiscretizableColorTransferFunction&);
223 template<typename T, typename VectorGetter>
224 void MapVectorToOpacity (
225 VectorGetter getter, T* scalars,
int component,
226 int numberOfComponents,
vtkIdType numberOfTuples,
unsigned char* colors);
227 template<template<class> class VectorGetter>
228 void AllTypesMapVectorToOpacity (
230 void* scalarsPtr,
int component,
231 int numberOfComponents,
vtkIdType numberOfTuples,
unsigned char* colors);
238 vtkInternals* Internals;
GLboolean GLboolean GLboolean b
virtual vtkIdType GetNumberOfAvailableColors()
Defines a 1D piecewise function.
#define vtkGetMacro(name, type)
record modification and/or execution time
static vtkColorTransferFunction * New()
virtual void SetNanColor(double rgb[3])
map scalar values into colors via a lookup table
virtual void SetAlpha(double alpha)
virtual unsigned char * MapValue(double v)
GLuint GLuint GLsizei count
Hold a reference to a vtkObjectBase instance.
virtual int UsingLogScale()
GLdouble GLdouble GLdouble r
#define vtkTypeMacro(thisClass, superclass)
virtual void SetNanColor(double, double, double)
void PrintSelf(ostream &os, vtkIndent indent)
virtual double GetOpacity(double v)
double * GetColor(double x)
virtual void GetIndexedColor(vtkIdType idx, double rgba[4])
a simple class to control print indentation
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of unsigned char
a combination of vtkColorTransferFunction and vtkLookupTable.
virtual vtkUnsignedCharArray * MapScalars(vtkDataArray *scalars, int colorMode, int component)
Defines a transfer function for mapping a property to an RGB color value.
#define VTKRENDERINGCORE_EXPORT
void SetIndexedColor(unsigned int index, const double rgb[3])
#define vtkBooleanMacro(name, type)
GLclampf GLclampf GLclampf alpha
#define vtkSetMacro(name, type)