mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
Partial Automation of getting Gcode placeholders
Included pre-generated files specific to Orca rather than PS provided files Original Commit: prusa3d/PrusaSlicer@55d5921 Co-authored-by: YuSanka <yusanka@gmail.com>
This commit is contained in:
parent
05e159037f
commit
6d19d6207a
14 changed files with 362 additions and 109 deletions
|
@ -157,6 +157,8 @@ struct LayerResult {
|
|||
};
|
||||
|
||||
class GCode {
|
||||
#define GET_CUSTOM_GCODE_PLACEHOLDERS 1
|
||||
|
||||
public:
|
||||
GCode() :
|
||||
m_origin(Vec2d::Zero()),
|
||||
|
@ -185,6 +187,13 @@ public:
|
|||
{}
|
||||
~GCode() = default;
|
||||
|
||||
#if GET_CUSTOM_GCODE_PLACEHOLDERS
|
||||
std::map<std::string, DynamicConfig> g_code_placeholders_map;
|
||||
const std::map<std::string, DynamicConfig>& get_g_code_placeholders_map() { return g_code_placeholders_map; }
|
||||
const DynamicConfig& get_placeholder_parser_config() const { return m_placeholder_parser_integration.parser.config(); }
|
||||
const DynamicConfig& get_placeholder_output_config() const { return m_placeholder_parser_integration.output_config; }
|
||||
#endif
|
||||
|
||||
// throws std::runtime_exception on error,
|
||||
// throws CanceledException through print->throw_if_canceled().
|
||||
void do_export(Print* print, const char* path, GCodeProcessorResult* result = nullptr, ThumbnailsGeneratorCallback thumbnail_cb = nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue