mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-22 16:21:24 -06:00
added total cost/weight to Extruder statistics, mocked up addendum to status bar change.
This commit is contained in:
parent
3846d9e734
commit
203a965b3d
5 changed files with 30 additions and 6 deletions
|
|
@ -192,7 +192,7 @@ class Print
|
|||
PrintRegionPtrs regions;
|
||||
PlaceholderParser placeholder_parser;
|
||||
// TODO: status_cb
|
||||
double total_used_filament, total_extruded_volume;
|
||||
double total_used_filament, total_extruded_volume, total_cost, total_weight;
|
||||
std::map<size_t,float> filament_stats;
|
||||
PrintState<PrintStep> state;
|
||||
|
||||
|
|
|
|||
|
|
@ -276,5 +276,26 @@ Print::total_extruded_volume(...)
|
|||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
|
||||
double
|
||||
Print::total_weight(...)
|
||||
CODE:
|
||||
if (items > 1) {
|
||||
THIS->total_weight = (double)SvNV(ST(1));
|
||||
}
|
||||
RETVAL = THIS->total_weight;
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
double
|
||||
Print::total_cost(...)
|
||||
CODE:
|
||||
if (items > 1) {
|
||||
THIS->total_cost = (double)SvNV(ST(1));
|
||||
}
|
||||
RETVAL = THIS->total_cost;
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
%}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue