14 #ifndef vtkOpenGLLowMemoryBatchedPolyDataMapper_h
15 #define vtkOpenGLLowMemoryBatchedPolyDataMapper_h
23 #include "vtkRenderingOpenGL2Module.h"
30 VTK_ABI_NAMESPACE_BEGIN
52 void AddBatchElement(
unsigned int flatIndex,
BatchElement&& batchElement);
54 void ClearBatchElements();
60 std::vector<vtkPolyData*> GetRenderedList()
const;
67 void UnmarkBatchElements();
68 void ClearUnmarkedBatchElements();
78 GLBatchElement* glBatchElement, std::vector<unsigned int>& mypixels);
134 VTK_ABI_NAMESPACE_END
virtual void UpdateShaders(vtkRenderer *renderer, vtkActor *actor)
abstract superclass for all actors, volumes and annotations
represents an object (geometry & properties) in a rendered scene
vtkTypeUInt32 vtkMTimeType
virtual void UpdateShiftScale(vtkRenderer *renderer, vtkActor *actor)
abstract specification for renderers
vtkSmartPointer< vtkOpenGLTexture > BlockTexturePrototype
virtual void RenderPieceStart(vtkRenderer *renderer, vtkActor *actor)
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkCompositePolyDataMapperDelegator::BatchElement BatchElement
An OpenGL mapper for batched rendering of vtkPolyData.
virtual int CanUseTextureMapForColoring(vtkDataObject *input)
Returns if we can use texture maps for scalar coloring.
std::map< std::uintptr_t, std::unique_ptr< GLBatchElement > > VTKPolyDataToGLBatchElement
PolyDataMapper using OpenGL to render surface meshes.
virtual bool IsShaderNormalSourceUpToDate(vtkActor *actor)
virtual void RenderPieceDraw(vtkRenderer *renderer, vtkActor *actor)
virtual bool IsShaderColorSourceUpToDate(vtkActor *actor)
static vtkOpenGLLowMemoryPolyDataMapper * New()
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract superclass for arrays of numeric data
void RenderPiece(vtkRenderer *renderer, vtkActor *actor) override
Implemented by sub classes.
void ProcessSelectorPixelBuffers(vtkHardwareSelector *sel, std::vector< unsigned int > &pixeloffsets, vtkProp *prop) override
allows a mapper to update a selections color buffers Called from a prop which in turn is called from ...
vtkMTimeType GetMTime() override
Overload standard modified time function.
std::map< vtkAbstractArray *, vtkDataArray * > ColorArrayMap
virtual vtkDataArray * GetColors(vtkPolyData *mesh)
virtual void ReplaceShaderColor(vtkRenderer *renderer, vtkActor *actor, std::string &vsSource, std::string &fsSource)
virtual std::vector< TextureInfo > GetTextures(vtkActor *actor)
std::vector< std::vector< unsigned int > > PickPixels
virtual bool BindArraysToTextureBuffers(vtkRenderer *renderer, vtkActor *actor, vtkCellGraphicsPrimitiveMap::CellTypeMapperOffsets &offsets)
general representation of visualization data
virtual bool IsDataObjectUpToDate()
Fast, simple class for representing and operating on 3D bounds.
a class that renders hierarchical polygonal data
vtkBoundingBox PointsBBox