OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::PyPluginCommonTrampoline< Base > Class Template Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/plugin/PyPluginTrampoline.hpp>

Inheritance diagram for Slic3r::PyPluginCommonTrampoline< Base >:
Collaboration diagram for Slic3r::PyPluginCommonTrampoline< Base >:

Public Member Functions

std::string get_name () const override
bool has_config_ui () const override
std::string get_config_ui () const override
nlohmann::json get_default_config () const override
void on_load () override
void on_unload () override
void on_cancelled () override
void on_lifecycle_event (LifecycleEvent event, const LifecycleEventContext &ctx) override

Detailed Description

template<class Base>
class Slic3r::PyPluginCommonTrampoline< Base >

Member Function Documentation

◆ get_config_ui()

template<class Base>
std::string Slic3r::PyPluginCommonTrampoline< Base >::get_config_ui ( ) const
inlineoverride
163 {
165 [] {},
168 Base,
170 }
#define ORCA_PY_OVERRIDE_AUDITED(audit_setup, override_macro, ret, base, name,...)
Definition PyPluginTrampoline.hpp:55
Definition PyPluginTrampoline.hpp:141
std::string get_config_ui() const override
Definition PyPluginTrampoline.hpp:162

References get_config_ui(), and ORCA_PY_OVERRIDE_AUDITED.

Referenced by get_config_ui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_default_config()

template<class Base>
nlohmann::json Slic3r::PyPluginCommonTrampoline< Base >::get_default_config ( ) const
inlineoverride
180 {
183 try {
184 pybind11::function override = pybind11::get_override(static_cast<const Base*>(this), "get_default_config");
185 if (!override)
187
189 if (!config.is_object()) {
191 << "Plugin capability '" << this->name() << "' of plugin '" << this->audit_plugin_key()
192 << "': get_default_config() returned " << config.type_name() << ", not an object; restoring an empty config";
194 }
195 return config;
198 throw;
199 }
200 }
#define ORCA_PY_AUDIT_SCOPE()
Definition PyPluginTrampoline.hpp:50
void log_python_exception_keep(pybind11::error_already_set &err)
Definition PythonInterpreter.cpp:96
nlohmann::json py_to_json(const pybind11::handle &o, int depth=0)
Definition PluginFsUtils.hpp:64

References Slic3r::log_python_exception_keep(), ORCA_PY_AUDIT_SCOPE, and Slic3r::py_to_json().

Here is the call graph for this function:

◆ get_name()

template<class Base>
std::string Slic3r::PyPluginCommonTrampoline< Base >::get_name ( ) const
inlineoverride
146 {
148 }
std::string get_name() const override
Definition PyPluginTrampoline.hpp:145

References get_name(), and ORCA_PY_OVERRIDE_AUDITED.

Referenced by get_name().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ has_config_ui()

template<class Base>
bool Slic3r::PyPluginCommonTrampoline< Base >::has_config_ui ( ) const
inlineoverride
153 {
155 [] {},
157 bool,
158 Base,
160 }
bool has_config_ui() const override
Definition PyPluginTrampoline.hpp:152

References has_config_ui(), and ORCA_PY_OVERRIDE_AUDITED.

Referenced by has_config_ui().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_cancelled()

template<class Base>
void Slic3r::PyPluginCommonTrampoline< Base >::on_cancelled ( )
inlineoverride
213 {
215 }
void on_cancelled() override
Definition PyPluginTrampoline.hpp:212

References on_cancelled(), and ORCA_PY_OVERRIDE_AUDITED.

Referenced by on_cancelled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_lifecycle_event()

template<class Base>
void Slic3r::PyPluginCommonTrampoline< Base >::on_lifecycle_event ( LifecycleEvent event,
const LifecycleEventContext & ctx )
inlineoverride
218 {
220 }
void on_lifecycle_event(LifecycleEvent event, const LifecycleEventContext &ctx) override
Definition PyPluginTrampoline.hpp:217

References on_lifecycle_event(), and ORCA_PY_OVERRIDE_AUDITED.

Referenced by on_lifecycle_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_load()

template<class Base>
void Slic3r::PyPluginCommonTrampoline< Base >::on_load ( )
inlineoverride
203 {
205 }
void on_load() override
Definition PyPluginTrampoline.hpp:202

References on_load(), and ORCA_PY_OVERRIDE_AUDITED.

Referenced by on_load().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_unload()

template<class Base>
void Slic3r::PyPluginCommonTrampoline< Base >::on_unload ( )
inlineoverride
208 {
210 }
void on_unload() override
Definition PyPluginTrampoline.hpp:207

References on_unload(), and ORCA_PY_OVERRIDE_AUDITED.

Referenced by on_unload().

Here is the call graph for this function:
Here is the caller graph for this function:

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