22 #ifndef vtkOpenGLSphereMapper_h 23 #define vtkOpenGLSphereMapper_h 25 #include "vtkRenderingOpenGL2Module.h" 39 vtkSetStringMacro(ScaleArray);
48 vtkGetMacro(Radius,
float);
63 std::map<vtkShader::Type, vtkShader *> shaders,
70 std::map<vtkShader::Type, vtkShader *> shaders,
virtual void RenderPieceDraw(vtkRenderer *ren, vtkActor *act)
Implemented by sub classes.
a PolyDataMapper for the OpenGL library
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.
virtual void GetShaderTemplate(std::map< vtkShader::Type, vtkShader *> shaders, vtkRenderer *ren, vtkActor *act)
Create the basic shaders before replacement.
abstract specification for renderers
virtual bool GetNeedToRebuildBufferObjects(vtkRenderer *ren, vtkActor *act)
Does the VBO/IBO need to be rebuilt.
virtual void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader *> shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacments on the shader templates.
a simple class to control print indentation
bool Invert
This value will be used for the radius is the scale array is not provided.
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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.
virtual void Render(vtkRenderer *ren, vtkActor *act)
This calls RenderPiece (in a for loop if streaming is necessary).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.