44 #ifndef vtkDiscretizableColorTransferFunction_h
45 #define vtkDiscretizableColorTransferFunction_h
72 { this->SetIndexedColor(index, rgb[0], rgb[1], rgb[2]); }
73 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();
107 vtkSetMacro(Discretize,
int);
108 vtkGetMacro(Discretize,
int);
109 vtkBooleanMacro(Discretize,
int);
115 virtual void SetUseLogScale(
int useLogScale);
116 vtkGetMacro(UseLogScale,
int);
129 virtual unsigned char *
MapValue(
double v);
133 virtual void GetColor(
double v,
double rgb[3]);
159 VTK_LEGACY(
double* GetRGBPoints());
171 virtual void SetNanColor(
double r,
double g,
double b);
181 {
return this->UseLogScale; }
195 vtkSetMacro(EnableOpacityMapping,
bool)
196 vtkGetMacro(EnableOpacityMapping,
bool)
197 vtkBooleanMacro(EnableOpacityMapping,
bool)
201 virtual
unsigned long GetMTime();
205 ~vtkDiscretizableColorTransferFunction();
221 bool EnableOpacityMapping;
224 void MapDataArrayToOpacity(
228 vtkDiscretizableColorTransferFunction(const vtkDiscretizableColorTransferFunction&);
229 void operator=(const vtkDiscretizableColorTransferFunction&);
231 template<typename T, typename VectorGetter>
232 void MapVectorToOpacity (
233 VectorGetter getter, T* scalars,
int component,
234 int numberOfComponents,
vtkIdType numberOfTuples,
unsigned char* colors);
236 template<template<class> class VectorGetter>
237 void AllTypesMapVectorToOpacity (
239 void* scalarsPtr,
int component,
240 int numberOfComponents,
vtkIdType numberOfTuples,
unsigned char* colors);
243 vtkInternals* Internals;
virtual vtkIdType GetNumberOfAvailableColors()
Defines a 1D piecewise function.
Abstract superclass for all arrays.
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)
Hold a reference to a vtkObjectBase instance.
virtual int UsingLogScale()
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])