VTK  9.0.20200606
vtkDynamic2DLabelMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDynamic2DLabelMapper.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
62 #ifndef vtkDynamic2DLabelMapper_h
63 #define vtkDynamic2DLabelMapper_h
64 
65 #include "vtkLabeledDataMapper.h"
66 #include "vtkRenderingLabelModule.h" // For export macro
67 
68 class VTKRENDERINGLABEL_EXPORT vtkDynamic2DLabelMapper : public vtkLabeledDataMapper
69 {
70 public:
72 
76  static vtkDynamic2DLabelMapper* New();
78  void PrintSelf(ostream& os, vtkIndent indent) override;
80 
85  void SetPriorityArrayName(const char* name);
86 
88 
92  vtkSetMacro(ReversePriority, bool);
93  vtkGetMacro(ReversePriority, bool);
94  vtkBooleanMacro(ReversePriority, bool);
96 
98 
103  vtkSetMacro(LabelHeightPadding, float);
104  vtkGetMacro(LabelHeightPadding, float);
106 
108 
113  vtkSetMacro(LabelWidthPadding, float);
114  vtkGetMacro(LabelWidthPadding, float);
116 
118 
121  void RenderOpaqueGeometry(vtkViewport* viewport, vtkActor2D* actor) override;
122  void RenderOverlay(vtkViewport* viewport, vtkActor2D* actor) override;
124 
125 protected:
127  ~vtkDynamic2DLabelMapper() override;
128 
132  double GetCurrentScale(vtkViewport* viewport);
133 
134  float* LabelWidth;
135  float* LabelHeight;
136  float* Cutoff;
140 
142 
143 private:
145  void operator=(const vtkDynamic2DLabelMapper&) = delete;
146 };
147 
148 #endif
vtkDynamic2DLabelMapper::ReversePriority
bool ReversePriority
Definition: vtkDynamic2DLabelMapper.h:141
vtkLabeledDataMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDynamic2DLabelMapper::LabelWidthPadding
float LabelWidthPadding
Definition: vtkDynamic2DLabelMapper.h:139
vtkLabeledDataMapper::RenderOpaqueGeometry
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor) override
Draw the text to the screen at each input point.
vtkDynamic2DLabelMapper::Cutoff
float * Cutoff
Definition: vtkDynamic2DLabelMapper.h:136
vtkDynamic2DLabelMapper::LabelHeightPadding
float LabelHeightPadding
Definition: vtkDynamic2DLabelMapper.h:138
vtkLabeledDataMapper::RenderOverlay
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor) override
vtkDynamic2DLabelMapper::LabelHeight
float * LabelHeight
Definition: vtkDynamic2DLabelMapper.h:135
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkLabeledDataMapper::New
static vtkLabeledDataMapper * New()
Instantiate object with %%-#6.3g label format.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkX3D::name
Definition: vtkX3D.h:225
vtkDynamic2DLabelMapper::LabelWidth
float * LabelWidth
Definition: vtkDynamic2DLabelMapper.h:134
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:39
vtkLabeledDataMapper
draw text labels at dataset points
Definition: vtkLabeledDataMapper.h:70
vtkDynamic2DLabelMapper
draw text labels at 2D dataset points
Definition: vtkDynamic2DLabelMapper.h:68
vtkDynamic2DLabelMapper::ReferenceScale
float ReferenceScale
Definition: vtkDynamic2DLabelMapper.h:137
vtkLabeledDataMapper.h