Python interpreter with BBM module imported. More...
#include <bbm_python_interpreter.h>
Public Member Functions | |
| interpreter (void) | |
| Constructor: initializes BBM python interface. | |
| ~interpreter (void) | |
| Destructor releases scope and python interpreter appropriately. | |
| template<typename RET_TYPE > | |
| RET_TYPE | capture (const std::string &prog) const |
| Execute Python code within the BBM environment. | |
| void | execute (const std::string &prog) const |
| Execute Python code within the BBM environment. | |
Private Attributes | |
| dl_handle_t | _python |
| py::object | _scope |
Python interpreter with BBM module imported.
| CONF | = configuration of the BBM environment to use |
|
inline |
Constructor: initializes BBM python interface.
|
inline |
Destructor releases scope and python interpreter appropriately.
|
inline |
Execute Python code within the BBM environment.
| RET_TYPE | = type of the return type (need explicit casting) |
| prog | = string of python code to execute. |
Usage Example:
Returns a BsdfPtr objects to a Lambertian bsdf.
|
inline |
Execute Python code within the BBM environment.
| prog | = string of python code to execute. |
Usage Example:
Prints the default Lambertian bsdf.
|
private |
|
private |