31 #ifndef vtkValuePainter_h
32 #define vtkValuePainter_h
34 #include "vtkRenderingOpenGLModule.h"
90 unsigned char *
color);
108 unsigned long typeflags,
bool forceCompileOnly);
122 vtkInternals *Internals;
represents an object (geometry & properties) in a rendered scene
object to represent cell connectivity
a simple class to control print indentation
abstract specification for renderers
A standard implementation of vtkPolyDataPainter.
painter that renders arrays encoded into pixel colors.
void SetInputComponentToProcess(int comp)
Set the component (0..numcomponents-1) of the specified array to be drawn.
static vtkInformationIntegerKey * ARRAY_ID()
static vtkInformationDoubleVectorKey * SCALAR_RANGE()
virtual void ProcessInformation(vtkInformation *)
overridden to look for informationkeys that specify what array to draw
void SetInputArrayToProcess(int fieldAssociation, int fieldAttributeType)
static vtkValuePainter * New()
void SetInputArrayToProcess(int fieldAssociation, const char *name)
Set the array to be drawn.
static void ColorToValue(unsigned char *color, double min, double scale, double &value)
virtual void RenderInternal(vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
overridden to draw the chosen array value directly as color
static vtkInformationStringKey * ARRAY_NAME()
void DrawCells(int mode, vtkCellArray *connectivity, vtkIdType startCellId, vtkRenderer *renderer)
overridden implement drawlines, points, strips
static vtkInformationIntegerKey * ARRAY_COMPONENT()
static vtkInformationIntegerKey * SCALAR_MODE()
Optionally passed down from RenderPass pipeline to controls what data array to draw.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetScalarRange(double min, double max)
Use the provided scalar range instead of the range of the input data array.
static void ValueToColor(double value, double min, double scale, unsigned char *color)
Internal convenience method to convert a value to a color TODO: make this templated and programmable.