#include <vtkOpenGLScalarsToColorsPainter.h>
vtkOpenGLScalarsToColorsPainter is a concrete subclass of vtkScalarsToColorsPainter which uses OpenGL for color mapping.
Definition at line 30 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) |
Static Public Member Functions | |
static vtkOpenGLScalarsToColorsPainter * | New () |
static int | IsTypeOf (const char *type) |
static vtkOpenGLScalarsToColorsPainter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkOpenGLScalarsToColorsPainter () | |
~vtkOpenGLScalarsToColorsPainter () | |
virtual void | RenderInternal (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly) |
Protected Attributes | |
vtkOpenGLTexture * | InternalColorTexture |
Reimplemented from vtkScalarsToColorsPainter.
Definition at line 36 of file vtkOpenGLScalarsToColorsPainter.h.
vtkOpenGLScalarsToColorsPainter::vtkOpenGLScalarsToColorsPainter | ( | ) | [protected] |
vtkOpenGLScalarsToColorsPainter::~vtkOpenGLScalarsToColorsPainter | ( | ) | [protected] |
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 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.
Definition at line 50 of file vtkOpenGLScalarsToColorsPainter.h.