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
61 
64 
65 class VTKRENDERINGLICOPENGL2_EXPORT vtkSurfaceLICMapper : public vtkOpenGLPolyDataMapper
66 {
67 public:
68  static vtkSurfaceLICMapper* New();
70  void PrintSelf(ostream& os, vtkIndent indent) override;
71 
77  void ReleaseGraphicsResources(vtkWindow * win) override;
78 
82  void RenderPiece(vtkRenderer *ren, vtkActor *act) override;
83 
87  void ShallowCopy(vtkAbstractMapper *) override;
88 
90 
93  vtkGetObjectMacro(LICInterface,vtkSurfaceLICInterface);
95 
96 protected:
98  ~vtkSurfaceLICMapper() override;
99 
106  virtual void StartTimerEvent(const char *){}
107  virtual void EndTimerEvent(const char *){}
108 
112  void BuildBufferObjects(vtkRenderer *ren, vtkActor *act) override;
113 
114 protected:
118  void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override;
119 
123  void ReplaceShaderValues(
124  std::map<vtkShader::Type, vtkShader *> shaders,
125  vtkRenderer *ren, vtkActor *act) override;
126 
128 
129 private:
130  vtkSurfaceLICMapper(const vtkSurfaceLICMapper&) = delete;
131  void operator=(const vtkSurfaceLICMapper&) = delete;
132 };
133 
134 #endif
PolyDataMapper using OpenGL to render.
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.
void ShallowCopy(vtkAbstractMapper *m) override
Make a shallow copy of this mapper.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSurfaceLICInterface * LICInterface
void RenderPiece(vtkRenderer *ren, vtkActor *act) override
Implemented by sub classes.
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
virtual void EndTimerEvent(const char *)
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 *) override
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 replacements on the shader templates.