Go to the documentation of this file.
22 #ifndef vtkOpenGLSphereMapper_h
23 #define vtkOpenGLSphereMapper_h
25 #include "vtkRenderingOpenGL2Module.h"
39 vtkSetStringMacro(ScaleArray);
47 vtkSetMacro(Radius,
float);
48 vtkGetMacro(Radius,
float);
70 std::map<vtkShader::Type, vtkShader *> shaders,
77 std::map<vtkShader::Type, vtkShader *> shaders,
99 virtual void CreateVBO(
101 unsigned char *colors,
int colorComponents,
virtual void BuildBufferObjects(vtkRenderer *ren, vtkActor *act)
Build the VBO/IBO, called by UpdateBufferObjects.
virtual void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacements on the shader templates.
static vtkOpenGLPolyDataMapper * New()
virtual void RenderPieceDraw(vtkRenderer *ren, vtkActor *act)
virtual void GetShaderTemplate(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Create the basic shaders before replacement.
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
void Render(vtkRenderer *ren, vtkActor *act) override
This calls RenderPiece (in a for loop if streaming is necessary).
virtual void SetCameraShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameteres 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.
abstract specification for renderers
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameters related to the mapper/input data, called by UpdateShader.
concrete dataset represents vertices, lines, polygons, and triangle strips
draw spheres using imposters
PolyDataMapper using OpenGL to render.