VTK
dox
opt
build
vtk6-6.3.0+dfsg2
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
=========================================================================*/
21
#ifndef vtkOpenGLLabelContourMapper_h
22
#define vtkOpenGLLabelContourMapper_h
23
24
#include "vtkRenderingOpenGL2Module.h"
// For export macro
25
#include "
vtkLabeledContourMapper.h
"
26
27
class
vtkMatrix4x4
;
28
class
vtkOpenGLHelper
;
29
30
class
VTKRENDERINGOPENGL2_EXPORT
vtkOpenGLLabeledContourMapper
31
:
public
vtkLabeledContourMapper
32
{
33
public
:
34
static
vtkOpenGLLabeledContourMapper
*
New
();
35
vtkTypeMacro
(
vtkOpenGLLabeledContourMapper
,
vtkLabeledContourMapper
)
36
37
38
void
ReleaseGraphicsResources(
vtkWindow
*win);
39
40
protected:
41
vtkOpenGLLabeledContourMapper
();
42
~
vtkOpenGLLabeledContourMapper
();
43
44
// We override this for compatibilty with the OpenGL backend:
45
// The old backend pushes actor matrices onto the matrix stack, so the text
46
// actors already accounted for any transformations on this mapper's actor.
47
// The new backend passes each actor's matrix to the shader individually, and
48
// this mapper's actor matrix doesn't affect the label rendering.
49
bool
CreateLabels(
vtkActor
*actor);
50
51
bool
ApplyStencil(
vtkRenderer
*ren,
vtkActor
*act);
52
bool
RemoveStencil();
53
54
vtkOpenGLHelper
*StencilBO;
55
vtkMatrix4x4
*TempMatrix4;
56
57
58
private:
59
vtkOpenGLLabeledContourMapper
(const
vtkOpenGLLabeledContourMapper
&);
// Not implemented.
60
void
operator=(const
vtkOpenGLLabeledContourMapper
&);
// Not implemented.
61
};
62
63
#endif
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkLabeledContourMapper.h
vtkWindow
window superclass for vtkRenderWindow
Definition:
vtkWindow.h:34
vtkOpenGLLabeledContourMapper::New
static vtkOpenGLLabeledContourMapper * New()
vtkOpenGLLabeledContourMapper
Definition:
vtkOpenGLLabeledContourMapper.h:29
vtkOpenGLHelper
Definition:
vtkOpenGLHelper.h:31
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition:
vtkActor.h:51
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition:
vtkMatrix4x4.h:39
vtkLabeledContourMapper
Draw labeled isolines.
Definition:
vtkLabeledContourMapper.h:48
vtkRenderer
abstract specification for renderers
Definition:
vtkRenderer.h:64
vtkgl::void
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
Generated by
1.8.20