NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
plotdata.cpp File Reference
#include <mgl2/mgl.h>
#include <map>
#include <utility>
#include "plotdata.hpp"
#include "../../kernel.hpp"
Include dependency graph for plotdata.cpp:

Go to the source code of this file.

Classes

struct  AxisLabels
 Structure for simplification of the standard axis labels. More...
 

Macros

#define STYLES_COUNT   20
 

Functions

bool isNotEmptyExpression (const std::string &sExpr)
 This function checks, whether the passed expression is non-empty (i.e. it contains more than white spaces). More...
 
static mu::value_typeevaluateNumerical (int &nResults, std::string sExpression)
 Static helper function to evaluate numerical parameters. More...
 
static bool checkColorChars (const std::string &sColorSet)
 Static helper function to evaluate the passed color characters for their validness. More...
 
static bool checkLineChars (const std::string &sLineSet)
 Static helper function to evaluate the passed line type characters for their validness. More...
 
static bool checkPointChars (const std::string &sPointSet)
 Static heloer function to evaluate the passeed point type characters for their validness. More...
 
static std::map< std::string, std::pair< PlotData::LogicalPlotSetting, PlotData::ParamType > > getGenericSwitches ()
 Static helper function to create a map containing the simple logical plot settings. More...
 
static std::map< std::string, std::string > getColorSchemes ()
 Static helper function to create a map containing all color schemes and their corresponding color characters. More...
 
static std::map< CoordinateSystem, AxisLabelsgetLabelDefinitions ()
 Static helper function to create a map containing the standard axis labels for each coordinate system. More...
 

Variables

mglGraph _fontData
 
const char * SECAXIS_DEFAULT_COLOR = "k"
 

Macro Definition Documentation

◆ STYLES_COUNT

#define STYLES_COUNT   20

Definition at line 24 of file plotdata.cpp.

Function Documentation

◆ checkColorChars()

static bool checkColorChars ( const std::string &  sColorSet)
static

Static helper function to evaluate the passed color characters for their validness.

Parameters
sColorSetconst std::string&
Returns
bool

Definition at line 65 of file plotdata.cpp.

Referenced by PlotData::setParams().

◆ checkLineChars()

static bool checkLineChars ( const std::string &  sLineSet)
static

Static helper function to evaluate the passed line type characters for their validness.

Parameters
sLineSetconst std::string&
Returns
bool

Definition at line 97 of file plotdata.cpp.

Referenced by PlotData::setParams().

◆ checkPointChars()

static bool checkPointChars ( const std::string &  sPointSet)
static

Static heloer function to evaluate the passeed point type characters for their validness.

Parameters
sPointSetconst std::string&
Returns
bool

Definition at line 120 of file plotdata.cpp.

Referenced by PlotData::setParams().

◆ evaluateNumerical()

static mu::value_type * evaluateNumerical ( int &  nResults,
std::string  sExpression 
)
static

Static helper function to evaluate numerical parameters.

Parameters
nResultsint&
sExpressionstd::string
Returns
mu::value_type*

Definition at line 42 of file plotdata.cpp.

References MemoryManager::containsTablesOrClusters(), mu::ParserBase::Eval(), getDataElements(), NumeReKernel::getInstance(), NumeReKernel::getMemoryManager(), NumeReKernel::getParser(), and mu::ParserBase::SetExpr().

Referenced by PlotData::setParams().

Here is the call graph for this function:

◆ getColorSchemes()

static std::map< std::string, std::string > getColorSchemes ( )
static

Static helper function to create a map containing all color schemes and their corresponding color characters.

Returns
std::map<std::string, std::string>

Definition at line 181 of file plotdata.cpp.

Referenced by PlotData::getParams(), and PlotData::setParams().

◆ getGenericSwitches()

◆ getLabelDefinitions()

static std::map< CoordinateSystem, AxisLabels > getLabelDefinitions ( )
static

Static helper function to create a map containing the standard axis labels for each coordinate system.

Returns
std::map<CoordinateSystem, AxisLabels>

Definition at line 2497 of file plotdata.cpp.

References CARTESIAN, POLAR_PZ, POLAR_RP, POLAR_RZ, SPHERICAL_PT, SPHERICAL_RP, and SPHERICAL_RT.

Referenced by PlotData::getAxisLabel().

◆ isNotEmptyExpression()

bool isNotEmptyExpression ( const string &  sExpr)

This function checks, whether the passed expression is non-empty (i.e. it contains more than white spaces).

Parameters
sExprconst string&
Returns
bool

Definition at line 2275 of file dataaccess.cpp.

Referenced by FlowCtrl::checkFlowControlArgument(), cmd_plotting(), Plot::createSubPlotSet(), differentiate(), evalPoints(), findExtrema(), findZeroes(), readAndParseIntervals(), and readAndParseLegacyIntervals().

Variable Documentation

◆ _fontData

mglGraph _fontData
extern

Definition at line 40 of file kernel.cpp.

Referenced by PlotData::reset(), and PlotData::setParams().

◆ SECAXIS_DEFAULT_COLOR

const char* SECAXIS_DEFAULT_COLOR = "k"