22#ifndef vtkOpenGLSphereMapper_h
23#define vtkOpenGLSphereMapper_h
26#include "vtkRenderingOpenGL2Module.h"
39 vtkSetStringMacro(ScaleArray);
47 vtkSetMacro(Radius,
float);
48 vtkGetMacro(Radius,
float);
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
PolyDataMapper using OpenGL to render.
draw spheres using imposters
virtual void CreateVBO(vtkPolyData *poly, vtkIdType numPts, unsigned char *colors, int colorComponents, vtkIdType nc, float *sizes, vtkIdType ns, vtkRenderer *ren)
This value will be used for the radius is the scale array is not provided.
void BuildBufferObjects(vtkRenderer *ren, vtkActor *act) override
Update the VBO to contain point based values.
const char * ScaleArray
This value will be used for the radius is the scale array is not provided.
float Radius
This value will be used for the radius is the scale array is not provided.
bool Invert
This value will be used for the radius is the scale array is not provided.
~vtkOpenGLSphereMapper() override
This value will be used for the radius is the scale array is not provided.
void GetShaderTemplate(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Create the basic shaders before replacement.
void Render(vtkRenderer *ren, vtkActor *act) override
This calls RenderPiece (twice when transparent)
vtkOpenGLSphereMapper()
allows a mapper to update a selections color buffers Called from a prop which in turn is called from ...
static vtkOpenGLSphereMapper * New()
void RenderPieceDraw(vtkRenderer *ren, vtkActor *act) override
This value will be used for the radius is the scale array is not provided.
void SetCameraShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override
Set the shader parameters related to the Camera.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override
Set the shader parameters related to the actor/mapper.
void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Perform string replacements on the shader templates.
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract specification for renderers