VTK  9.2.6
vtkAxisExtended.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAxisExtended.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 =========================================================================*/
28 #ifndef vtkAxisExtended_h
29 #define vtkAxisExtended_h
30 #endif
31 
32 #include "vtkChartsCoreModule.h" // For export macro
33 #include "vtkObject.h"
34 #include "vtkVector.h" // Needed for vtkVector
35 
36 class VTKCHARTSCORE_EXPORT vtkAxisExtended : public vtkObject
37 {
38 public:
39  vtkTypeMacro(vtkAxisExtended, vtkObject);
40  static vtkAxisExtended* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  static double Simplicity(int qIndex, int qLength, int j, double lmin, double lmax, double lstep);
48 
53  static double SimplicityMax(int qIndex, int qLength, int j);
54 
59  static double Coverage(double dmin, double dmax, double lmin, double lmax);
60 
64  static double CoverageMax(double dmin, double dmax, double span);
65 
70  static double Density(int k, double m, double dmin, double dmax, double lmin, double lmax);
71 
76  static double DensityMax(int k, double m);
77 
81  static double FormatLegibilityScore(double n, int format);
82 
86  static int FormatStringLength(int format, double n, int precision);
87 
93  vtkVector3d GenerateExtendedTickLabels(double dmin, double dmax, double m, double scaling);
94 
96 
99  vtkGetMacro(FontSize, int);
100  vtkSetMacro(FontSize, int);
102 
103  vtkGetMacro(DesiredFontSize, int);
104  vtkSetMacro(DesiredFontSize, int);
105 
106  vtkGetMacro(Precision, int);
107  vtkSetMacro(Precision, int);
108  vtkGetMacro(LabelFormat, int);
109  vtkSetMacro(LabelFormat, int);
110 
111  vtkGetMacro(Orientation, int);
112  vtkSetMacro(Orientation, int);
113 
114  vtkGetMacro(IsAxisVertical, bool);
115  vtkSetMacro(IsAxisVertical, bool);
116 
117 protected:
118  vtkAxisExtended();
119  ~vtkAxisExtended() override;
120 
124  double Legibility(
125  double lmin, double lmax, double lstep, double scaling, vtkVector<int, 3>& parameters);
126 
128  int FontSize;
134 
135 private:
136  vtkAxisExtended(const vtkAxisExtended&) = delete;
137  void operator=(const vtkAxisExtended&) = delete;
138 };
abstract base class for most VTK objects
Definition: vtkObject.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
extended axis tick positioning
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...