Slic3r/xs/src/Print.hpp

32 lines
583 B
C++
Raw Permalink Normal View History

2013-12-20 04:36:42 +04:00
#ifndef slic3r_Print_hpp_
#define slic3r_Print_hpp_
#include <myinit.h>
2013-12-20 04:36:42 +04:00
#include <set>
namespace Slic3r {
enum PrintStep {
psInitExtruders, psSlice, psPerimeters, prPrepareInfill,
psInfill, psSupportMaterial, psSkirt, psBrim,
};
class PrintState
{
private:
std::set<PrintStep> _started;
std::set<PrintStep> _done;
public:
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-03 01:06:58 +04:00
void invalidate_all();
2013-12-20 04:36:42 +04:00
};
}
#endif