29#include "../ui/error.hpp"
30#include "../utils/tools.hpp"
31#include "../structures.hpp"
32#include "../interval.hpp"
182 void rangeByPercentage(
double* dData,
size_t nLength,
double dLowerPercentage,
double dUpperPercentage, std::vector<double>& vRanges);
187 void setParams(
const std::string& __sCmd,
int nType =
ALL);
188 std::string
getParams(
bool asstr =
false)
const;
293 if (nDir >= 0 && nDir < 3)
299 inline unsigned short getSlices(
unsigned int nDir = 0)
const
386 if (!i && !
_AddAxes[i].sLabel.length())
388 else if (!
_AddAxes[i].sLabel.length())
410 if (nAxis >= 0 && nAxis < 4)
418 if (nAxis >= 0 && nAxis < 4)
This class implements the basic input/ output file system and provides functionalities to work with f...
This class represents a single interval in code providing reading access functionality.
mu::value_type back() const
Return the last element in the interval.
void reset(const std::string &sDef)
Reset the interval with a new definition.
mu::value_type front() const
Return the first element in the interval.
This class contains all the plot settings usable by the plotting algorithm.
double floatSettings[FLOAT_SETTING_SIZE]
int intSettings[INT_SETTING_SIZE]
std::string getColorSchemeMedium(const std::string &_sAddOpt="") const
bool getInvertion(int i=0) const
std::string getContColors() const
@ STR_BACKGROUNDCOLORSCHEME
PlotData & operator=(const PlotData &)=delete
bool getRangeSetting(int i=0) const
void setSamples(int _nSamples)
Change the number of samples.
PlotData(const PlotData &)=delete
int getAnimateSamples() const
std::string getGridStyle() const
void setFileName(std::string _sFileName)
Change the output file name.
bool bDefaultAxisLabels[3]
std::string getCustomTick(int nAxis=0) const
const std::vector< Line > & getHLines() const
const std::vector< Line > & getVLines() const
std::string getSettings(StringPlotSetting setting) const
int getSettings(IntPlotSetting setting) const
std::string sCustomTicks[4]
double getSettings(FloatPlotSetting setting) const
std::string getColors() const
unsigned short getSlices(unsigned int nDir=0) const
std::string stringSettings[STR_SETTING_SIZE]
std::string getAxisLabel(size_t axis) const
Return the axis label associated to the selected axis.
const int * getTargetGUI() const
std::string getLineStyles() const
std::string sTickTemplate[4]
IntervalSet & getRanges()
unsigned short nSlices[3]
double getAxisScale(int i=0) const
void setFont(const std::string &Font)
void replaceControlChars(std::string &sString)
Replaces tab and newlines correspondingly.
TimeAxis getTimeAxis(unsigned int i=0) const
void rangeByPercentage(double *dData, size_t nLength, double dLowerPercentage, double dUpperPercentage, std::vector< double > &vRanges)
std::vector< Line > _lVLines
bool logicalSettings[LOG_SETTING_SIZE]
void setGlobalComposeParams(const std::string &__sCmd)
double getOrigin(int nDir=0) const
void reset()
Resets all settings to the initialisation stage.
std::string sAxisLabels[3]
void setParams(const std::string &__sCmd, int nType=ALL)
Identifies parameters and values in the passed parameter string and updates the selected type of the ...
std::string getAxisbind(unsigned int i) const
bool getSettings(LogicalPlotSetting setting) const
int getGivenRanges() const
std::string getParams(bool asstr=false) const
Return the internal plotting parameters as a human-readable string. Can be converted to an internal s...
std::string getColorScheme(const std::string &_sAddOpt="") const
void deleteData(bool bGraphFinished=false)
Delete the internal per-plot data (i.e. weak reset).
double getRotateAngle(int _i=0) const
Axis getAddAxis(unsigned int i=0) const
PlotData()
PlotData constructor. Calls PlotData::reset() for initialisation.
std::string getTickTemplate(int nAxis=0) const
std::string getColorSchemeLight(const std::string &_sAddOpt="") const
void setAddAxis(unsigned int i, const Interval &_ivl)
std::vector< Line > _lHlines
void setLocalComposeParams(const std::string &__sCmd)
std::string getFineGridStyle() const
bool getLogscale(size_t i) const
std::string removeSurroundingQuotationMarks(const std::string &sString)
Removes surrounding quotation marks.
bool isnan(const value_type &v)
const char * SECAXIS_DEFAULT_COLOR
Structure for the axes in plots.
This class represents a set of intervals used together for calculations and simulations.
Structure for describing time axes in plots.