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 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 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.
virtual void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacements on the shader templates.