Engauge Digitizer 2
Loading...
Searching...
No Matches
GridLineNormalize.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2021 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef GRID_LINE_NORMALIZE_H
8#define GRID_LINE_NORMALIZE_H
9
10#include "GridCoordDisable.h"
11
12class MainWindowModel;
13
16{
17public:
19 GridLineNormalize (const MainWindowModel &modelMainWindow);
20 virtual ~GridLineNormalize ();
21
23 void normalize (bool isLinear,
24 GridCoordDisable disable,
25 double &start,
26 double &step,
27 double &stop,
28 unsigned int &num) const;
29
30private:
31 unsigned int m_maximumGridLines;
32};
33
34#endif // GRID_LINE_NORMALIZE_H
GridCoordDisable
GridLineNormalize(const MainWindowModel &modelMainWindow)
Default constructor.
void normalize(bool isLinear, GridCoordDisable disable, double &start, double &step, double &stop, unsigned int &num) const
Normalize the quartet of grid line parameters by adjusting the disabled one to achieve consistency.
Model for DlgSettingsMainWindow.