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:
53  static vtkLabelSizeCalculator* New();
54  virtual void PrintSelf( ostream& os, vtkIndent indent );
56 
58 
62  virtual void SetFontProperty(vtkTextProperty* fontProp, int type = 0);
63  virtual vtkTextProperty* GetFontProperty(int type = 0);
65 
67 
69  vtkSetStringMacro(LabelSizeArrayName);
70  vtkGetStringMacro(LabelSizeArrayName);
72 
73 protected:
75  virtual ~vtkLabelSizeCalculator();
76 
77  virtual int FillInputPortInformation( int port, vtkInformation* info );
78  virtual int RequestData(
79  vtkInformation* request,
80  vtkInformationVector** inInfo,
81  vtkInformationVector* outInfo );
82 
83  virtual vtkIntArray* LabelSizesForArray( vtkAbstractArray* labels, vtkIntArray* types );
84 
85  virtual void SetFontUtil( vtkFreeTypeUtilities* fontProp );
86  vtkGetObjectMacro(FontUtil,vtkFreeTypeUtilities);
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
vtkFreeTypeUtilities * FontUtil
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
a vtkAbstractArray subclass for strings
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
virtual int FillInputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGLABEL_EXPORT
represent text properties.
void PrintSelf(ostream &os, vtkIndent indent)
FreeType library support.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPassInputTypeAlgorithm * New()