27#ifndef vtkOpenGLPolyDataMapper2D_h
28#define vtkOpenGLPolyDataMapper2D_h
33#include "vtkRenderingOpenGL2Module.h"
a actor that draws 2D data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
OpenGL rendering utility functions.
2D PolyData support for OpenGL
~vtkOpenGLPolyDataMapper2D() override
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
void UpdateVBO(vtkActor2D *act, vtkViewport *viewport)
Update the scene when necessary.
static vtkOpenGLPolyDataMapper2D * New()
vtkTextureObject * CellScalarTexture
virtual void ReplaceShaderPicking(std::string &fssource, vtkRenderer *ren, vtkActor2D *act)
Perform string replacements 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.
vtkGenericOpenGLResourceFreeCallback * ResourceCallback
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor) override
Actually draw the poly data.
vtkNew< vtkTransform > VBOTransformInverse
vtkOpenGLHelper TriStrips
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkViewport *viewport, vtkActor2D *act)
Set the shader parameteres related to the mapper/input data, called by UpdateShader.
vtkOpenGLBufferObject * CellScalarBuffer
void SetCameraShaderParameters(vtkOpenGLHelper &cellBO, vtkViewport *viewport, vtkActor2D *act)
Set the shader parameteres related to the Camera.
vtkNew< vtkOpenGLCellToVTKCellMap > CellCellMap
vtkNew< vtkMatrix4x4 > VBOShiftScale
vtkTimeStamp VBOUpdateTime
vtkOpenGLVertexBufferObjectGroup * VBOs
virtual bool HaveWideLines(vtkViewport *, vtkActor2D *)
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
virtual bool GetNeedToRebuildShaders(vtkOpenGLHelper &cellBO, vtkViewport *ren, vtkActor2D *act)
Does the shader source need to be recomputed.
manage vertex buffer objects shared within a mapper
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