 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
10 #include <pybind11/pytypes.h>
14 #include "../../wrapper/pycc/src/casters.h"
41 const QString &
name) noexcept(
false)
43 pybind11::object
instance = class_type();
44 py::list pyActions =
instance.attr(
"getActions")();
46 actions.reserve(pyActions.size());
48 for (
const py::handle &handle : pyActions)
62 QString
name = class_type.attr(
"__name__").cast<QString>();
std::vector< Runtime::RegisteredPlugin::Action > getActions() override
Definition: Runtime.cpp:54
ccCommandLineInterface * GetCmdLineInstance() noexcept
Definition: Runtime.cpp:77
PYBIND11_EMBEDDED_MODULE(ccinternals, m)
Definition: Runtime.cpp:117
py::object call_fn(PyThreadState *main_state, py::object callable, py::args args, py::kwargs kwargs)
Definition: Threading.h:79
pybind11::object mainIcon
Definition: Runtime.h:69
py::object getIcon() override
Definition: Runtime.cpp:61
PythonPluginTrampoline()
Definition: Runtime.cpp:52
pybind11::object instance
Definition: Runtime.h:67
ccGuiPythonInstance * GetInstance() noexcept
Definition: Runtime.cpp:72
void flush() const
Definition: Consoles.h:99
void unsetMainAppInterfaceInstance() noexcept
Unsets the app interface pointer.
Definition: Runtime.cpp:90
void setMainAppInterfaceInstance(ecvMainAppInterface *appInterface) noexcept(false)
Definition: Runtime.cpp:82
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
Definition: ccGuiPythonInstance.h:26
QString name
Name to be displayed in the UI.
Definition: Runtime.h:32
virtual py::object getIcon()
Definition: Runtime.cpp:37
void define_ccGUIPythonInstance(py::module &)
Definition: ccGuiPythonInstance.cpp:201
Interface that 'class-style' PythonPlugin must implement to be loaded.
Definition: Runtime.cpp:32
static RegisteredPlugin InstanciatePlugin(pybind11::object class_type) noexcept(false)
Definition: Runtime.h:60
Definition: Threading.h:37
Command line interface.
Definition: ecvCommandLineInterface.h:112
static ccGuiPythonInstance * s_pythonInstance
Definition: Runtime.cpp:68
pybind11::object icon
Optional path or (bytes, str) where str is the format.
Definition: Runtime.h:36
void unsetCmdLineInterfaceInstance() noexcept
Unsets the pointer to the cmdline app interface.
Definition: Runtime.cpp:107
static ccCommandLineInterface * s_cmdLineInstance
Definition: Runtime.cpp:70
void write(const char *messagePart)
Definition: Consoles.h:82
virtual std::vector< Runtime::RegisteredPlugin::Action > getActions()=0
static RegisteredPlugin InstanciatePlugin(pybind11::object class_type, const QString &name) noexcept(false)
Instanciate a plugin with a known name.
Definition: Runtime.h:40
pybind11::object target
The target python function (or method)
Definition: Runtime.h:34
QString name
Definition: Runtime.h:66
Definition: ccGuiPythonInstance.h:15
Definition: Runtime.cpp:49
static double module(T *vector)
Definition: utils.h:105
Action(QString name, pybind11::object target, pybind11::object icon=pybind11::none())
Definition: Runtime.h:26
bool isatty() const
Definition: Consoles.h:94
void setCmdLineInterfaceInstance(ccCommandLineInterface *cmdLine) noexcept
Definition: Runtime.cpp:99
Definition: Runtime.cpp:28
void define_ccCommandLine(py::module &)
Definition: ccCommandLine.cpp:23
std::vector< Action > actions
Definition: Runtime.h:68