Version: 9.12.0
Plot2d_AnalyticalParser Class Reference

#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_AnalyticalParserparser ()
 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_AnalyticalParsermyParser = 0
 instance of the Parser More...
 
static QString myScript = QString("")
 python script
More...
 

Constructor & Destructor Documentation

◆ ~Plot2d_AnalyticalParser()

Plot2d_AnalyticalParser::~Plot2d_AnalyticalParser ( )

◆ Plot2d_AnalyticalParser()

Plot2d_AnalyticalParser::Plot2d_AnalyticalParser ( )
private

Constructor.

Construct the Parser and initialize python interpritator.

References initScript(), myMainDict, and myMainMod.

Member Function Documentation

◆ calculate()

int Plot2d_AnalyticalParser::calculate ( const QString &  theExpr,
const double  theMin,
const double  theMax,
const int  theNbStep,
double **  theX,
double **  theY 
)

References myMainDict, myMainMod, and myScript.

◆ initScript()

void Plot2d_AnalyticalParser::initScript ( )
private

Initialize python script.

References myScript.

◆ parser()

Plot2d_AnalyticalParser * Plot2d_AnalyticalParser::parser ( )
static

Return the only instance of the Plot2d_AnalyticalParser.

Returns
instance of the Plot2d_AnalyticalParser

References myParser, and Plot2d_AnalyticalParser().

Member Data Documentation

◆ myMainDict

PyObject* Plot2d_AnalyticalParser::myMainDict
private

main python dictionary

◆ myMainMod

PyObject* Plot2d_AnalyticalParser::myMainMod
private

main python module

◆ myParser

Plot2d_AnalyticalParser * Plot2d_AnalyticalParser::myParser = 0
staticprivate

instance of the Parser

The only one instance of Parser.

◆ myScript

QString Plot2d_AnalyticalParser::myScript = QString("")
staticprivate

python script


The documentation for this class was generated from the following files: