vtkOpenGLScalarsToColorsPainter Class Reference

#include <vtkOpenGLScalarsToColorsPainter.h>

Inheritance diagram for vtkOpenGLScalarsToColorsPainter:

Inheritance graph
Collaboration diagram for vtkOpenGLScalarsToColorsPainter:

Collaboration graph

List of all members.

Detailed Description

implementation of vtkScalarsToColorsPainter for OpenGL.

vtkOpenGLScalarsToColorsPainter is a concrete subclass of vtkScalarsToColorsPainter which uses OpenGL for color mapping.

vtkOpenGLScalarsToColorsPainter (Tests)

Definition at line 33 of file vtkOpenGLScalarsToColorsPainter.h.

Public Types

typedef vtkScalarsToColorsPainter Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void ReleaseGraphicsResources (vtkWindow *)
virtual int GetPremultiplyColorsWithAlpha (vtkActor *actor)
virtual vtkIdType GetTextureSizeLimit ()

Static Public Member Functions

New ()
static int IsTypeOf (const char *type)
SafeDownCast (vtkObject *o)

Protected Member Functions

 vtkOpenGLScalarsToColorsPainter ()
 ~vtkOpenGLScalarsToColorsPainter ()
virtual void RenderInternal (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)

Protected Attributes


Member Typedef Documentation

Reimplemented from vtkScalarsToColorsPainter.

Definition at line 39 of file vtkOpenGLScalarsToColorsPainter.h.

Constructor & Destructor Documentation

vtkOpenGLScalarsToColorsPainter::vtkOpenGLScalarsToColorsPainter (  )  [protected]

vtkOpenGLScalarsToColorsPainter::~vtkOpenGLScalarsToColorsPainter (  )  [protected]

Member Function Documentation

static vtkOpenGLScalarsToColorsPainter* vtkOpenGLScalarsToColorsPainter::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkScalarsToColorsPainter.

virtual const char* vtkOpenGLScalarsToColorsPainter::GetClassName (  )  [virtual]

Reimplemented from vtkScalarsToColorsPainter.

static int vtkOpenGLScalarsToColorsPainter::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 vtkScalarsToColorsPainter.

virtual int vtkOpenGLScalarsToColorsPainter::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 vtkScalarsToColorsPainter.

static vtkOpenGLScalarsToColorsPainter* vtkOpenGLScalarsToColorsPainter::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkScalarsToColorsPainter.

void vtkOpenGLScalarsToColorsPainter::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 vtkScalarsToColorsPainter.

virtual void vtkOpenGLScalarsToColorsPainter::ReleaseGraphicsResources ( vtkWindow  )  [virtual]

Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release.

Reimplemented from vtkPainter.

virtual int vtkOpenGLScalarsToColorsPainter::GetPremultiplyColorsWithAlpha ( vtkActor actor  )  [virtual]

For alpha blending, we sometime premultiply the colors with alpha and change the alpha blending function. This call returns whether we are premultiplying or using the default blending function. Currently this checks if the actor has a texture, if not it returns true. TODO: It is possible to make this decision dependent on key passed down from a painter upstream that makes a more informed decision for alpha blending depending on extensions available, for example.

Reimplemented from vtkScalarsToColorsPainter.

virtual vtkIdType vtkOpenGLScalarsToColorsPainter::GetTextureSizeLimit (  )  [virtual]

Return the texture size limit, i.e. GL_MAX_TEXTURE_SIZE.

Reimplemented from vtkScalarsToColorsPainter.

virtual void vtkOpenGLScalarsToColorsPainter::RenderInternal ( vtkRenderer renderer,
vtkActor actor,
unsigned long  typeflags,
bool  forceCompileOnly 
) [protected, virtual]

Generates rendering primitives of appropriate type(s). Multiple types of preimitives can be requested by or-ring the primitive flags. Subclasses may override this method. Default implementation propagates the call to Deletegate Painter, in any.

Reimplemented from vtkPainter.

Member Data Documentation

Definition at line 57 of file vtkOpenGLScalarsToColorsPainter.h.

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

Generated on Wed Aug 24 11:51:38 2011 for VTK by  doxygen 1.5.6