2013-12-20 00:36:42 +00:00
|
|
|
#ifndef slic3r_Print_hpp_
|
|
|
|
#define slic3r_Print_hpp_
|
|
|
|
|
|
|
|
#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-02 21:06:58 +00:00
|
|
|
void invalidate_all();
|
2013-12-20 00:36:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|