11#ifndef vtkWebGPUBatchedPolyDataMapper_h
12#define vtkWebGPUBatchedPolyDataMapper_h
16#include "vtkRenderingWebGPUModule.h"
22VTK_ABI_NAMESPACE_BEGIN
73 bool LastBlockVisibility =
true;
74 bool LastUseNanColor =
false;
77 bool applyOverrides,
double overrideOpacity,
const vtkColor3d& overrideAmbientColor,
represents an object (geometry & properties) in a rendered scene
a class that renders hierarchical polygonal data
a simple class to control print indentation
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
record modification and/or execution time
A WebGPU mapper for batched rendering of vtkPolyData.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RenderPiece(vtkRenderer *renderer, vtkActor *actor) override
Implemented by sub classes.
vtkWebGPUBatchedPolyDataMapper()
BatchElement * GetBatchElement(vtkPolyData *polydata)
API to add and query a BatchElement instance per vtkPolyData.
void UnmarkBatchElements()
std::map< std::uintptr_t, std::unique_ptr< BatchElement > > VTKPolyDataToBatchElement
vtkTimeStamp OverrideColorUploadTimestamp
void WriteOverrideColorBuffer(vtkSmartPointer< vtkWebGPUConfiguration > wgpuConfiguration, bool applyOverrides, double overrideOpacity, const vtkColor3d &overrideAmbientColor, const vtkColor3d &overrideDiffuseColor)
void ClearUnmarkedBatchElements()
std::vector< vtkPolyData * > GetRenderedList() const
Accessor to the ordered list of PolyData that we last drew.
vtkMTimeType GetMTime() override
Returns the maximum of our and Parent vtkCompositePolyDataMapper's MTime.
~vtkWebGPUBatchedPolyDataMapper() override
static vtkWebGPUBatchedPolyDataMapper * New()
std::map< unsigned int, std::uintptr_t > FlatIndexToPolyData
void ClearBatchElements()
API to add and query a BatchElement instance per vtkPolyData.
void AddBatchElement(unsigned int flatIndex, BatchElement &&batchElement)
API to add and query a BatchElement instance per vtkPolyData.
void SetParent(vtkCompositePolyDataMapper *parent)
vtkCompositePolyDataMapperDelegator::BatchElement BatchElement
vtkTypeUInt32 vtkMTimeType