VTK  9.0.1
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 
26 #include "vtkRenderingOpenGL2Module.h" // For export macro
27 
28 class vtkMatrix4x4;
29 class vtkOpenGLHelper;
30 
31 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLLabeledContourMapper : public vtkLabeledContourMapper
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
41  void ReleaseGraphicsResources(vtkWindow* win) override;
42 
43 protected:
46 
47  // We override this for compatibility with the OpenGL backend:
48  // The old backend pushes actor matrices onto the matrix stack, so the text
49  // actors already accounted for any transformations on this mapper's actor.
50  // The new backend passes each actor's matrix to the shader individually, and
51  // this mapper's actor matrix doesn't affect the label rendering.
52  bool CreateLabels(vtkActor* actor) override;
53 
54  bool ApplyStencil(vtkRenderer* ren, vtkActor* act) override;
55  bool RemoveStencil(vtkRenderer* ren) override;
56 
59 
60 private:
62  void operator=(const vtkOpenGLLabeledContourMapper&) = delete;
63 };
64 
65 #endif
vtkOpenGLLabeledContourMapper::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *win) override
Release graphics resources.
vtkOpenGLLabeledContourMapper::ApplyStencil
bool ApplyStencil(vtkRenderer *ren, vtkActor *act) override
vtkOpenGLLabeledContourMapper::CreateLabels
bool CreateLabels(vtkActor *actor) override
vtkOpenGLLabeledContourMapper::StencilBO
vtkOpenGLHelper * StencilBO
Definition: vtkOpenGLLabeledContourMapper.h:57
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:32
vtkOpenGLHelper
Definition: vtkOpenGLHelper.h:31
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:36
vtkLabeledContourMapper
Draw labeled isolines.
Definition: vtkLabeledContourMapper.h:46
vtkOpenGLLabeledContourMapper::~vtkOpenGLLabeledContourMapper
~vtkOpenGLLabeledContourMapper() override
vtkOpenGLLabeledContourMapper::vtkOpenGLLabeledContourMapper
vtkOpenGLLabeledContourMapper()
vtkOpenGLLabeledContourMapper::TempMatrix4
vtkMatrix4x4 * TempMatrix4
Definition: vtkOpenGLLabeledContourMapper.h:58
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:59
vtkOpenGLLabeledContourMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLLabeledContourMapper::RemoveStencil
bool RemoveStencil(vtkRenderer *ren) override