2013-12-20 00:36:42 +00:00
|
|
|
%module{Slic3r::XS};
|
|
|
|
|
|
|
|
%{
|
|
|
|
#include <myinit.h>
|
|
|
|
#include "Print.hpp"
|
2014-05-02 12:08:44 +00:00
|
|
|
#include "perlglue.hpp"
|
2013-12-20 00:36:42 +00:00
|
|
|
%}
|
|
|
|
|
|
|
|
%name{Slic3r::Print::State} class PrintState {
|
|
|
|
PrintState();
|
|
|
|
~PrintState();
|
|
|
|
bool started(PrintStep step) const;
|
|
|
|
bool done(PrintStep step) const;
|
|
|
|
void set_started(PrintStep step);
|
|
|
|
void set_done(PrintStep step);
|
|
|
|
void invalidate(PrintStep step);
|
2014-01-02 21:06:58 +00:00
|
|
|
void invalidate_all();
|
2013-12-20 00:36:42 +00:00
|
|
|
%{
|
|
|
|
|
|
|
|
%}
|
|
|
|
};
|
|
|
|
|
|
|
|
%package{Slic3r::Print::State};
|
|
|
|
%{
|
|
|
|
|
|
|
|
IV
|
|
|
|
_constant()
|
|
|
|
ALIAS:
|
|
|
|
STEP_INIT_EXTRUDERS = psInitExtruders
|
|
|
|
STEP_SLICE = psSlice
|
|
|
|
STEP_PERIMETERS = psPerimeters
|
|
|
|
STEP_PREPARE_INFILL = prPrepareInfill
|
|
|
|
STEP_INFILL = psInfill
|
|
|
|
STEP_SUPPORTMATERIAL = psSupportMaterial
|
|
|
|
STEP_SKIRT = psSkirt
|
|
|
|
STEP_BRIM = psBrim
|
|
|
|
PROTOTYPE:
|
|
|
|
CODE:
|
|
|
|
RETVAL = ix;
|
|
|
|
OUTPUT: RETVAL
|
|
|
|
|
|
|
|
%}
|
|
|
|
|