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