VTK
|
implementation of vtkScalarsToColorsPainter for OpenGL. More...
#include <vtkOpenGLScalarsToColorsPainter.h>
Public Types | |
typedef vtkScalarsToColorsPainter | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkOpenGLScalarsToColorsPainter * | NewInstance () 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 vtkObjectBase * | NewInstanceInternal () const |
vtkOpenGLScalarsToColorsPainter () | |
~vtkOpenGLScalarsToColorsPainter () | |
virtual void | RenderInternal (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly) |
Protected Attributes | |
vtkOpenGLTexture * | InternalColorTexture |
int | AlphaBitPlanes |
bool | AcquiredGraphicsResources |
bool | SupportsSeparateSpecularColor |
implementation of vtkScalarsToColorsPainter for OpenGL.
vtkOpenGLScalarsToColorsPainter is a concrete subclass of vtkScalarsToColorsPainter which uses OpenGL for color mapping.
Definition at line 34 of file vtkOpenGLScalarsToColorsPainter.h.
Reimplemented from vtkScalarsToColorsPainter.
Definition at line 40 of file vtkOpenGLScalarsToColorsPainter.h.
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.
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkScalarsToColorsPainter.
virtual vtkObjectBase* vtkOpenGLScalarsToColorsPainter::NewInstanceInternal | ( | ) | const [protected, virtual] |
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.
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.
Definition at line 57 of file vtkOpenGLScalarsToColorsPainter.h.
int vtkOpenGLScalarsToColorsPainter::AlphaBitPlanes [protected] |
Definition at line 58 of file vtkOpenGLScalarsToColorsPainter.h.
bool vtkOpenGLScalarsToColorsPainter::AcquiredGraphicsResources [protected] |
Definition at line 59 of file vtkOpenGLScalarsToColorsPainter.h.
bool vtkOpenGLScalarsToColorsPainter::SupportsSeparateSpecularColor [protected] |
Definition at line 60 of file vtkOpenGLScalarsToColorsPainter.h.