VTK
vtkSurfaceLICMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSurfaceLICMapper.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
56 #ifndef vtkSurfaceLICMapper_h
57 #define vtkSurfaceLICMapper_h
58 
59 #include "vtkRenderingLICOpenGL2Module.h" // For export macro
60 #include "vtkOpenGLPolyDataMapper.h"
61 
64 
65 class VTKRENDERINGLICOPENGL2_EXPORT vtkSurfaceLICMapper : public vtkOpenGLPolyDataMapper
66 {
67 public:
68  static vtkSurfaceLICMapper* New();
70  void PrintSelf(ostream& os, vtkIndent indent);
71 
77  virtual void ReleaseGraphicsResources(vtkWindow * win);
78 
82  virtual void RenderPiece(vtkRenderer *ren, vtkActor *act);
83 
88 
90 
93  vtkGetObjectMacro(LICInterface,vtkSurfaceLICInterface);
95 
96 protected:
99 
106  virtual void StartTimerEvent(const char *){}
107  virtual void EndTimerEvent(const char *){}
108 
112  virtual void BuildBufferObjects(vtkRenderer *ren, vtkActor *act);
113 
114 protected:
118  virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act);
119 
123  virtual void ReplaceShaderValues(
124  std::map<vtkShader::Type, vtkShader *> shaders,
125  vtkRenderer *ren, vtkActor *act);
126 
127  // The vector VBO and its layout.
129 
131 
132 private:
133  vtkSurfaceLICMapper(const vtkSurfaceLICMapper&) VTK_DELETE_FUNCTION;
134  void operator=(const vtkSurfaceLICMapper&) VTK_DELETE_FUNCTION;
135 };
136 
137 #endif
a PolyDataMapper for the OpenGL library
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
static vtkOpenGLPolyDataMapper * New()
mapper that performs LIC on the surface of arbitrary geometry.
abstract specification for renderers
Definition: vtkRenderer.h:63
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
virtual void StartTimerEvent(const char *)
Methods used for parallel benchmarks.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSurfaceLICInterface * LICInterface
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameters related to the mapper/input data, called by UpdateShader.
abstract class specifies interface to map data
vtkOpenGLVertexBufferObject * VectorVBO
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
virtual void EndTimerEvent(const char *)
virtual void RenderPiece(vtkRenderer *ren, vtkActor *a)
Implement superclass render method.
public API for surface lic parameters arbitrary geometry.
virtual void BuildBufferObjects(vtkRenderer *ren, vtkActor *act)
Build the VBO/IBO, called by UpdateBufferObjects.
A communicator that can safely be used inside a painter.
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacments on the shader templates.