|
NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <wx/image.h>#include "plotting.hpp"#include "plotasset.hpp"#include "../maths/parser_functions.hpp"#include "../../kernel.hpp"Go to the source code of this file.
Macros | |
| #define | APPR_ONE 0.9999999 |
| #define | APPR_TWO 1.9999999 |
| #define | STYLES_COUNT 20 |
Functions | |
| std::string | removeQuotationMarks (const std::string &) |
| This function simply removes the surrounding quotation marks. More... | |
| static bool | isPlot1D (const std::string &sCommand) |
| static bool | isPlot3D (const std::string &sCommand) |
| static bool | isMesh2D (const std::string &sCommand) |
| static bool | isMesh3D (const std::string &sCommand) |
| static bool | isVect2D (const std::string &sCommand) |
| static bool | isVect3D (const std::string &sCommand) |
| static bool | isDraw (const std::string &sCommand) |
| static bool | has3DView (const std::string &sCommand) |
| void | createPlot (std::string &sCmd, MemoryManager &_data, mu::Parser &_parser, Settings &_option, FunctionDefinitionManager &_functions, PlotData &_pData) |
| Wrapper function for creating plots. Will create an instance of the Plot class, which will handle the plotting process. More... | |
| mglData | duplicatePoints (const mglData &_mData) |
| This static function is a fix for the MathGL bug, which connects points outside of the data range. More... | |
| static void | writeTiff (mglGraph *_graph, const string &sOutputName) |
| This static function uses wxWidgets functionality to add TIFF exporting support to MathGL. More... | |
| static mglData | scaleSecondaryToPrimaryInterval (const mglData &_mData, const Interval &ivl, const Interval &secIvl) |
| Simple helper function for Plot::createStdPlot. More... | |
| static void | applyNiceAxis (Interval &ivl, bool isLogarithmic) |
| Apply the needed interval modification to switch to an optical "nice" and well readable interval. More... | |
| static bool | hasSecAxisBox (const PlotData &_pData, const PlotInfo &_pInfo) |
| Static helper function to determine, whether a box is needed due to secondary axes. More... | |
Variables | |
| DefaultVariables | _defVars |
| mglGraph | _fontData |
| #define APPR_ONE 0.9999999 |
Definition at line 93 of file plotting.cpp.
| #define APPR_TWO 1.9999999 |
Definition at line 94 of file plotting.cpp.
| #define STYLES_COUNT 20 |
Definition at line 95 of file plotting.cpp.
|
static |
Apply the needed interval modification to switch to an optical "nice" and well readable interval.
| ivl | Interval& |
| isLogarithmic | bool |
Definition at line 5123 of file plotting.cpp.
References date::abs(), date::ceil(), date::floor(), Interval::front(), intPower(), mu::isnan(), Interval::max(), max, Interval::min(), Interval::range(), and Interval::reset().
Referenced by Plot::passRangesToGraph().
| void createPlot | ( | std::string & | sCmd, |
| MemoryManager & | _data, | ||
| mu::Parser & | _parser, | ||
| Settings & | _option, | ||
| FunctionDefinitionManager & | _functions, | ||
| PlotData & | _pData | ||
| ) |
Wrapper function for creating plots. Will create an instance of the Plot class, which will handle the plotting process.
| sCmd | std::string& |
| _data | Datafile& |
| _parser | mu::Parser& |
| _option | Settings& |
| _functions | Define& |
| _pData | PlotData& |
Definition at line 113 of file plotting.cpp.
References Plot::createGraphHelper(), NumeRe::WindowManager::createWindow(), PlotData::deleteData(), NumeReKernel::getInstance(), PlotData::getSettings(), PlotData::getTargetGUI(), NumeRe::WindowManager::getWindowInformation(), NumeReKernel::getWindowManager(), SyntaxError::INVALID_WINDOW_ID, SyntaxError::INVALID_WINDOW_ITEM_ID, PlotData::LOG_OPENIMAGE, PlotData::LOG_SILENTMODE, NumeRe::WindowInformation::nStatus, NumeRe::Window::setItemGraph(), NumeRe::STATUS_RUNNING, and NumeRe::WindowInformation::window.
Referenced by cmd_plotting().
| mglData duplicatePoints | ( | const mglData & | _mData | ) |
This static function is a fix for the MathGL bug, which connects points outside of the data range.
| _mData | const mglData& |
Definition at line 157 of file plotting.cpp.
Referenced by Plot::plotstd(), and Plot::plotstd3d().
|
static |
Definition at line 81 of file plotting.cpp.
References isMesh3D(), and isPlot3D().
Referenced by Plot::createPlotOrAnimation().
Static helper function to determine, whether a box is needed due to secondary axes.
Definition at line 6038 of file plotting.cpp.
References CARTESIAN, Interval::front(), PlotData::getAddAxis(), PlotData::getSettings(), PlotData::INT_COORDS, mu::isnan(), isPlot1D(), Axis::ivl, PlotData::LOG_SCHEMATIC, PlotInfo::sCommand, XCOORD, and YCOORD.
Referenced by Plot::applyGrid(), Plot::CoordSettings(), and Plot::getLabelPosition().
|
static |
Definition at line 76 of file plotting.cpp.
Referenced by Plot::createSubPlotSet().
|
static |
Definition at line 45 of file plotting.cpp.
Referenced by Plot::createPlotOrAnimation(), Plot::extractDataValues(), Plot::fillData(), Plot::fitPlotRanges(), and Plot::prepareMemory().
|
static |
Definition at line 56 of file plotting.cpp.
Referenced by Plot::CoordSettings(), Plot::createPlotOrAnimation(), Plot::fillData(), has3DView(), and Plot::prepareMemory().
|
static |
Definition at line 35 of file plotting.cpp.
Referenced by Plot::CoordSettings(), Plot::createPlotOrAnimation(), Plot::extractDataValues(), Plot::fillData(), Plot::fitPlotRanges(), hasSecAxisBox(), and Plot::prepareMemory().
|
static |
Definition at line 40 of file plotting.cpp.
Referenced by Plot::CoordSettings(), Plot::extractDataValues(), Plot::fillData(), Plot::fitPlotRanges(), has3DView(), and Plot::prepareMemory().
|
static |
Definition at line 66 of file plotting.cpp.
Referenced by Plot::CoordSettings(), Plot::createPlotOrAnimation(), Plot::extractDataValues(), Plot::fillData(), and Plot::prepareMemory().
|
static |
Definition at line 71 of file plotting.cpp.
Referenced by Plot::CoordSettings(), Plot::createPlotOrAnimation(), Plot::fillData(), and Plot::prepareMemory().
| std::string removeQuotationMarks | ( | const std::string & | sString | ) |
This function simply removes the surrounding quotation marks.
| sString | const std::string& |
Definition at line 79 of file stringfunctions.hpp.
Referenced by Plot::createDataLegends(), and Plot::createStdPlot().
|
static |
Simple helper function for Plot::createStdPlot.
Definition at line 1372 of file plotting.cpp.
References Interval::min(), and Interval::range().
Referenced by Plot::createStdPlot().
|
static |
This static function uses wxWidgets functionality to add TIFF exporting support to MathGL.
| _graph | mglGraph* |
| sOutputName | const string& |
Definition at line 199 of file plotting.cpp.
Referenced by Plot::Plot().
|
extern |
Definition at line 39 of file command_implementations.cpp.
Referenced by Plot::createPlotOrAnimation(), Plot::createSubPlotSet(), and Plot::fillData().
|
extern |
Definition at line 40 of file kernel.cpp.
Referenced by Plot::applyPlotSizeAndQualitySettings().