13#ifndef vtkOpenGLES30PolyDataMapper_h
14#define vtkOpenGLES30PolyDataMapper_h
19#include "vtkRenderingOpenGL2Module.h"
23VTK_ABI_NAMESPACE_BEGIN
112 int representation,
bool draw_surf_with_edges =
false,
bool vertex_visibility =
false,
represents an object (geometry & properties) in a rendered scene
object to represent cell connectivity
abstract superclass for arrays of numeric data
a simple class to control print indentation
Allocate and hold a VTK object.
OpenGL rendering utility functions.
PolyDataMapper using OpenGLES30 to render surface meshes.
void ReplaceShaderNormal(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Perform string replacements on the shader templates, called from ReplaceShaderValues.
static vtkOpenGLES30PolyDataMapper * New()
void ReplaceShaderWideLines(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
GLES 3.0 does not support wide lines (width > 1).
void RenderPieceDraw(vtkRenderer *ren, vtkActor *act) override
Implemented by sub classes.
void SetPropertyShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override
Set the shader parameters related to the property, called by UpdateShader.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
~vtkOpenGLES30PolyDataMapper() override
vtkOpenGLES30PolyDataMapper()
void UpdateMaximumPointCellIds(vtkRenderer *ren, vtkActor *actor) override
Compute and set the maximum point and cell ID used in selection.
void BuildBufferObjects(vtkRenderer *ren, vtkActor *act) override
Build the VBO, called by UpdateBufferObjects.
bool DrawingPoints(vtkActor *actor)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ReplaceShaderColor(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Perform string replacements on the shader templates, called from ReplaceShaderValues.
void ReplaceShaderPicking(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Perform string replacements on the shader templates, called from ReplaceShaderValues.
static void BuildIndexArrays(std::vector< unsigned int >(&indexArrays)[PrimitiveEnd], std::vector< unsigned char > &edgeArray, vtkCellArray *prims[4], vtkPoints *points, int representation, bool draw_surf_with_edges=false, bool vertex_visibility=false, vtkDataArray *ef=nullptr)
Get flat 0-based indices that form GL primitives for given vtk-cell connectivity and actor representa...
void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override
Set the shader parameters related to the mapper/input data, called by UpdateShader.
void ReplaceShaderCoincidentOffset(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Perform string replacements on the shader templates, called from ReplaceShaderValues.
void ReplaceShaderPointSize(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
In GLES 3.0, point size is set from the vertex shader.
void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Perform string replacements on the shader templates, called from ReplaceShaderValues.
void RenderPieceFinish(vtkRenderer *ren, vtkActor *act) override
Implemented by sub classes.
void ReplaceShaderEdges(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Perform string replacements on the shader templates, called from ReplaceShaderValues.
void GetShaderTemplate(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Create the basic shaders before replacement.
bool DrawingLines(vtkActor *actor)
void RenderPieceStart(vtkRenderer *ren, vtkActor *act) override
Implemented by sub classes.
void AppendOneBufferObject(vtkRenderer *ren, vtkActor *act, vtkPolyData *polydata, vtkOpenGLCellToVTKCellMap *prim2cellMap, vtkIdType &voffset)
PolyDataMapper using OpenGL to render.
represent and manipulate 3D points
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract specification for renderers
window superclass for vtkRenderWindow