13 #ifndef vtkArrayRenderer_h
14 #define vtkArrayRenderer_h
16 #include "vtkRenderingOpenGL2Module.h"
25 VTK_ABI_NAMESPACE_BEGIN
53 Point = vtkDrawTexturedElements::ElementShape::Point,
54 Line = vtkDrawTexturedElements::ElementShape::Line,
55 LineStrip = vtkDrawTexturedElements::ElementShape::LineStrip,
56 Triangle = vtkDrawTexturedElements::ElementShape::Triangle,
57 TriangleStrip = vtkDrawTexturedElements::ElementShape::TriangleStrip,
58 TriangleFan = vtkDrawTexturedElements::ElementShape::TriangleFan
90 vtkSetStdStringFromCharMacro(VertexShaderSource);
91 vtkGetCharFromStdStringMacro(VertexShaderSource);
97 vtkSetStdStringFromCharMacro(FragmentShaderSource);
98 vtkGetCharFromStdStringMacro(FragmentShaderSource);
100 void ResetModsToDefault();
102 void AddMods(
const std::vector<std::string>& classNames);
104 void RemoveAllMods();
112 void CreateColormapTexture();
136 VTK_ABI_NAMESPACE_END
138 #endif // vtkArrayRenderer_h
vtkTimeStamp RenderTimeStamp
std::set< std::string > ModNamesUnique
void GetBounds(T a, double bds[6])
virtual bool SetNumberOfElements(vtkIdType numberOfElements)
represents an object (geometry & properties) in a rendered scene
record modification and/or execution time
vtkShader * GetShader(vtkShader::Type shaderType)
Return a shader of the given type (creating as needed).
abstract specification for renderers
static std::vector< std::string > DefaultModNames
std::vector< std::string > ModNames
Superclass for mapping scalar values to colors.
window superclass for vtkRenderWindow
virtual bool SetNumberOfInstances(vtkIdType numberOfInstances)
Render instanced elements textured with arrays from input data.
a simple class to control print indentation
ElementShape
Declare a new enum that inherits values from the base class so that python wrappings are generated...
bool HasOpaqueGeometry() override
Some introspection on the type of data the mapper will render used by props to determine if they shou...
std::string FragmentShaderSource
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_SIZEHINT(...)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
abstract class specifies interface to map data to graphics primitives
A base class for mappers or render responders that need to draw primitives via vertex-pulling.
void BindArrayToTexture(vtkStringToken textureName, vtkDataArray *array, bool asScalars=false)
Bind a data array to the given textureName (used in shader program texelFetch calls).
std::string VertexShaderSource
virtual bool SetElementType(int elementType)
static vtkAlgorithm * New()
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
bool HasTranslucentPolygonalGeometry() override
Some introspection on the type of data the mapper will render used by props to determine if they shou...
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.