NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
plotinfo.hpp
Go to the documentation of this file.
1/*****************************************************************************
2 NumeRe: Framework fuer Numerische Rechnungen
3 Copyright (C) 2017 Erik Haenel et al.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17******************************************************************************/
18
19
20
21#ifndef PLOTINFO_HPP
22#define PLOTINFO_HPP
23
24#include <mgl2/mgl.h>
25#include <string>
26#include <vector>
27#include "../interval.hpp"
28
34{
37 bool b2D;
38 bool b3D;
39 bool b2DVect;
40 bool b3DVect;
41 bool bDraw;
42 bool bDraw3D;
43 std::string sCommand;
44 std::string sPlotParams;
46 int nStyle;
48 unsigned int nMaxPlotDim;
50 std::vector<std::string> sLineStyles;
51 std::vector<std::string> sContStyles;
52 std::vector<std::string> sPointStyles;
53 std::vector<std::string> sConPointStyles;
54
60
67 int nextStyle() const
68 {
69 if (nStyle == nStyleMax - 1)
70 return 0;
71
72 return nStyle+1;
73 }
74};
75
76
77#endif
This class represents a set of intervals used together for calculations and simulations.
Definition: interval.hpp:84
This structure governs the needed parameters for plotting.
Definition: plotinfo.hpp:34
bool bDraw3D
Definition: plotinfo.hpp:42
bool bDraw
Definition: plotinfo.hpp:41
std::vector< std::string > sLineStyles
Definition: plotinfo.hpp:50
unsigned int nMaxPlotDim
Definition: plotinfo.hpp:48
std::string sCommand
Definition: plotinfo.hpp:43
IntervalSet ranges
Definition: plotinfo.hpp:35
PlotInfo()
Simple constructor to initialize the structure into a valid state.
Definition: plotinfo.hpp:59
int nFunctions
Definition: plotinfo.hpp:49
bool b3DVect
Definition: plotinfo.hpp:40
bool b2D
Definition: plotinfo.hpp:37
bool b3D
Definition: plotinfo.hpp:38
std::string sPlotParams
Definition: plotinfo.hpp:44
IntervalSet secranges
Definition: plotinfo.hpp:36
bool b2DVect
Definition: plotinfo.hpp:39
int nStyle
Definition: plotinfo.hpp:46
int nextStyle() const
Returns the ID of the next style.
Definition: plotinfo.hpp:67
std::vector< std::string > sConPointStyles
Definition: plotinfo.hpp:53
std::vector< std::string > sPointStyles
Definition: plotinfo.hpp:52
int nStyleMax
Definition: plotinfo.hpp:47
std::vector< std::string > sContStyles
Definition: plotinfo.hpp:51
int nSamples
Definition: plotinfo.hpp:45