VTK  9.1.0
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
60#include "vtkRenderingLICOpenGL2Module.h" // For export macro
61
64
65class VTKRENDERINGLICOPENGL2_EXPORT vtkSurfaceLICMapper : public vtkOpenGLPolyDataMapper
66{
67public:
70 void PrintSelf(ostream& os, vtkIndent indent) override;
71
78
82 void RenderPiece(vtkRenderer* ren, vtkActor* act) override;
83
88
90
93 vtkGetObjectMacro(LICInterface, vtkSurfaceLICInterface);
95
96protected:
99
106 virtual void StartTimerEvent(const char*) {}
107 virtual void EndTimerEvent(const char*) {}
108
112 void BuildBufferObjects(vtkRenderer* ren, vtkActor* act) override;
113
114protected:
119
124 std::map<vtkShader::Type, vtkShader*> shaders, vtkRenderer* ren, vtkActor* act) override;
125
127
128private:
130 void operator=(const vtkSurfaceLICMapper&) = delete;
131};
132
133#endif
abstract class specifies interface to map data
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
a simple class to control print indentation
Definition: vtkIndent.h:113
PolyDataMapper using OpenGL to render.
A communicator that can safely be used inside a painter.
abstract specification for renderers
Definition: vtkRenderer.h:173
public API for surface lic parameters arbitrary geometry.
mapper that performs LIC on the surface of arbitrary geometry.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ShallowCopy(vtkAbstractMapper *) override
Shallow copy of an actor.
virtual void StartTimerEvent(const char *)
Methods used for parallel benchmarks.
vtkSurfaceLICInterface * LICInterface
static vtkSurfaceLICMapper * New()
void RenderPiece(vtkRenderer *ren, vtkActor *act) override
Implemented by sub classes.
~vtkSurfaceLICMapper() override
void BuildBufferObjects(vtkRenderer *ren, vtkActor *act) override
Build the VBO/IBO, called by UpdateBufferObjects.
void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override
Set the shader parameteres related to the mapper/input data, called by UpdateShader.
virtual void EndTimerEvent(const char *)
void ReleaseGraphicsResources(vtkWindow *win) override
Release any graphics resources that are being consumed by this mapper.
void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Perform string replacements on the shader templates.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36