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