mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -06:00
DoubleSlider: Code refactoring for auto color change
This commit is contained in:
parent
94843bb6bf
commit
cedfc5e3fb
3 changed files with 31 additions and 12 deletions
|
@ -25,6 +25,13 @@ namespace DoubleSlider {
|
|||
*/
|
||||
constexpr double epsilon() { return 0.0011; }
|
||||
|
||||
constexpr double min_delta_area() { return scale_(scale_(25)); } // equal to 25 mm2
|
||||
constexpr double min_threshold() { return scale_(scale_(1)); } // equal to 1 mm2
|
||||
|
||||
bool possible_threshold(const double& bottom_area, const double& top_area);
|
||||
bool equivalent_areas(const double& bottom_area, const double& top_area);
|
||||
bool overhang(const double& bottom_area, const double& top_area);
|
||||
|
||||
// custom message the slider sends to its parent to notify a tick-change:
|
||||
wxDECLARE_EVENT(wxCUSTOMEVT_TICKSCHANGED, wxEvent);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue