VTK
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
26 
27 class vtkMatrix4x4;
28 class vtkOpenGLHelper;
29 
30 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLLabeledContourMapper
32 {
33 public:
36 
37 
38  void ReleaseGraphicsResources(vtkWindow *win);
39 
40 protected:
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
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:38
abstract specification for renderers
Definition: vtkRenderer.h:63
Draw labeled isolines.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
static vtkLabeledContourMapper * New()