The beginning of variable support

This commit is contained in:
LarsBrubaker 2021-05-29 22:21:50 -07:00
parent 8a66242699
commit 4f3a241e86
22 changed files with 187 additions and 85 deletions

View file

@ -67,13 +67,18 @@ namespace MatterHackers.Plugins.EditorTools
private Vector3 initialHitPosition;
private ScaleController scaleController = new ScaleController();
private ScaleController scaleController;
public ScaleWidthDepthEdgeControl(IObject3DControlContext context, int edgeIndex)
public ScaleWidthDepthEdgeControl(IObject3DControlContext context,
Func<double> getHeight,
Action<double> setHeight,
int edgeIndex)
: base(context)
{
theme = MatterControl.AppContext.Theme;
scaleController = new ScaleController(getHeight, setHeight);
xValueDisplayInfo = new InlineEditControl()
{
ForceHide = ForceHideScale,