#include <Plot2d_AnalyticalParser.h>
Public Member Functions | |
~Plot2d_AnalyticalParser () | |
int | calculate (const QString &, const double, const double, const int, double **, double **) |
Static Public Member Functions | |
static Plot2d_AnalyticalParser * | parser () |
Return the only instance of the Plot2d_AnalyticalParser. More... | |
Private Member Functions | |
Plot2d_AnalyticalParser () | |
Constructor. More... | |
void | initScript () |
Initialize python script. More... | |
Private Attributes | |
PyObject * | myMainMod |
main python module More... | |
PyObject * | myMainDict |
main python dictionary More... | |
Static Private Attributes | |
static Plot2d_AnalyticalParser * | myParser = 0 |
instance of the Parser More... | |
static QString | myScript = QString("") |
python script More... | |
Plot2d_AnalyticalParser::~Plot2d_AnalyticalParser | ( | ) |
|
private |
Construct the Parser and initialize python interpritator.
References initScript(), myMainDict, and myMainMod.
int Plot2d_AnalyticalParser::calculate | ( | const QString & | theExpr, |
const double | theMin, | ||
const double | theMax, | ||
const int | theNbStep, | ||
double ** | theX, | ||
double ** | theY | ||
) |
References myMainDict, myMainMod, myScript, and obj.
|
private |
References myScript.
|
static |
References myParser, and Plot2d_AnalyticalParser().
|
private |
|
private |
|
staticprivate |
The only one instance of Parser.
|
staticprivate |