OpenMS
AxisTickCalculator.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
14 #include <vector>
15 #include <OpenMS/CONCEPT/Types.h>
16 
17 namespace OpenMS
18 {
26  class OPENMS_GUI_DLLAPI AxisTickCalculator
27  {
28 public:
29 
31  typedef std::vector<std::vector<double> > GridVector;
32 
40  static void calcGridLines(double x1, double x2, GridVector & grid);
41 
49  static void calcLogGridLines(double x1, double x2, GridVector & grid);
50 
51 private:
52 
55  };
56 }
Calculates ticks for a given value range.
Definition: AxisTickCalculator.h:27
std::vector< std::vector< double > > GridVector
Typedef for the grid vector.
Definition: AxisTickCalculator.h:31
static void calcGridLines(double x1, double x2, GridVector &grid)
Returns a GridVector with ticks for linear scales.
AxisTickCalculator()
Constructor: only static methods.
static void calcLogGridLines(double x1, double x2, GridVector &grid)
Returns a GridVector with ticks for logarithmic scales.
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19