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
vtkOpenGLPolyDataMapper::BuildBufferObjects
virtual void BuildBufferObjects(vtkRenderer *ren, vtkActor *act)
Build the VBO/IBO, called by UpdateBufferObjects.
vtkSurfaceLICMapper::EndTimerEvent
virtual void EndTimerEvent(const char *)
Definition: vtkSurfaceLICMapper.h:107
vtkSurfaceLICMapper::LICInterface
vtkSurfaceLICInterface * LICInterface
Definition: vtkSurfaceLICMapper.h:130
vtkOpenGLPolyDataMapper::ReplaceShaderValues
virtual void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act)
Perform string replacments on the shader templates.
vtkSurfaceLICInterface
public API for surface lic parameters arbitrary geometry.
Definition: vtkSurfaceLICInterface.h:74
vtkOpenGLPolyDataMapper::New
static vtkOpenGLPolyDataMapper * New()
vtkSurfaceLICMapper::StartTimerEvent
virtual void StartTimerEvent(const char *)
Methods used for parallel benchmarks.
Definition: vtkSurfaceLICMapper.h:106
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkSurfaceLICMapper
mapper that performs LIC on the surface of arbitrary geometry.
Definition: vtkSurfaceLICMapper.h:65
vtkOpenGLHelper
Definition: vtkOpenGLHelper.h:30
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOpenGLVertexBufferObject
Definition: vtkOpenGLVertexBufferObject.h:36
vtkPainterCommunicator
A communicator that can safely be used inside a painter.
Definition: vtkPainterCommunicator.h:30
vtkOpenGLPolyDataMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkOpenGLPolyDataMapper::SetMapperShaderParameters
virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act)
Set the shader parameters related to the mapper/input data, called by UpdateShader.
vtkSurfaceLICMapper::VectorVBO
vtkOpenGLVertexBufferObject * VectorVBO
Definition: vtkSurfaceLICMapper.h:128
vtkOpenGLPolyDataMapper::ShallowCopy
void ShallowCopy(vtkAbstractMapper *m)
Make a shallow copy of this mapper.
vtkOpenGLPolyDataMapper::RenderPiece
virtual void RenderPiece(vtkRenderer *ren, vtkActor *a)
Implement superclass render method.
vtkOpenGLPolyDataMapper
a PolyDataMapper for the OpenGL library
Definition: vtkOpenGLPolyDataMapper.h:43
vtkOpenGLPolyDataMapper::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
vtkAbstractMapper
abstract class specifies interface to map data
Definition: vtkAbstractMapper.h:55