Go to the documentation of this file.
28 #ifndef vtkScalarsToColorsPainter_h
29 #define vtkScalarsToColorsPainter_h
31 #include "vtkRenderingOpenGLModule.h"
180 double alpha,
int multiply_with_alpha,
214 vtkSetVector2Macro(ScalarRange,
double);
223 vtkSetStringMacro(ArrayName);
246 double ScalarRange[2];
int CanUseTextureMapForColoring(vtkDataObject *input)
Returns if we can use texture maps for scalar coloring.
static vtkInformationObjectBaseKey * LOOKUP_TABLE()
Specify a lookup table for the mapper to use.
void ReportReferences(vtkGarbageCollector *collector) override
Take part in garbage collection.
static vtkInformationIntegerKey * ARRAY_ACCESS_MODE()
Controls what data array is used to generate colors.
static vtkInformationDoubleVectorKey * SCALAR_RANGE()
Specify range in terms of scalar minimum and maximum (smin,smax).
virtual ~vtkScalarsToColorsPainter()
static vtkInformationIntegerKey * INTERPOLATE_SCALARS_BEFORE_MAPPING()
By default, vertex color is used to map colors to a surface.
painter that converts scalars to colors.
virtual vtkIdType GetTextureSizeLimit()
Return the texture size limit.
int UseLookupTableScalarRange
vtkSmartPointer< vtkImageData > ColorTextureMap
virtual void MapScalars(vtkDataSet *output, double alpha, int multiply_with_alpha, vtkDataSet *input)
Generates the colors, if needed.
record modification and/or execution time
void MapScalarsToTexture(vtkDataSet *output, vtkDataArray *scalars, vtkDataSet *input)
Create texture coordinates for the output assuming a texture for the lookuptable has already been cre...
abstract superclass for arrays of numeric data
vtkScalarsToColors * GetLookupTable()
static vtkInformationIntegerKey * COLOR_MODE()
Control how the scalar data is mapped to colors.
virtual void PrepareForRendering(vtkRenderer *renderer, vtkActor *actor)
Called just before RenderInternal().
static vtkInformationStringKey * ARRAY_NAME()
static vtkScalarsToColorsPainter * New()
virtual int GetPremultiplyColorsWithAlpha(vtkActor *actor)
For alpha blending, we sometime premultiply the colors with alpha and change the alpha blending funct...
vtkScalarsToColors * LookupTable
virtual vtkDataObject * NewClone(vtkDataObject *data)
Create a new shallow-copied clone for data with no scalars.
static vtkInformationIntegerKey * FIELD_DATA_TUPLE_ID()
vtkScalarsToColorsPainter()
virtual void ProcessInformation(vtkInformation *)
Called before RenderInternal() if the Information has been changed since the last time this method wa...
virtual vtkDataObject * GetOutput()
Subclasses need to override this to return the output of the pipeline.
represents an object (geometry & properties) in a rendered scene
topologically and geometrically regular array of data
a simple class to control print indentation
Abstract class for drawing poly data.
static vtkInformationIntegerKey * USE_LOOKUP_TABLE_SCALAR_RANGE()
Control whether the mapper sets the lookuptable range based on its own ScalarRange,...
vtkIdType FieldDataTupleId
virtual void CreateDefaultLookupTable()
Create default lookup table.
Superclass for mapping scalar values to colors.
static vtkInformationIntegerKey * SCALAR_MODE()
Control how the painter works with scalar point data and cell attribute data.
Detect and break reference loops.
static vtkInformationIntegerKey * ARRAY_COMPONENT()
int LastUsedMultiplyWithAlpha
abstract class to specify dataset behavior
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
static vtkInformationIntegerKey * SCALAR_MATERIAL_MODE()
Set the light-model color mode.
vtkTimeStamp OutputUpdateTime
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
void UpdateColorTextureMap(double alpha, int multiply_with_alpha)
Should not be called if CanUseTextureMapForColoring() returns 0.
int InterpolateScalarsBeforeMapping
vtkSmartPointer< vtkScalarsToColors > ScalarsLookupTable
vtkDataObject * OutputData
static vtkInformationIntegerKey * SCALAR_VISIBILITY()
Turn on/off flag to control whether scalar data is used to color objects.
general representation of visualization data
static vtkInformationIntegerKey * ARRAY_ID()
void SetLookupTable(vtkScalarsToColors *lut)