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 -------------------------------------------------------------------------*/
61 #ifndef vtkDynamic2DLabelMapper_h
62 #define vtkDynamic2DLabelMapper_h
63 
64 #include "vtkRenderingLabelModule.h" // For export macro
65 #include "vtkLabeledDataMapper.h"
66 
68 {
69 public:
71 
73  static vtkDynamic2DLabelMapper *New();
75  void PrintSelf(ostream& os, vtkIndent indent);
77 
80  void SetPriorityArrayName(const char* name);
81 
83 
85  vtkSetMacro(ReversePriority, bool);
86  vtkGetMacro(ReversePriority, bool);
87  vtkBooleanMacro(ReversePriority, bool);
89 
91 
93  vtkSetMacro(LabelHeightPadding, float);
94  vtkGetMacro(LabelHeightPadding, float);
96 
98 
100  vtkSetMacro(LabelWidthPadding, float);
101  vtkGetMacro(LabelWidthPadding, float);
103 
105 
106  void RenderOpaqueGeometry(vtkViewport* viewport, vtkActor2D* actor);
107  void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor);
109 
110 protected:
113 
115  double GetCurrentScale(vtkViewport *viewport);
116 
117  float* LabelWidth;
118  float* LabelHeight;
119  float* Cutoff;
123 
125 
126 private:
127  vtkDynamic2DLabelMapper(const vtkDynamic2DLabelMapper&); // Not implemented.
128  void operator=(const vtkDynamic2DLabelMapper&); // Not implemented.
129 };
130 
131 #endif
132 
static vtkLabeledDataMapper * New()
abstract specification for Viewports
Definition: vtkViewport.h:46
a actor that draws 2D data
Definition: vtkActor2D.h:44
draw text labels at 2D dataset points
draw text labels at dataset points
void RenderOverlay(vtkViewport *viewport, vtkActor2D *actor)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGLABEL_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
void RenderOpaqueGeometry(vtkViewport *viewport, vtkActor2D *actor)