VTK
vtkLabelSizeCalculator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLabelSizeCalculator.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 
39 #ifndef vtkLabelSizeCalculator_h
40 #define vtkLabelSizeCalculator_h
41 
42 #include "vtkRenderingLabelModule.h" // For export macro
44 
45 class vtkIntArray;
47 class vtkStringArray;
48 class vtkTextProperty;
49 
51 {
52 public:
54  virtual void PrintSelf( ostream& os, vtkIndent indent );
56 
58 
62  virtual void SetFontProperty(vtkTextProperty* fontProp, int type = 0);
65 
67 
69  vtkSetStringMacro(LabelSizeArrayName);
70  vtkGetStringMacro(LabelSizeArrayName);
72 
73 protected:
76 
78  virtual int RequestData(
79  vtkInformation* request,
80  vtkInformationVector** inInfo,
81  vtkInformationVector* outInfo );
82 
84 
85  virtual void SetFontUtil( vtkFreeTypeUtilities* fontProp );
87 
90 
91  //BTX
92  class Internals;
93  Internals* Implementation;
94  //ETX
95 
96 private:
97  vtkLabelSizeCalculator( const vtkLabelSizeCalculator& ); // Not implemented.
98  void operator = ( const vtkLabelSizeCalculator& ); // Not implemented.
99 };
100 
101 #endif // vtkLabelSizeCalculator_h
vtkRenderingLabelModule.h
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkPassInputTypeAlgorithm.h
vtkLabelSizeCalculator::Implementation
Internals * Implementation
Definition: vtkLabelSizeCalculator.h:92
vtkLabelSizeCalculator::LabelSizesForArray
virtual vtkIntArray * LabelSizesForArray(vtkAbstractArray *labels, vtkIntArray *types)
vtkLabelSizeCalculator::SetFontProperty
virtual void SetFontProperty(vtkTextProperty *fontProp, int type=0)
vtkLabelSizeCalculator::LabelSizeArrayName
char * LabelSizeArrayName
Definition: vtkLabelSizeCalculator.h:89
vtkFreeTypeUtilities
FreeType library support.
Definition: vtkFreeTypeUtilities.h:78
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkgl::types
GLsizei GLenum GLenum * types
Definition: vtkgl.h:14417
vtkLabelSizeCalculator::GetFontProperty
virtual vtkTextProperty * GetFontProperty(int type=0)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkLabelSizeCalculator::SetFontUtil
virtual void SetFontUtil(vtkFreeTypeUtilities *fontProp)
VTKRENDERINGLABEL_EXPORT
#define VTKRENDERINGLABEL_EXPORT
Definition: vtkRenderingLabelModule.h:15
vtkLabelSizeCalculator::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
vtkLabelSizeCalculator::~vtkLabelSizeCalculator
virtual ~vtkLabelSizeCalculator()
vtkLabelSizeCalculator::vtkLabelSizeCalculator
vtkLabelSizeCalculator()
vtkLabelSizeCalculator::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkLabelSizeCalculator::New
static vtkLabelSizeCalculator * New()
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkLabelSizeCalculator
Definition: vtkLabelSizeCalculator.h:51
vtkLabelSizeCalculator::FontUtil
vtkFreeTypeUtilities * FontUtil
Definition: vtkLabelSizeCalculator.h:86
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:53
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:65
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:45
vtkgl::type
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
vtkLabelSizeCalculator::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:50