21 #ifndef vtkOpenGLGlyph3DHelper_h
22 #define vtkOpenGLGlyph3DHelper_h
24 #include "vtkRenderingOpenGL2Module.h"
34 void PrintSelf(ostream& os,
vtkIndent indent);
36 void SetModelTransform(
float *matrix)
38 this->ModelTransformMatrix = matrix;
43 this->ModelNormalMatrix = matrix;
48 this->ModelColor =
color;
53 this->UseFastPath = fastpath;
54 this->UsingInstancing =
false;
61 std::vector<unsigned char> &colors, std::vector<float> &matrices,
62 std::vector<float> &normalMatrices, std::vector<vtkIdType> &pickIds,
77 #if GL_ES_VERSION_2_0 != 1 || GL_ES_VERSION_3_0 == 1
79 std::vector<unsigned char> &colors, std::vector<float> &matrices,
80 std::vector<float> &normalMatrices,
88 std::map<vtkShader::Type, vtkShader *> shaders,
96 std::map<vtkShader::Type, vtkShader *> shaders,
99 std::map<vtkShader::Type, vtkShader *> shaders,
102 std::map<vtkShader::Type, vtkShader *> shaders,
105 std::map<vtkShader::Type, vtkShader *> shaders,
108 std::map<vtkShader::Type, vtkShader *> shaders,
a PolyDataMapper for the OpenGL library
virtual void ReplaceShaderPositionVC(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacments on the shader templates, called from ReplaceShaderValues.
represents an object (geometry & properties) in a rendered scene
static vtkOpenGLPolyDataMapper * New()
record modification and/or execution time
virtual void ReplaceShaderClip(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacments on the shader templates, called from ReplaceShaderValues.
abstract specification for renderers
virtual void SetPropertyShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameteres related to the property, called by UpdateShader.
vtkTypeUInt64 vtkMTimeType
vtkOpenGLBufferObject * NormalMatrixBuffer
window superclass for vtkRenderWindow
void SetModelColor(unsigned char *color)
float * ModelNormalMatrix
a simple class to control print indentation
virtual void ReplaceShaderNormal(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacments on the shader templates, called from ReplaceShaderValues.
virtual void ReplaceShaderPicking(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacments on the shader templates, called from ReplaceShaderValues.
void SetModelNormalTransform(float *matrix)
vtkOpenGLBufferObject * ColorBuffer
virtual void GetShaderTemplate(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Create the basic shaders before replacement.
vtkTimeStamp InstanceBuffersLoadTime
PolyDataMapper using OpenGL to render.
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameters related to the mapper/input data, called by UpdateShader.
vtkOpenGLBufferObject * MatrixBuffer
float * ModelTransformMatrix
void SetUseFastPath(bool fastpath)
virtual void ReplaceShaderColor(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacments on the shader templates, called from ReplaceShaderValues.
dynamic, self-adjusting array of bits
virtual void SetCameraShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameteres related to the Camera, called by UpdateShader.
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
unsigned char * ModelColor