mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
ENH: optimize layer time(log) display
Change-Id: Ibb43561f11dfd1c63b3a0da75a3cb10b95afc71e
This commit is contained in:
parent
e69c0ed7f6
commit
e1f97681f4
2 changed files with 5 additions and 22 deletions
|
@ -408,7 +408,7 @@ class GCodeViewer
|
|||
min = std::min(min, value);
|
||||
max = std::max(max, value);
|
||||
}
|
||||
void reset(bool log = false) { min = FLT_MAX; max = -FLT_MAX; count = 0; log_scale = false; log_scale = log; }
|
||||
void reset(bool log = false) { min = FLT_MAX; max = -FLT_MAX; count = 0; log_scale = log; }
|
||||
|
||||
float step_size() const;
|
||||
Color get_color_at(float value) const;
|
||||
|
@ -432,7 +432,6 @@ class GCodeViewer
|
|||
Range temperature;
|
||||
// Color mapping by layer time.
|
||||
Range layer_duration;
|
||||
Range layer_duration_log;
|
||||
void reset() {
|
||||
height.reset();
|
||||
width.reset();
|
||||
|
@ -440,8 +439,7 @@ class GCodeViewer
|
|||
fan_speed.reset();
|
||||
volumetric_rate.reset();
|
||||
temperature.reset();
|
||||
layer_duration.reset();
|
||||
layer_duration_log.reset(true);
|
||||
layer_duration.reset(true);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -721,7 +719,6 @@ public:
|
|||
ColorPrint,
|
||||
FilamentId,
|
||||
LayerTime,
|
||||
LayerTimeLog,
|
||||
Count
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue