2014-04-07 23:42:29 +00:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
%{
|
2015-12-07 23:39:54 +00:00
|
|
|
#include <xsinit.h>
|
2014-08-03 17:42:29 +00:00
|
|
|
#include "libslic3r/Extruder.hpp"
|
2014-04-07 23:42:29 +00:00
|
|
|
%}
|
|
|
|
|
|
|
|
%name{Slic3r::Extruder} class Extruder {
|
2015-11-04 19:48:44 +00:00
|
|
|
Extruder(unsigned int id, GCodeConfig *config);
|
2014-04-07 23:42:29 +00:00
|
|
|
~Extruder();
|
|
|
|
void reset();
|
|
|
|
double extrude(double dE);
|
2014-10-21 18:16:45 +00:00
|
|
|
double retract(double length, double restart_extra);
|
|
|
|
double unretract();
|
2014-10-21 18:36:52 +00:00
|
|
|
double e_per_mm(double mm3_per_mm);
|
|
|
|
double extruded_volume();
|
|
|
|
double used_filament();
|
2014-04-28 20:02:34 +00:00
|
|
|
|
2015-11-04 19:48:44 +00:00
|
|
|
unsigned int id()
|
2014-04-07 23:42:29 +00:00
|
|
|
%code%{ RETVAL = THIS->id; %};
|
2014-04-28 20:02:34 +00:00
|
|
|
|
2014-10-25 08:42:07 +00:00
|
|
|
double E()
|
2014-04-07 23:42:29 +00:00
|
|
|
%code%{ RETVAL = THIS->E; %};
|
2014-10-25 08:42:07 +00:00
|
|
|
double set_E(double val)
|
2014-04-07 23:42:29 +00:00
|
|
|
%code%{ RETVAL = THIS->E = val; %};
|
2014-10-25 08:42:07 +00:00
|
|
|
double absolute_E()
|
2014-04-07 23:42:29 +00:00
|
|
|
%code%{ RETVAL = THIS->absolute_E; %};
|
2014-10-25 08:42:07 +00:00
|
|
|
double set_absolute_E(double val)
|
2014-04-07 23:42:29 +00:00
|
|
|
%code%{ RETVAL = THIS->absolute_E = val; %};
|
2014-10-25 08:42:07 +00:00
|
|
|
double retracted()
|
2014-04-07 23:42:29 +00:00
|
|
|
%code%{ RETVAL = THIS->retracted; %};
|
2014-10-25 08:42:07 +00:00
|
|
|
double set_retracted(double val)
|
2014-04-07 23:42:29 +00:00
|
|
|
%code%{ RETVAL = THIS->retracted = val; %};
|
2014-10-25 08:42:07 +00:00
|
|
|
double restart_extra()
|
2014-04-07 23:42:29 +00:00
|
|
|
%code%{ RETVAL = THIS->restart_extra; %};
|
2014-10-25 08:42:07 +00:00
|
|
|
double set_restart_extra(double val)
|
2014-04-07 23:42:29 +00:00
|
|
|
%code%{ RETVAL = THIS->restart_extra = val; %};
|
2014-10-21 18:36:52 +00:00
|
|
|
double e_per_mm3()
|
|
|
|
%code%{ RETVAL = THIS->e_per_mm3; %};
|
|
|
|
double retract_speed_mm_min()
|
|
|
|
%code%{ RETVAL = THIS->retract_speed_mm_min; %};
|
2014-04-28 20:02:34 +00:00
|
|
|
|
2014-10-25 08:42:07 +00:00
|
|
|
double filament_diameter();
|
|
|
|
double extrusion_multiplier();
|
|
|
|
double retract_length();
|
|
|
|
double retract_lift();
|
|
|
|
int retract_speed();
|
|
|
|
double retract_restart_extra();
|
|
|
|
double retract_length_toolchange();
|
|
|
|
double retract_restart_extra_toolchange();
|
2014-04-07 23:42:29 +00:00
|
|
|
};
|