VTK
vtkAxisExtended.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCellLocator.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 =========================================================================*/
26 #ifndef vtkAxisExtended_h
27 #define vtkAxisExtended_h
28 #endif
29 
30 #include "vtkChartsCoreModule.h" // For export macro
31 #include "vtkObject.h"
32 #include "vtkVector.h" // Needed for vtkVector
33 
35 {
36 public:
37  vtkTypeMacro(vtkAxisExtended, vtkObject);
38  static vtkAxisExtended *New();
39  virtual void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
44  static double Simplicity(int qIndex, int qLength, int j, double lmin,
45  double lmax, double lstep);
47 
50  static double SimplicityMax(int qIndex, int qLength, int j);
51 
54  static double Coverage(double dmin, double dmax, double lmin, double lmax);
55 
58  static double CoverageMax(double dmin, double dmax, double span);
59 
61 
63  static double Density(int k, double m, double dmin, double dmax,
64  double lmin, double lmax);
66 
69  static double DensityMax(int k, double m);
70 
72  static double FormatLegibilityScore(double n, int format);
73 
75  static int FormatStringLength(int format, double n, int precision);
76 
78 
81  vtkVector3d GenerateExtendedTickLabels(double dmin, double dmax, double m,
82  double scaling);
84 
86 
87  vtkGetMacro(FontSize, int);
88  vtkSetMacro(FontSize, int);
90 
91  vtkGetMacro(DesiredFontSize, int);
92  vtkSetMacro(DesiredFontSize, int);
93 
94  vtkGetMacro(Precision, int);
95  vtkSetMacro(Precision, int);
96  vtkGetMacro(LabelFormat, int);
97  vtkSetMacro(LabelFormat, int);
98 
99  vtkGetMacro(Orientation, int);
100  vtkSetMacro(Orientation, int);
101 
102  vtkGetMacro(IsAxisVertical, bool);
103  vtkSetMacro(IsAxisVertical, bool);
104 
105 protected:
106  vtkAxisExtended();
107  ~vtkAxisExtended();
108 
110 
112  double Legibility(double lmin, double lmax, double lstep, double scaling,
113  vtkVector<int, 3>& parameters);
115 
117  int FontSize;
123 
124 private:
125  vtkAxisExtended(const vtkAxisExtended&); // Not implemented.
126  void operator=(const vtkAxisExtended&); // Not implemented.
127 };
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
octree-based spatial search object to quickly locate cells
static vtkObject * New()
#define VTKCHARTSCORE_EXPORT