File indexing completed on 2024-12-22 04:17:59
0001 /*************************************************************************** 0002 * * 0003 * copyright : (C) 2011 C. Barth Netterfield * 0004 * netterfield@astro.utoronto.ca * 0005 * * 0006 * This program is free software; you can redistribute it and/or modify * 0007 * it under the terms of the GNU General Public License as published by * 0008 * the Free Software Foundation; either version 2 of the License, or * 0009 * (at your option) any later version. * 0010 * * 0011 ***************************************************************************/ 0012 0013 #ifndef PLOTTICKCALCULATOR_H 0014 #define PLOTTICKCALCULATOR_H 0015 0016 #include "kstmath_export.h" 0017 0018 namespace Kst { 0019 0020 enum MajorTickMode { 0021 TicksNone = 0, 0022 TicksCoarse = 2, 0023 TicksNormal = 5, 0024 TicksFine = 10, 0025 TicksVeryFine = 15 0026 }; 0027 0028 enum timeUnits {Hour, Minute, Second}; 0029 0030 KSTMATH_EXPORT void computeMajorTickSpacing(double *major_spacing, int *minor_count, MajorTickMode majorTickCount, double range); 0031 KSTMATH_EXPORT void computeMajorTickSpacing(double *major_spacing, int *minor_count, MajorTickMode majorTickCount, double range, timeUnits time_units); 0032 0033 } 0034 0035 #endif // PLOTTICKCALCULATOR_H