VTK
Static Protected Attributes | Friends | List of all members
vtkOpenGLGL2PSHelper Class Reference

Helper functionality for GL2PS exporting. More...

#include <vtkOpenGLGL2PSHelper.h>

Static Public Member Functions

static void SetLineWidth (float lineWidth)
 
static void SetPointSize (float pointSize)
 
static void EnableStipple ()
 
static void DisableStipple ()
 

Static Protected Attributes

static bool InGL2PSRender
 
static GLfloat PointSizeFactor
 
static GLfloat LineWidthFactor
 
static GLfloat PointSizeToken
 
static GLfloat LineWidthToken
 
static GLfloat StippleBeginToken
 
static GLfloat StippleEndToken
 

Friends

class vtkGL2PSUtilities
 

Detailed Description

Helper functionality for GL2PS exporting.

vtkOpenGLGL2PSHelper provides a number of static variables and methods that are used during GL2PS exporting. The rational behind this class is that GL does not include all of the information that GL2PS needs into its feedback buffer, and in certain situations GL2PS function calls need to be made alongside their GL equivalents, notably glLineWidth and glPointSize.

The static variables in this class are set by vtkGL2PSUtilities at the beginning of a GL2PS export render. This class fakes GL2PS calls like gl2psLineWidth in order to keep GL2PS from being a module dependency for vtkRenderingOpenGL.

Definition at line 38 of file vtkOpenGLGL2PSHelper.h.

Member Function Documentation

static void vtkOpenGLGL2PSHelper::SetLineWidth ( float  lineWidth)
inlinestatic

Call alongside glLineWidth(lineWidth) to inform GL2PS of the change.

Definition at line 44 of file vtkOpenGLGL2PSHelper.h.

static void vtkOpenGLGL2PSHelper::SetPointSize ( float  pointSize)
inlinestatic

Call alongside glPointSize(pointSize) to inform GL2PS of the change.

Definition at line 56 of file vtkOpenGLGL2PSHelper.h.

static void vtkOpenGLGL2PSHelper::EnableStipple ( )
inlinestatic

Call alongside glEnable(GL_LINE_STIPPLE) to inform GL2PS of the change. This must be called after calling glLineStipple(factor, pattern).

Definition at line 70 of file vtkOpenGLGL2PSHelper.h.

static void vtkOpenGLGL2PSHelper::DisableStipple ( )
inlinestatic

Call alongside glDisable(GL_LINE_STIPPLE) to inform GL2PS of the change.

Definition at line 87 of file vtkOpenGLGL2PSHelper.h.

Friends And Related Function Documentation

friend class vtkGL2PSUtilities
friend

Definition at line 98 of file vtkOpenGLGL2PSHelper.h.

Member Data Documentation

bool vtkOpenGLGL2PSHelper::InGL2PSRender
staticprotected

Definition at line 100 of file vtkOpenGLGL2PSHelper.h.

GLfloat vtkOpenGLGL2PSHelper::PointSizeFactor
staticprotected

Definition at line 101 of file vtkOpenGLGL2PSHelper.h.

GLfloat vtkOpenGLGL2PSHelper::LineWidthFactor
staticprotected

Definition at line 102 of file vtkOpenGLGL2PSHelper.h.

GLfloat vtkOpenGLGL2PSHelper::PointSizeToken
staticprotected

Definition at line 103 of file vtkOpenGLGL2PSHelper.h.

GLfloat vtkOpenGLGL2PSHelper::LineWidthToken
staticprotected

Definition at line 104 of file vtkOpenGLGL2PSHelper.h.

GLfloat vtkOpenGLGL2PSHelper::StippleBeginToken
staticprotected

Definition at line 105 of file vtkOpenGLGL2PSHelper.h.

GLfloat vtkOpenGLGL2PSHelper::StippleEndToken
staticprotected

Definition at line 106 of file vtkOpenGLGL2PSHelper.h.


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