Added temp tower to calibration folder

issue: MatterHackers/MCCentral#6123
Create a temperature calibration object
This commit is contained in:
LarsBrubaker 2020-11-15 17:03:28 -08:00
parent 975c9294ca
commit a84805e164
15 changed files with 253 additions and 13 deletions

View file

@ -1,5 +1,5 @@
/*
Copyright (c) 2019, Lars Brubaker, John Lewin
Copyright (c) 2019, Lars Brubaker
All rights reserved.
Redistribution and use in source and binary forms, with or without
@ -83,14 +83,22 @@ namespace MatterHackers.MatterControl.DesignTools
public override Task Rebuild()
{
this.DebugDepth("Rebuild");
bool valuesChanged = false;
using (RebuildLock())
{
Temperature = agg_basics.Clamp(Temperature, 140, 400, ref valuesChanged);
using (new CenterAndHeightMaintainer(this))
{
}
}
if (valuesChanged)
{
Invalidate(InvalidateType.DisplayValues);
}
Parent?.Invalidate(new InvalidateArgs(this, InvalidateType.Mesh));
return Task.CompletedTask;
}