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();
115 virtual void SetUseLogScale(
int useLogScale);
129 virtual unsigned char *
MapValue(
double v);
133 virtual void GetColor(
double v,
double rgb[3]);
171 virtual void SetNanColor(
double r,
double g,
double b);
181 {
return this->UseLogScale; }
224 void MapDataArrayToOpacity(
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;
GLboolean GLboolean GLboolean b
virtual vtkIdType GetNumberOfAvailableColors()
Defines a 1D piecewise function.
Abstract superclass for all arrays.
#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
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])
virtual unsigned long GetMTime()
bool EnableOpacityMapping
a simple class to control print indentation
abstract superclass for arrays of numeric data
dynamic, self-adjusting array of unsigned char
#define VTK_LEGACY(method)
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
vtkSmartPointer< vtkPiecewiseFunction > ScalarOpacityFunction
void SetIndexedColor(unsigned int index, const double rgb[3])
#define vtkBooleanMacro(name, type)
GLclampf GLclampf GLclampf alpha
vtkLookupTable * LookupTable
#define vtkSetMacro(name, type)