13#ifndef vtkArrayRenderer_h
14#define vtkArrayRenderer_h
16#include "vtkRenderingOpenGL2Module.h"
25VTK_ABI_NAMESPACE_BEGIN
101 void AddMod(
const std::string& className);
102 void AddMods(
const std::vector<std::string>& classNames);
represents an object (geometry & properties) in a rendered scene
Render instanced elements textured with arrays from input data.
static std::vector< std::string > DefaultModNames
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::vector< std::string > ModNames
vtkGetCharFromStdStringMacro(FragmentShaderSource)
~vtkArrayRenderer() override=default
std::string FragmentShaderSource
void ResetModsToDefault()
bool IsUpToDate(vtkRenderer *renderer, vtkActor *actor)
void AddMods(const std::vector< std::string > &classNames)
std::string VertexShaderSource
bool HasTranslucentPolygonalGeometry() override
Some introspection on the type of data the mapper will render used by props to determine if they shou...
void CreateColormapTexture()
bool HasOpaqueGeometry() override
Some introspection on the type of data the mapper will render used by props to determine if they shou...
vtkGetCharFromStdStringMacro(VertexShaderSource)
void RemoveMod(const std::string &className)
vtkTimeStamp RenderTimeStamp
void PrepareToRender(vtkRenderer *renderer, vtkActor *actor)
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
static vtkArrayRenderer * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkSetStdStringFromCharMacro(VertexShaderSource)
Set/get the source for the vertex shader.
void AddMod(const std::string &className)
std::set< std::string > ModNamesUnique
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources associated with the window.
vtkSetStdStringFromCharMacro(FragmentShaderSource)
Set/get the source for the fragment shader.
ElementShape
Declare a new enum that inherits values from the base class so that python wrappings are generated.
void Render(vtkRenderer *ren, vtkActor *a) override
Render geometry.
void PrepareColormap(vtkScalarsToColors *cmap=nullptr)
Prepare a colormap for use in a shader.
A base class for mappers or render responders that need to draw primitives via vertex-pulling.
@ Triangle
Send triangles to the shader.
@ TriangleStrip
Send triangles to the shader (moving window of 3 vertices).
@ TriangleFan
Send triangle fans to the shader (first vertex is constant).
@ Line
Send line segments to the shader.
@ LineStrip
Send line segments to the shader.
@ Point
Send points to the shader.
void BindArrayToTexture(vtkStringToken textureName, vtkDataArray *array, bool asScalars=false)
Bind a data array to the given textureName (used in shader program texelFetch calls).
virtual bool SetNumberOfInstances(vtkIdType numberOfInstances)
virtual bool SetElementType(int elementType)
vtkShader * GetShader(vtkShader::Type shaderType)
Return a shader of the given type (creating as needed).
virtual bool SetNumberOfElements(vtkIdType numberOfElements)
a simple class to control print indentation
abstract class specifies interface to map data to graphics primitives
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax,...
abstract specification for renderers
Superclass for mapping scalar values to colors.
record modification and/or execution time
window superclass for vtkRenderWindow
#define VTK_SIZEHINT(...)