Rethought sla status indication.

This commit is contained in:
tamasmeszaros 2019-04-02 10:54:14 +02:00
parent c542413962
commit a3dcb6863e
4 changed files with 78 additions and 57 deletions

View file

@ -471,6 +471,15 @@ private:
// Estimated print time, material consumed.
SLAPrintStatistics m_print_statistics;
class StatusReporter {
double m_st = 0;
public:
void operator() (SLAPrint& p, double st, const std::string& msg,
unsigned flags = SlicingStatus::DEFAULT);
double status() const { return m_st; }
} m_report_status;
friend SLAPrintObject;
};