 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
16 #include <pybind11/eval.h>
17 #include <pybind11/pybind11.h>
56 void executeCode(
const std::string &code, QListWidget *output);
70 template <pybind11::eval_mode mode>
71 void executeCodeString(
const std::string &code,
76 bool m_isExecuting{
false};
81 void *m_libPythonHandle{
nullptr};
const wchar_t * pythonPath() const
Returns the pythonPath.
Definition: PythonConfig.cpp:158
void executeStatementWithState(const std::string &code, QListWidget *output, PythonInterpreter::State &state)
Definition: PythonInterpreter.cpp:137
constexpr Version PythonVersion(PY_MAJOR_VERSION, PY_MINOR_VERSION, PY_MICRO_VERSION)
Python Version the plugin was compiled against.
void finalize()
Definition: PythonInterpreter.cpp:298
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
Definition: PythonConfig.h:183
Definition: PythonInterpreter.h:32
Definition: PythonStdErrOutRedirect.h:28
Redirects messages to ACloudViewer's console output.
Definition: Consoles.h:76
const double * e
Definition: essential_matrix_poly.h:10
const wchar_t * pythonHome() const
Returns the pythonHome.
Definition: PythonConfig.cpp:153
static py::dict CreateGlobals()
Definition: PythonInterpreter.cpp:37
void initialize(const PythonConfig &config)
Definition: PythonInterpreter.cpp:173
void executeFunction(const pybind11::object &function)
Definition: PythonInterpreter.cpp:150
Definition: PythonConfig.h:71
void executeCodeWithState(const std::string &code, QListWidget *output, PythonInterpreter::State &state)
Definition: PythonInterpreter.cpp:130
State()
Definition: PythonInterpreter.cpp:46
constexpr Rgb orange(MAX, MAX/2, 0)
PluginLogger< CVLog::LOG_STANDARD > plgPrint
Definition: Utilities.h:100
bool executeFile(const std::string &filePath)
Execution functions (and slots)
Definition: PythonInterpreter.cpp:52
PythonInterpreter(QObject *parent=nullptr)
Definition: PythonInterpreter.cpp:50
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
pybind11::object locals
Definition: PythonInterpreter.h:42
PluginLogger< CVLog::LOG_WARNING > plgWarning
Definition: Utilities.h:102
pybind11::dict globals
Definition: PythonInterpreter.h:41
Definition: ccGuiPythonInstance.h:15
constexpr Rgb red(MAX, 0, 0)
static bool IsInitialized()
Definition: PythonInterpreter.cpp:293
uint16_t versionMajor
Definition: PythonConfig.h:58
Variable state.
Definition: PythonInterpreter.h:38
void executeCode(const std::string &code, QListWidget *output)
Definition: PythonInterpreter.cpp:144
const PythonConfigPaths & config() const
Definition: PythonInterpreter.cpp:320
uint16_t versionMinor
Definition: PythonConfig.h:59
bool isExecuting() const
Definition: PythonInterpreter.cpp:315