VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkValuePainter Class Reference

painter that renders arrays encoded into pixel colors. More...

#include <vtkValuePainter.h>

Inheritance diagram for vtkValuePainter:
Inheritance graph
[legend]
Collaboration diagram for vtkValuePainter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkStandardPolyDataPainter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkValuePainterNewInstance () 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 vtkValuePainterNew ()
static int IsTypeOf (const char *type)
static vtkValuePainterSafeDownCast (vtkObjectBase *o)
static void ColorToValue (unsigned char *color, double min, double scale, double &value)
static vtkInformationIntegerKeySCALAR_MODE ()
static
vtkInformationDoubleVectorKey
SCALAR_RANGE ()
static vtkInformationIntegerKeyARRAY_ID ()
static vtkInformationStringKeyARRAY_NAME ()
static vtkInformationIntegerKeyARRAY_COMPONENT ()
static void ValueToColor (double value, double min, double scale, unsigned char *color)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () 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)

Detailed Description

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.

See also:
vtkValuePass, vtkValuePasses
Tests:
vtkValuePainter (Tests)

Definition at line 40 of file vtkValuePainter.h.


Member Typedef Documentation

Reimplemented from vtkStandardPolyDataPainter.

Definition at line 45 of file vtkValuePainter.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkStandardPolyDataPainter.

virtual vtkObjectBase* vtkValuePainter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkStandardPolyDataPainter.

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.

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.

Use the provided scalar range instead of the range of the input data array.

Optionally passed down from RenderPass pipeline to controls what data array to draw.

Optionally passed down from RenderPass pipeline to controls what data array to draw.

Optionally passed down from RenderPass pipeline to controls what data array to draw.

Optionally passed down from RenderPass pipeline to controls what data array to draw.

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


The documentation for this class was generated from the following file: