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 
43 
44 class vtkIntArray;
46 class vtkStringArray;
47 class vtkTextProperty;
48 
50 {
51 public:
52  static vtkLabelSizeCalculator* New();
53  virtual void PrintSelf( ostream& os, vtkIndent indent );
55 
57 
61  virtual void SetFontProperty(vtkTextProperty* fontProp, int type = 0);
62  virtual vtkTextProperty* GetFontProperty(int type = 0);
64 
66 
68  vtkSetStringMacro(LabelSizeArrayName);
69  vtkGetStringMacro(LabelSizeArrayName);
71 
72 protected:
74  virtual ~vtkLabelSizeCalculator();
75 
76  virtual int FillInputPortInformation( int port, vtkInformation* info );
77  virtual int RequestData(
78  vtkInformation* request,
79  vtkInformationVector** inInfo,
80  vtkInformationVector* outInfo );
81 
82  virtual vtkIntArray* LabelSizesForArray( vtkAbstractArray* labels, vtkIntArray* types );
83 
84  virtual void SetFontUtil( vtkFreeTypeUtilities* fontProp );
85  vtkGetObjectMacro(FontUtil,vtkFreeTypeUtilities);
86 
89 
90  //BTX
91  class Internals;
92  Internals* Implementation;
93  //ETX
94 
95 private:
96  vtkLabelSizeCalculator( const vtkLabelSizeCalculator& ); // Not implemented.
97  void operator = ( const vtkLabelSizeCalculator& ); // Not implemented.
98 };
99 
100 #endif // __vtkLabelSizeCalculator_h