Avogadro
1.1.0
|
Class to embed the Python interpreter in Avogadro. More...
#include <avogadro/pythoninterpreter.h>
Public Member Functions | |
PythonInterpreter () | |
~PythonInterpreter () | |
void | setMolecule (Molecule *molecule) |
void | addSearchPath (const QString &path) |
QString | exec (const QString &command) |
QString | exec (const QString &command, boost::python::object local) |
QString | eval (const QString &string, boost::python::object local) |
Class to embed the Python interpreter in Avogadro.
This class is used to help embed the Python interpreter into C++ apps which wish to expose parts of the Avogadro API. Specifically instances of Avogadro classes (Molecule / GLWidget).
Currently all instances of this class share the same namespace.
Constructor
Deconstructor
QString Avogadro::PythonInterpreter::exec | ( | const QString & | command | ) |
command | string containing the python command to perform on the interpreter |
void Avogadro::PythonInterpreter::setMolecule | ( | Molecule * | molecule | ) |
set the molecule object