21 #ifndef vtkOpenGLPolyDataMapper_h 22 #define vtkOpenGLPolyDataMapper_h 25 #include "vtkRenderingOpenGL2Module.h" 74 vtkGetMacro(PopulateSelectionSettings,
int);
109 vtkSetStringMacro(PointIdArrayName);
111 vtkSetStringMacro(CellIdArrayName);
121 vtkSetStringMacro(ProcessIdArrayName);
135 vtkSetStringMacro(CompositeIdArrayName);
148 void AddShaderReplacement(
154 void ClearShaderReplacement(
167 vtkSetStringMacro(VertexShaderCode);
169 vtkSetStringMacro(FragmentShaderCode);
171 vtkSetStringMacro(GeometryShaderCode);
181 std::vector<float> &buffData);
194 this->HaveAppleBugForce = 1;
199 this->HaveAppleBugForce = 2;
215 void SetVBOShiftScaleMethod(
int m);
235 void GetCoincidentParameters(
249 virtual void UpdateShaders(
255 virtual bool GetNeedToRebuildShaders(
261 virtual void BuildShaders(
262 std::map<vtkShader::Type, vtkShader *> shaders,
268 virtual void GetShaderTemplate(
269 std::map<vtkShader::Type, vtkShader *> shaders,
275 virtual void ReplaceShaderValues(
276 std::map<vtkShader::Type, vtkShader *> shaders,
284 virtual void ReplaceShaderRenderPass(
285 std::map<vtkShader::Type, vtkShader *> shaders,
287 virtual void ReplaceShaderColor(
288 std::map<vtkShader::Type, vtkShader *> shaders,
290 virtual void ReplaceShaderLight(
291 std::map<vtkShader::Type, vtkShader *> shaders,
293 virtual void ReplaceShaderTCoord(
294 std::map<vtkShader::Type, vtkShader *> shaders,
296 virtual void ReplaceShaderPicking(
297 std::map<vtkShader::Type, vtkShader *> shaders,
299 virtual void ReplaceShaderPrimID(
300 std::map<vtkShader::Type, vtkShader *> shaders,
302 virtual void ReplaceShaderNormal(
303 std::map<vtkShader::Type, vtkShader *> shaders,
305 virtual void ReplaceShaderClip(
306 std::map<vtkShader::Type, vtkShader *> shaders,
308 virtual void ReplaceShaderPositionVC(
309 std::map<vtkShader::Type, vtkShader *> shaders,
311 virtual void ReplaceShaderCoincidentOffset(
312 std::map<vtkShader::Type, vtkShader *> shaders,
314 virtual void ReplaceShaderDepth(
315 std::map<vtkShader::Type, vtkShader *> shaders,
376 virtual bool HaveTextures(
vtkActor *actor);
379 virtual unsigned int GetNumberOfTextures(
vtkActor *actor);
386 virtual std::vector<vtkTexture *> GetTextures(
vtkActor *actor);
428 void BuildCellTextures(
434 void AppendCellTextures(
439 std::vector<unsigned char> &colors,
440 std::vector<float> &normals,
490 #if GL_ES_VERSION_2_0 != 1 && GL_ES_VERSION_3_0 != 1
void ForceHaveAppleBugOn()
Override the normal test for the apple bug.
a PolyDataMapper for the OpenGL library
vtkMatrix3x3 * TempMatrix3
represents an object (geometry & properties) in a rendered scene
vtkOpenGLBufferObject * CellScalarBuffer
std::string VBOBuildString
represent and manipulate 4x4 transformation matrices
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
Type
Available shader types.
vtkTimeStamp VBOBuildTime
record modification and/or execution time
vtkPolyData * CurrentInput
vtkTextureObject * CellScalarTexture
vtkOpenGLBufferObject * CellNormalBuffer
vtkTextureObject * CellNormalTexture
abstract specification for renderers
std::string OriginalValue
std::map< const ReplacementSpec, ReplacementValue > UserShaderReplacements
bool ForceTextureCoordinates
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void RenderPiece(vtkRenderer *ren, vtkActor *act)=0
Implemented by sub classes.
vtkOpenGLVertexBufferObject * VBO
vtkTypeUInt64 vtkMTimeType
vtkSmartPointer< vtkValuePassHelper > ValuePassHelper
Implementation of both rendering modes of vtkValuePass for the vtkOpenGLPolyDataMapper.
void SetPopulateSelectionSettings(int v)
std::vector< float > AppleBugPrimIDs
window superclass for vtkRenderWindow
bool operator<(const ReplacementSpec &v1) const
int PopulateSelectionSettings
a simple class to control print indentation
std::map< const vtkOpenGLHelper *, vtkTimeStamp > LightComplexityChanged
vtkMatrix4x4 * TempMatrix4
vtkNew< vtkMatrix4x4 > VBOShiftScale
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual void Modified()
Update the modification time for this object.
char * FragmentShaderCode
std::string IBOBuildString
char * GeometryShaderCode
bool operator>(const ReplacementSpec &v1) const
virtual void ComputeBounds()
Called in GetBounds().
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkOpenGLHelper * LastBoundBO
abstract class specifies interface to map data
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
std::map< const vtkOpenGLHelper *, int > LastLightComplexity
abstracts an OpenGL texture object.
vtkTimeStamp SelectionStateChanged
map vtkPolyData to graphics primitives
object to represent cell connectivity
vtkShader::Type ShaderType
vtkGenericOpenGLResourceFreeCallback * ResourceCallback
vtkNew< vtkTransform > VBOInverseTransform
bool GetHaveAppleBug()
Get the value of HaveAppleBug.
vtkOpenGLHelper TriStripsEdges
char * ProcessIdArrayName
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkPolyDataMapper * New()
vtkOpenGLHelper TriStrips
char * CompositeIdArrayName
represent and manipulate 3x3 transformation matrices
vtkOpenGLHelper TrisEdges
vtkNew< vtkInformation > LastRenderPassInfo
void ForceHaveAppleBugOff()
Override the normal test for the apple bug.
std::string CellTextureBuildString
vtkOpenGLBufferObject * AppleBugPrimIDBuffer