VTK
9.3.0
|
Implements batched rendering of multiple vtkPolyData using LIC interface and OpenGL. More...
#include <vtkBatchedSurfaceLICMapper.h>
Public Types | |
typedef vtkOpenGLBatchedPolyDataMapper | Superclass |
![]() | |
typedef vtkOpenGLPolyDataMapperImplementation | Superclass |
using | BatchElement = vtkOpenGLCompositePolyDataMapperDelegator::BatchElement |
API to add and query a GLBatchElement instance per vtkPolyData. | |
using | GLBatchElement = vtkOpenGLCompositePolyDataMapperDelegator::GLBatchElement |
API to add and query a GLBatchElement instance per vtkPolyData. | |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
vtkBatchedSurfaceLICMapper * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
![]() | |
vtkOpenGLBatchedPolyDataMapper * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
std::vector< vtkPolyData * > | GetRenderedList () const |
Accessor to the ordered list of PolyData that we last drew. | |
void | SetParent (vtkCompositePolyDataMapper *parent) |
void | RenderPiece (vtkRenderer *renderer, vtkActor *actor) override |
Implemented by sub classes. | |
void | UnmarkBatchElements () |
void | ClearUnmarkedBatchElements () |
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 the selector | |
virtual void | ProcessCompositePixelBuffers (vtkHardwareSelector *sel, vtkProp *prop, GLBatchElement *glBatchElement, std::vector< unsigned int > &mypixels) |
void | AddBatchElement (unsigned int flatIndex, BatchElement &&batchElement) |
API to add and query a GLBatchElement instance per vtkPolyData. | |
BatchElement * | GetBatchElement (vtkPolyData *polydata) |
API to add and query a GLBatchElement instance per vtkPolyData. | |
void | ClearBatchElements () |
API to add and query a GLBatchElement instance per vtkPolyData. | |
Static Public Member Functions | |
static vtkBatchedSurfaceLICMapper * | New () |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkBatchedSurfaceLICMapper * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static vtkOpenGLBatchedPolyDataMapper * | New () |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkOpenGLBatchedPolyDataMapper * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkBatchedSurfaceLICMapper () | |
~vtkBatchedSurfaceLICMapper () override | |
void | AppendOneBufferObject (vtkRenderer *ren, vtkActor *act, GLBatchElement *glBatchElement, vtkIdType &flat_index, std::vector< unsigned char > &colors, std::vector< float > &norms) override |
Build the VBO/IBO, called by UpdateBufferObjects. | |
void | SetMapperShaderParameters (vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override |
Set the shader parameters related to the mapper/input data, called by UpdateShader. | |
void | ReplaceShaderValues (std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override |
Perform string replacements on the shader templates. | |
![]() | |
vtkOpenGLBatchedPolyDataMapper () | |
~vtkOpenGLBatchedPolyDataMapper () override | |
void | RenderPieceDraw (vtkRenderer *renderer, vtkActor *actor) override |
void | UpdateCameraShiftScale (vtkRenderer *renderer, vtkActor *actoror) override |
void | DrawIBO (vtkRenderer *renderer, vtkActor *actoror, int primType, vtkOpenGLHelper &CellBO, GLenum mode, int pointSize) |
Draws primitives. | |
virtual void | SetShaderValues (vtkShaderProgram *prog, GLBatchElement *glBatchElement, size_t primOffset) |
Applies rendering attributes for the corresponding polydata in the glBatchElement. | |
void | UpdateShaders (vtkOpenGLHelper &cellBO, vtkRenderer *renderer, vtkActor *actor) override |
Make sure appropriate shaders are defined, compiled and bound. | |
void | ReplaceShaderColor (std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *renderer, vtkActor *actor) override |
Perform string replacements on the shader templates, called from ReplaceShaderValues. | |
bool | GetNeedToRebuildBufferObjects (vtkRenderer *renderer, vtkActor *actor) override |
Does the VBO/IBO need to be rebuilt. | |
void | BuildBufferObjects (vtkRenderer *renderer, vtkActor *actor) override |
Build the VBO/IBO, called by UpdateBufferObjects. | |
void | BuildSelectionIBO (vtkPolyData *poly, std::vector< unsigned int >(&indices)[4], vtkIdType offset) override |
Build the selection IBOs, called by UpdateBufferObjects. | |
int | CanUseTextureMapForColoring (vtkDataObject *) override |
Returns if we can use texture maps for scalar coloring. | |
Additional Inherited Members | |
![]() | |
vtkCompositePolyDataMapper * | Parent = nullptr |
std::map< std::uintptr_t, std::unique_ptr< GLBatchElement > > | VTKPolyDataToGLBatchElement |
std::vector< unsigned int > | IndexArray [PrimitiveEnd] |
bool | PrimIDUsed |
bool | OverideColorUsed |
vtkHardwareSelector * | CurrentSelector |
std::vector< std::vector< unsigned int > > | PickPixels |
std::map< vtkAbstractArray *, vtkDataArray * > | ColorArrayMap |
Implements batched rendering of multiple vtkPolyData using LIC interface and OpenGL.
Definition at line 19 of file vtkBatchedSurfaceLICMapper.h.
Definition at line 24 of file vtkBatchedSurfaceLICMapper.h.
|
protected |
|
overrideprotected |
|
static |
|
static |
|
virtual |
Reimplemented from vtkOpenGLBatchedPolyDataMapper.
|
static |
|
protectedvirtual |
Reimplemented from vtkOpenGLBatchedPolyDataMapper.
vtkBatchedSurfaceLICMapper * vtkBatchedSurfaceLICMapper::NewInstance | ( | ) | const |
|
override |
|
overrideprotectedvirtual |
Build the VBO/IBO, called by UpdateBufferObjects.
Reimplemented from vtkOpenGLBatchedPolyDataMapper.
|
overrideprotected |
Set the shader parameters related to the mapper/input data, called by UpdateShader.
|
overrideprotected |
Perform string replacements on the shader templates.