Adding the start of a measure tool

Fixed issues with not releasing pointers
Fixed line scaling issues
This commit is contained in:
LarsBrubaker 2020-09-13 13:04:57 -07:00
parent b1c79e88c6
commit 24fa4093b3
10 changed files with 235 additions and 11 deletions

View file

@ -183,12 +183,12 @@ namespace MatterHackers.Plugins.EditorTools
if (e.ZBuffered)
{
Object3DControlContext.World.Render3DLine(clippingFrustum, bottomPosition, topPosition, theme.TextColor);
Object3DControlContext.World.Render3DLine(clippingFrustum, bottomPosition, topPosition, theme.TextColor, width: GuiWidget.DeviceScale);
}
else
{
// render on top of everything very lightly
Object3DControlContext.World.Render3DLine(clippingFrustum, bottomPosition, topPosition, new Color(theme.TextColor, 20), false);
Object3DControlContext.World.Render3DLine(clippingFrustum, bottomPosition, topPosition, new Color(theme.TextColor, 20), false, GuiWidget.DeviceScale);
}
}
}
@ -369,6 +369,7 @@ namespace MatterHackers.Plugins.EditorTools
public override void Dispose()
{
zValueDisplayInfo.Close();
Object3DControlContext.GuiSurface.AfterDraw -= Object3DControl_AfterDraw;
}
}
}