VTK  9.3.0
vtkDynamic2DLabelMapper.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
43#ifndef vtkDynamic2DLabelMapper_h
44#define vtkDynamic2DLabelMapper_h
45
47#include "vtkRenderingLabelModule.h" // For export macro
48
49VTK_ABI_NAMESPACE_BEGIN
50class VTKRENDERINGLABEL_EXPORT vtkDynamic2DLabelMapper : public vtkLabeledDataMapper
51{
52public:
54
60 void PrintSelf(ostream& os, vtkIndent indent) override;
62
67 void SetPriorityArrayName(const char* name);
68
70
74 vtkSetMacro(ReversePriority, bool);
75 vtkGetMacro(ReversePriority, bool);
76 vtkBooleanMacro(ReversePriority, bool);
78
80
85 vtkSetMacro(LabelHeightPadding, float);
86 vtkGetMacro(LabelHeightPadding, float);
88
90
95 vtkSetMacro(LabelWidthPadding, float);
96 vtkGetMacro(LabelWidthPadding, float);
98
100
103 void RenderOpaqueGeometry(vtkViewport* viewport, vtkActor2D* actor) override;
104 void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) override;
106
107protected:
110
114 double GetCurrentScale(vtkViewport* viewport);
115
118 float* Cutoff;
122
124
125private:
127 void operator=(const vtkDynamic2DLabelMapper&) = delete;
128};
129
130VTK_ABI_NAMESPACE_END
131#endif
a actor that draws 2D data
Definition vtkActor2D.h:35
draw text labels at 2D dataset points
static vtkDynamic2DLabelMapper * New()
Instantiate object with %%-#6.3g label format.
~vtkDynamic2DLabelMapper() override
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor) override
Draw non-overlapping labels to the screen.
void SetPriorityArrayName(const char *name)
Set the points array name to use to give priority to labels.
double GetCurrentScale(vtkViewport *viewport)
Calculate the current zoom scale of the viewport.
void PrintSelf(ostream &os, vtkIndent indent) override
Instantiate object with %%-#6.3g label format.
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor) override
Draw non-overlapping labels to the screen.
a simple class to control print indentation
Definition vtkIndent.h:29
draw text labels at dataset points
abstract specification for Viewports
Definition vtkViewport.h:45