time estimation shown in GUI after gcode export

This commit is contained in:
Enrico Turri 2017-12-11 11:11:54 +01:00
parent a0a503e4a8
commit bea9628be0
5 changed files with 23 additions and 55 deletions

View file

@ -233,14 +233,14 @@ public:
PrintRegionPtrs regions;
PlaceholderParser placeholder_parser;
// TODO: status_cb
double total_used_filament, total_extruded_volume, total_cost, total_weight;
std::map<size_t,float> filament_stats;
double total_used_filament, total_extruded_volume, total_cost, total_weight, estimated_print_time;
std::map<size_t, float> filament_stats;
PrintState<PrintStep, psCount> state;
// ordered collections of extrusion paths to build skirt loops and brim
ExtrusionEntityCollection skirt, brim;
Print() : total_used_filament(0), total_extruded_volume(0) { restart(); }
Print() : total_used_filament(0), total_extruded_volume(0), estimated_print_time(0) { restart(); }
~Print() { clear_objects(); }
// methods for handling objects