VTK
|
painter that renders arrays encoded into pixel colors. More...
#include <vtkValuePainter.h>
Public Types | |
typedef vtkStandardPolyDataPainter | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkValuePainter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetInputComponentToProcess (int comp) |
void | SetScalarRange (double min, double max) |
void | SetInputArrayToProcess (int fieldAssociation, const char *name) |
void | SetInputArrayToProcess (int fieldAssociation, int fieldAttributeType) |
Static Public Member Functions | |
static vtkValuePainter * | New () |
static int | IsTypeOf (const char *type) |
static vtkValuePainter * | SafeDownCast (vtkObjectBase *o) |
static void | ColorToValue (unsigned char *color, double min, double scale, double &value) |
static vtkInformationIntegerKey * | SCALAR_MODE () |
static vtkInformationDoubleVectorKey * | SCALAR_RANGE () |
static vtkInformationIntegerKey * | ARRAY_ID () |
static vtkInformationStringKey * | ARRAY_NAME () |
static vtkInformationIntegerKey * | ARRAY_COMPONENT () |
static void | ValueToColor (double value, double min, double scale, unsigned char *color) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkValuePainter () | |
~vtkValuePainter () | |
virtual void | ProcessInformation (vtkInformation *) |
virtual void | RenderInternal (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly) |
void | DrawCells (int mode, vtkCellArray *connectivity, vtkIdType startCellId, vtkRenderer *renderer) |
painter that renders arrays encoded into pixel colors.
vtkValuePainter renders polygonal geometry where data values are encoded into 24 bit integers and send to the screen. The pixel colors can then be read and converted back into values later.
Definition at line 40 of file vtkValuePainter.h.
Reimplemented from vtkStandardPolyDataPainter.
Definition at line 45 of file vtkValuePainter.h.
vtkValuePainter::vtkValuePainter | ( | ) | [protected] |
vtkValuePainter::~vtkValuePainter | ( | ) | [protected] |
static vtkValuePainter* vtkValuePainter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkStandardPolyDataPainter.
static int vtkValuePainter::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkStandardPolyDataPainter.
virtual int vtkValuePainter::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkStandardPolyDataPainter.
static vtkValuePainter* vtkValuePainter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkStandardPolyDataPainter.
virtual vtkObjectBase* vtkValuePainter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkStandardPolyDataPainter.
vtkValuePainter* vtkValuePainter::NewInstance | ( | ) | const |
Reimplemented from vtkStandardPolyDataPainter.
void vtkValuePainter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkStandardPolyDataPainter.
void vtkValuePainter::SetInputArrayToProcess | ( | int | fieldAssociation, |
const char * | name | ||
) |
Set the array to be drawn. By default point scalars are used. Arguments are same as those passed to vtkAlgorithm::SetInputArrayToProcess except the first 3 arguments i.e. idx, port, connection.
void vtkValuePainter::SetInputArrayToProcess | ( | int | fieldAssociation, |
int | fieldAttributeType | ||
) |
Set the array to be drawn. By default point scalars are used. Arguments are same as those passed to vtkAlgorithm::SetInputArrayToProcess except the first 3 arguments i.e. idx, port, connection.
void vtkValuePainter::SetInputComponentToProcess | ( | int | comp | ) |
Set the component (0..numcomponents-1) of the specified array to be drawn. If input array is not a multicomponent array or component is otherwise out of range the painter uses the 0'th component instead.
void vtkValuePainter::SetScalarRange | ( | double | min, |
double | max | ||
) |
Use the provided scalar range instead of the range of the input data array.
static vtkInformationIntegerKey* vtkValuePainter::SCALAR_MODE | ( | ) | [static] |
Optionally passed down from RenderPass pipeline to controls what data array to draw.
static vtkInformationDoubleVectorKey* vtkValuePainter::SCALAR_RANGE | ( | ) | [static] |
Optionally passed down from RenderPass pipeline to controls what data array to draw.
static vtkInformationIntegerKey* vtkValuePainter::ARRAY_ID | ( | ) | [static] |
Optionally passed down from RenderPass pipeline to controls what data array to draw.
static vtkInformationStringKey* vtkValuePainter::ARRAY_NAME | ( | ) | [static] |
Optionally passed down from RenderPass pipeline to controls what data array to draw.
static vtkInformationIntegerKey* vtkValuePainter::ARRAY_COMPONENT | ( | ) | [static] |
Optionally passed down from RenderPass pipeline to controls what data array to draw.
static void vtkValuePainter::ValueToColor | ( | double | value, |
double | min, | ||
double | scale, | ||
unsigned char * | color | ||
) | [static] |
Internal convenience method to convert a value to a color TODO: make this templated and programmable
static void vtkValuePainter::ColorToValue | ( | unsigned char * | color, |
double | min, | ||
double | scale, | ||
double & | value | ||
) | [static] |
virtual void vtkValuePainter::ProcessInformation | ( | vtkInformation * | ) | [protected, virtual] |
overridden to look for informationkeys that specify what array to draw
Reimplemented from vtkStandardPolyDataPainter.
virtual void vtkValuePainter::RenderInternal | ( | vtkRenderer * | renderer, |
vtkActor * | actor, | ||
unsigned long | typeflags, | ||
bool | forceCompileOnly | ||
) | [protected, virtual] |
overridden to draw the chosen array value directly as color
Reimplemented from vtkStandardPolyDataPainter.
void vtkValuePainter::DrawCells | ( | int | mode, |
vtkCellArray * | connectivity, | ||
vtkIdType | startCellId, | ||
vtkRenderer * | renderer | ||
) | [protected] |
overridden implement drawlines, points, strips