VTK  9.4.20250509
vtkOpenGLLabeledContourMapper.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
10#ifndef vtkOpenGLLabeledContourMapper_h
11#define vtkOpenGLLabeledContourMapper_h
12
14#include "vtkRenderingOpenGL2Module.h" // For export macro
15#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
16
17VTK_ABI_NAMESPACE_BEGIN
18class vtkMatrix4x4;
19class vtkOpenGLHelper;
20
21class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkOpenGLLabeledContourMapper
23{
24public:
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
33
34protected:
37
38 // We override this for compatibility with the OpenGL backend:
39 // The old backend pushes actor matrices onto the matrix stack, so the text
40 // actors already accounted for any transformations on this mapper's actor.
41 // The new backend passes each actor's matrix to the shader individually, and
42 // this mapper's actor matrix doesn't affect the label rendering.
43 bool CreateLabels(vtkActor* actor) override;
44
45 bool ApplyStencil(vtkRenderer* ren, vtkActor* act) override;
46 bool RemoveStencil(vtkRenderer* ren) override;
47
50
51private:
53 void operator=(const vtkOpenGLLabeledContourMapper&) = delete;
54};
55
56VTK_ABI_NAMESPACE_END
57#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
a simple class to control print indentation
Definition vtkIndent.h:108
represent and manipulate 4x4 transformation matrices
vtkOpenGLLabeledContourMapper is an override for vtkLabeledContourMapper that implements stenciling u...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool ApplyStencil(vtkRenderer *ren, vtkActor *act) override
static vtkOpenGLLabeledContourMapper * New()
~vtkOpenGLLabeledContourMapper() override
void ReleaseGraphicsResources(vtkWindow *win) override
Release graphics resources.
bool CreateLabels(vtkActor *actor) override
bool RemoveStencil(vtkRenderer *ren) override
abstract specification for renderers
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
#define VTK_MARSHALAUTO