37 #ifndef vtkValuePassHelper_h
38 #define vtkValuePassHelper_h
40 #include "vtkRenderingOpenGL2Module.h"
67 vtkGetMacro(RenderingMode,
int);
represents an object (geometry & properties) in a rendered scene
abstract class to specify dataset behavior
a simple class to control print indentation
abstract class specifies interface to map data to graphics primitives
abstract base class for most VTK objects
a PolyDataMapper for the OpenGL library
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract specification for renderers
Implementation of both rendering modes of vtkValuePass for the vtkOpenGLPolyDataMapper.
void UpdateConfiguration(vtkRenderer *ren, vtkActor *act, vtkMapper *mapper, vtkPolyData *input)
Configure the internal state depending on the settings defined by the vtkValuePass (RenderingMode,...
void RenderPieceStart(vtkActor *actor, vtkDataSet *input)
Upload new data if necessary, bind textures, etc.
void BindAttributes(vtkOpenGLHelper &cellBO)
Bind shader variables.
void BindUniforms(vtkOpenGLHelper &cellBO)
bool RequiresShaderRebuild()
Query whether a shader rebuild will be required.
void RenderPieceFinish()
Unbind textures, etc.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkValuePassHelper * New()
void UpdateShaders(std::string &VSSource, std::string &FSSource, std::string &required)
Add necessary shader definitions.
void ReleaseGraphicsResources(vtkWindow *win)
window superclass for vtkRenderWindow