VTK
dox
Rendering
OpenGL2
vtkOpenGLLabeledContourMapper.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkOpenGLLabeledContourMapper.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
=========================================================================*/
22
#ifndef vtkOpenGLLabeledContourMapper_h
23
#define vtkOpenGLLabeledContourMapper_h
24
25
#include "vtkRenderingOpenGL2Module.h"
// For export macro
26
#include "
vtkLabeledContourMapper.h
"
27
28
class
vtkMatrix4x4
;
29
class
vtkOpenGLHelper
;
30
31
class
VTKRENDERINGOPENGL2_EXPORT
vtkOpenGLLabeledContourMapper
32
:
public
vtkLabeledContourMapper
33
{
34
public
:
35
static
vtkOpenGLLabeledContourMapper
*
New
();
36
vtkTypeMacro(
vtkOpenGLLabeledContourMapper
,
vtkLabeledContourMapper
)
37
virtual
void
PrintSelf(ostream &os,
vtkIndent
indent);
38
42
void
ReleaseGraphicsResources(
vtkWindow
*win);
43
44
protected:
45
vtkOpenGLLabeledContourMapper
();
46
~
vtkOpenGLLabeledContourMapper
();
47
48
// We override this for compatibilty with the OpenGL backend:
49
// The old backend pushes actor matrices onto the matrix stack, so the text
50
// actors already accounted for any transformations on this mapper's actor.
51
// The new backend passes each actor's matrix to the shader individually, and
52
// this mapper's actor matrix doesn't affect the label rendering.
53
bool
CreateLabels(
vtkActor
*actor);
54
55
bool
ApplyStencil(
vtkRenderer
*ren,
vtkActor
*act);
56
bool
RemoveStencil();
57
58
vtkOpenGLHelper
*StencilBO;
59
vtkMatrix4x4
*TempMatrix4;
60
61
62
private:
63
vtkOpenGLLabeledContourMapper
(const
vtkOpenGLLabeledContourMapper
&) VTK_DELETE_FUNCTION;
64
void
operator=(const
vtkOpenGLLabeledContourMapper
&) VTK_DELETE_FUNCTION;
65
};
66
67
#endif
vtkLabeledContourMapper.h
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:35
vtkOpenGLLabeledContourMapper::New
static vtkOpenGLLabeledContourMapper * New()
vtkOpenGLLabeledContourMapper
vtkOpenGLLabeledContourMapper is an override for vtkLabeledContourMapper that implements stenciling u...
Definition:
vtkOpenGLLabeledContourMapper.h:30
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:31
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition:
vtkActor.h:52
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition:
vtkMatrix4x4.h:42
vtkLabeledContourMapper
Draw labeled isolines.
Definition:
vtkLabeledContourMapper.h:49
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:64
Generated by
1.8.20