11 #ifndef vtkOpenGLSphereMapper_h
12 #define vtkOpenGLSphereMapper_h
15 #include "vtkRenderingOpenGL2Module.h"
17 VTK_ABI_NAMESPACE_BEGIN
29 vtkSetStringMacro(ScaleArray);
37 vtkSetMacro(Radius,
float);
38 vtkGetMacro(Radius,
float);
virtual void RenderPieceDraw(vtkRenderer *ren, vtkActor *act)
Implemented by sub classes.
PolyDataMapper using OpenGL to render.
represents an object (geometry & properties) in a rendered scene
const char * ScaleArray
This value will be used for the radius is the scale array is not provided.
static vtkOpenGLPolyDataMapper * New()
float Radius
This value will be used for the radius is the scale array is not provided.
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
a simple class to control print indentation
bool Invert
This value will be used for the radius is the scale array is not provided.
void Render(vtkRenderer *ren, vtkActor *act) override
This calls RenderPiece (in a for loop if streaming is necessary).
virtual void GetShaderTemplate(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Create the basic shaders before replacement.
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameters related to the mapper/input data, called by UpdateShader.
draw spheres using imposters
virtual void BuildBufferObjects(vtkRenderer *ren, vtkActor *act)
Build the VBO/IBO, called by UpdateBufferObjects.
virtual void SetCameraShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameters related to the Camera, called by UpdateShader.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacements on the shader templates.