27#ifndef vtkOpenGLPolyDataMapper2D_h
28#define vtkOpenGLPolyDataMapper2D_h
30#include "vtkRenderingOpenGL2Module.h"
a actor that draws 2D data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
2D PolyData support for OpenGL
virtual void BuildShaders(std::string &VertexCode, std::string &fragmentCode, std::string &geometryCode, vtkViewport *ren, vtkActor2D *act)
Build the shader source code.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetPropertyShaderParameters(vtkOpenGLHelper &cellBO, vtkViewport *viewport, vtkActor2D *act)
Set the shader parameteres related to the property.
vtkTimeStamp PickStateChanged
vtkPoints * TransformedPoints
vtkOpenGLHelper * LastBoundBO
std::vector< float > AppleBugPrimIDs
void UpdateVBO(vtkActor2D *act, vtkViewport *viewport)
Update the scene when necessary.
static vtkOpenGLPolyDataMapper2D * New()
vtkOpenGLVertexBufferObject * VBO
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
vtkTextureObject * CellScalarTexture
virtual void ReplaceShaderPicking(std::string &fssource, vtkRenderer *ren, vtkActor2D *act)
Perform string replacments on the shader templates, called from ReplaceShaderValues.
vtkOpenGLPolyDataMapper2D()
virtual void UpdateShaders(vtkOpenGLHelper &cellBO, vtkViewport *viewport, vtkActor2D *act)
Determine what shader to use and compile/link it.
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor)
Actually draw the poly data.
vtkGenericOpenGLResourceFreeCallback * ResourceCallback
vtkNew< vtkTransform > VBOTransformInverse
vtkOpenGLHelper TriStrips
~vtkOpenGLPolyDataMapper2D()
vtkOpenGLBufferObject * AppleBugPrimIDBuffer
vtkOpenGLBufferObject * CellScalarBuffer
void SetCameraShaderParameters(vtkOpenGLHelper &cellBO, vtkViewport *viewport, vtkActor2D *act)
Set the shader parameteres related to the Camera.
vtkNew< vtkMatrix4x4 > VBOShiftScale
vtkTimeStamp VBOUpdateTime
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkViewport *ren, vtkActor2D *act)
Set the shader parameteres related to the mapper/input data, called by UpdateShader.
virtual bool HaveWideLines(vtkViewport *, vtkActor2D *)
virtual bool GetNeedToRebuildShaders(vtkOpenGLHelper &cellBO, vtkViewport *ren, vtkActor2D *act)
Does the shader source need to be recomputed.
represent and manipulate 3D points
draw vtkPolyData onto the image plane
abstract specification for renderers
abstracts an OpenGL texture object.
record modification and/or execution time
abstract specification for Viewports
window superclass for vtkRenderWindow