mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
Ported more Slic3r::GCode methods to XS
This commit is contained in:
parent
801f629fdc
commit
b4019bb438
9 changed files with 237 additions and 165 deletions
|
@ -11,8 +11,8 @@
|
|||
|
||||
void init_external_mp(ExPolygons islands);
|
||||
void init_layer_mp(ExPolygons islands);
|
||||
Clone<Polyline> travel_to(Point* point, Pointf* gcodegen_origin, Point* gcodegen_last_pos)
|
||||
%code{% RETVAL = THIS->travel_to(*point, *gcodegen_origin, *gcodegen_last_pos); %};
|
||||
Clone<Polyline> travel_to(GCode* gcode, Point* point)
|
||||
%code{% RETVAL = THIS->travel_to(*gcode, *point); %};
|
||||
|
||||
bool use_external_mp()
|
||||
%code{% RETVAL = THIS->use_external_mp; %};
|
||||
|
@ -51,6 +51,8 @@
|
|||
|
||||
bool has_path();
|
||||
void reset_path();
|
||||
std::string wipe(GCode* gcodegen, bool toolchange = false)
|
||||
%code{% RETVAL = THIS->wipe(*gcodegen, toolchange); %};
|
||||
|
||||
bool enable()
|
||||
%code{% RETVAL = THIS->enable; %};
|
||||
|
@ -69,8 +71,6 @@
|
|||
|
||||
Ref<Pointf> origin()
|
||||
%code{% RETVAL = &(THIS->origin); %};
|
||||
void _set_origin(Pointf* value)
|
||||
%code{% THIS->origin = *value; %};
|
||||
|
||||
Ref<FullPrintConfig> config()
|
||||
%code{% RETVAL = &(THIS->config); %};
|
||||
|
@ -136,15 +136,24 @@
|
|||
void set_elapsed_time(unsigned int value)
|
||||
%code{% THIS->elapsed_time = value; %};
|
||||
|
||||
bool last_pos_defined()
|
||||
%code{% RETVAL = THIS->last_pos_defined; %};
|
||||
bool last_pos_defined();
|
||||
Ref<Point> last_pos()
|
||||
%code{% RETVAL = &(THIS->last_pos); %};
|
||||
void set_last_pos(Point* value)
|
||||
%code{% THIS->last_pos = *value; THIS->last_pos_defined = true; %};
|
||||
%code{% RETVAL = &(THIS->last_pos()); %};
|
||||
void set_last_pos(Point* pos)
|
||||
%code{% THIS->set_last_pos(*pos); %};
|
||||
|
||||
double volumetric_speed()
|
||||
%code{% RETVAL = THIS->volumetric_speed; %};
|
||||
void set_volumetric_speed(double value)
|
||||
%code{% THIS->volumetric_speed = value; %};
|
||||
|
||||
void apply_print_config(PrintConfig* print_config)
|
||||
%code{% THIS->apply_print_config(*print_config); %};
|
||||
void set_origin(Pointf* pointf)
|
||||
%code{% THIS->set_origin(*pointf); %};
|
||||
std::string preamble();
|
||||
std::string retract(bool toolchange = false);
|
||||
std::string unretract();
|
||||
Clone<Pointf> point_to_gcode(Point* point)
|
||||
%code{% RETVAL = THIS->point_to_gcode(*point); %};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue