VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkOpenGLScalarsToColorsPainter Class Reference

implementation of vtkScalarsToColorsPainter for OpenGL. More...

#include <vtkOpenGLScalarsToColorsPainter.h>

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

List of all members.

Public Types

typedef vtkScalarsToColorsPainter Superclass

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

vtkOpenGLTextureInternalColorTexture
int AlphaBitPlanes
bool AcquiredGraphicsResources
bool SupportsSeparateSpecularColor

Detailed Description

implementation of vtkScalarsToColorsPainter for OpenGL.

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

Tests:
vtkOpenGLScalarsToColorsPainter (Tests)

Definition at line 34 of file vtkOpenGLScalarsToColorsPainter.h.


Member Typedef Documentation

Reimplemented from vtkScalarsToColorsPainter.

Definition at line 40 of file vtkOpenGLScalarsToColorsPainter.h.


Constructor & Destructor Documentation


Member Function Documentation

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

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.

Reimplemented from vtkScalarsToColorsPainter.

Reimplemented from vtkScalarsToColorsPainter.

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.

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.

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.

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.

Definition at line 58 of file vtkOpenGLScalarsToColorsPainter.h.

Definition at line 59 of file vtkOpenGLScalarsToColorsPainter.h.

Definition at line 60 of file vtkOpenGLScalarsToColorsPainter.h.


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