Go to the documentation of this file.
21 #ifndef vtkOpenGLGlyph3DHelper_h
22 #define vtkOpenGLGlyph3DHelper_h
24 #include "vtkRenderingOpenGL2Module.h"
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,
PolyDataMapper using OpenGL to render.
vtkOpenGLBufferObject * NormalMatrixBuffer
record modification and/or execution time
static vtkOpenGLPolyDataMapper * New()
void SetModelTransform(float *matrix)
void SetUseFastPath(bool fastpath)
virtual void ReplaceShaderPositionVC(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
float * ModelTransformMatrix
float * ModelNormalMatrix
virtual void GetShaderTemplate(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Create the basic shaders before replacement.
window superclass for vtkRenderWindow
vtkTypeUInt64 vtkMTimeType
virtual void ReplaceShaderClip(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
virtual void SetPropertyShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameteres related to the property, called by UpdateShader.
virtual void ReplaceShaderPicking(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
virtual void SetCameraShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameteres related to the Camera, called by UpdateShader.
vtkTimeStamp InstanceBuffersLoadTime
void SetModelColor(unsigned char *color)
virtual void ReplaceShaderNormal(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
vtkOpenGLBufferObject * ColorBuffer
void SetModelNormalTransform(float *matrix)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
vtkOpenGLBufferObject * MatrixBuffer
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameters related to the mapper/input data, called by UpdateShader.
unsigned char * ModelColor
dynamic, self-adjusting array of bits
virtual void ReplaceShaderColor(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
a PolyDataMapper for the OpenGL library
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.