File indexing completed on 2024-04-14 14:07:55

0001 /*************************************************************************************
0002  *  Copyright (C) 2007-2009 by Aleix Pol <aleixpol@kde.org>                          *
0003  *  Copyright (C) 2010-2013 by Percy Camilo T. Aucahuasi <percy.camilo.ta@gmail.com> *
0004  *                                                                                   *
0005  *  This program is free software; you can redistribute it and/or                    *
0006  *  modify it under the terms of the GNU General Public License                      *
0007  *  as published by the Free Software Foundation; either version 2                   *
0008  *  of the License, or (at your option) any later version.                           *
0009  *                                                                                   *
0010  *  This program is distributed in the hope that it will be useful,                  *
0011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of                   *
0012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                    *
0013  *  GNU General Public License for more details.                                     *
0014  *                                                                                   *
0015  *  You should have received a copy of the GNU General Public License                *
0016  *  along with this program; if not, write to the Free Software                      *
0017  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA   *
0018  *************************************************************************************/
0019 
0020 #ifndef PLOTTINGENUMS_H
0021 #define PLOTTINGENUMS_H
0022 
0023 #include <QFlags>
0024 
0025 namespace Analitza {
0026 
0027 enum Dimension
0028 {
0029     Dim1D = 1,
0030     Dim2D = 2,
0031     Dim3D = 4,
0032     DimAll = Dim1D | Dim2D | Dim3D
0033 };
0034 
0035 Q_DECLARE_FLAGS(Dimensions, Dimension)
0036 
0037 enum CoordinateSystem
0038 {
0039     Cartesian = 1,
0040     Polar,
0041     Cylindrical,
0042     Spherical
0043 };
0044 
0045 enum CartesianAxis
0046 {
0047     XAxis = 1,
0048     YAxis,
0049     ZAxis,
0050     InvalidAxis // used for query/select between some axis 
0051 };
0052 
0053 enum PlotStyle
0054 {
0055     Dots = 1,
0056     Wired, 
0057     Solid
0058 };
0059 
0060 //TODO review the 3d bahaviour
0061 enum PlottingFocusPolicy
0062 {
0063     Current,
0064     All
0065 };
0066 
0067 //NOTE this is important in order to keep compatibility with KmPlot
0068 enum GridStyle
0069 {
0070     Squares = 1, // a solid quadrangular (rectangular, if keep aspect radio is off) mesh (in KmPlot is called Lines) 
0071     Circles, // classic polar grid: solid circles (ellipses, if keep aspect radio is off) around origin (in KmPlot is called Polar) 
0072     Crosses, // like KmPlot: show only a cross at every node of the quadrangular mesh
0073     HorizontalLines, // (or rows) show only horizontal lines of the quadrangular mesh, can be used as horizontal asymptotes
0074     VerticalLines, // (or columns) show only vertical lines of the quadrangular mesh, can be used as vertical asymptotes
0075 };
0076 
0077 enum AngleMode
0078 {
0079     Radian,
0080     Degree,
0081     Gradian
0082 };
0083 
0084 enum ScaleMode // used for draw ticks marks in plotters
0085 {
0086     Linear = 1, // -2 -1 0 1 ...
0087     Trigonometric, // -pi 0 +pi
0088 //     TODO lin-lin, lin-log, log-lin, and log-log.
0089 };
0090 
0091 }
0092 
0093 #endif