VTK
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 -------------------------------------------------------------------------*/
59 #ifndef vtkDynamic2DLabelMapper_h
60 #define vtkDynamic2DLabelMapper_h
61 
62 #include "vtkRenderingLabelModule.h" // For export macro
63 #include "vtkLabeledDataMapper.h"
64 
65 class VTKRENDERINGLABEL_EXPORT vtkDynamic2DLabelMapper : public vtkLabeledDataMapper
66 {
67 public:
69 
73  static vtkDynamic2DLabelMapper *New();
75  void PrintSelf(ostream& os, vtkIndent indent);
77 
82  void SetPriorityArrayName(const char* name);
83 
85 
89  vtkSetMacro(ReversePriority, bool);
90  vtkGetMacro(ReversePriority, bool);
91  vtkBooleanMacro(ReversePriority, bool);
93 
95 
100  vtkSetMacro(LabelHeightPadding, float);
101  vtkGetMacro(LabelHeightPadding, float);
103 
105 
110  vtkSetMacro(LabelWidthPadding, float);
111  vtkGetMacro(LabelWidthPadding, float);
113 
115 
118  void RenderOpaqueGeometry(vtkViewport* viewport, vtkActor2D* actor);
119  void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor);
121 
122 protected:
125 
129  double GetCurrentScale(vtkViewport *viewport);
130 
131  float* LabelWidth;
132  float* LabelHeight;
133  float* Cutoff;
137 
139 
140 private:
141  vtkDynamic2DLabelMapper(const vtkDynamic2DLabelMapper&) VTK_DELETE_FUNCTION;
142  void operator=(const vtkDynamic2DLabelMapper&) VTK_DELETE_FUNCTION;
143 };
144 
145 #endif
146 
static vtkLabeledDataMapper * New()
Instantiate object with %%-#6.3g label format.
abstract specification for Viewports
Definition: vtkViewport.h:47
a actor that draws 2D data
Definition: vtkActor2D.h:45
draw text labels at 2D dataset points
draw text labels at dataset points
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor)
Draw the text to the screen at each input point.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor)
Draw the text to the screen at each input point.