mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Refactoring: moved some low-level G-code generation methods to the new Slic3r::GCode::Base class
This commit is contained in:
@@ -28,6 +28,27 @@
|
||||
void normalize();
|
||||
};
|
||||
|
||||
%name{Slic3r::Config::GCode} class GCodeConfig {
|
||||
GCodeConfig();
|
||||
~GCodeConfig();
|
||||
bool has(t_config_option_key opt_key);
|
||||
SV* as_hash();
|
||||
SV* get(t_config_option_key opt_key);
|
||||
SV* get_at(t_config_option_key opt_key, int i);
|
||||
bool set(t_config_option_key opt_key, SV* value);
|
||||
bool set_deserialize(t_config_option_key opt_key, SV* str);
|
||||
std::string serialize(t_config_option_key opt_key);
|
||||
double get_abs_value(t_config_option_key opt_key);
|
||||
%name{get_abs_value_over}
|
||||
double get_abs_value(t_config_option_key opt_key, double ratio_over);
|
||||
void apply_print_config(PrintConfig* other)
|
||||
%code{% THIS->apply(*other, true); %};
|
||||
void apply_dynamic(DynamicPrintConfig* other)
|
||||
%code{% THIS->apply(*other, true); %};
|
||||
std::vector<std::string> get_keys()
|
||||
%code{% THIS->keys(&RETVAL); %};
|
||||
};
|
||||
|
||||
%name{Slic3r::Config::Print} class PrintConfig {
|
||||
PrintConfig();
|
||||
~PrintConfig();
|
||||
@@ -112,7 +133,6 @@
|
||||
%code{% THIS->apply(*other, true); %};
|
||||
std::vector<std::string> get_keys()
|
||||
%code{% THIS->keys(&RETVAL); %};
|
||||
std::string get_extrusion_axis();
|
||||
};
|
||||
|
||||
%package{Slic3r::Config};
|
||||
|
||||
Reference in New Issue
Block a user