- add HUD rectangle auto size for 3D Graphic Engine

This commit is contained in:
Marius Stanciu
2021-08-30 17:43:35 +03:00
parent ccfca31c4e
commit fc97a4ecd6
13 changed files with 124 additions and 67 deletions

View File

@@ -603,9 +603,10 @@ class ExclusionAreas(QtCore.QObject):
"%.4f    " % (self.app.dx, self.app.dy))
units = self.app.defaults["units"].lower()
self.app.plotcanvas.text_hud.text = \
'Dx:\t{:<.4f} [{:s}]\nDy:\t{:<.4f} [{:s}]\n\nX: \t{:<.4f} [{:s}]\nY: \t{:<.4f} [{:s}]'.format(
self.app.dx, units, self.app.dy, units, curr_pos[0], units, curr_pos[1], units)
# self.app.plotcanvas.text_hud.text = \
# 'Dx:\t{:<.4f} [{:s}]\nDy:\t{:<.4f} [{:s}]\n\nX: \t{:<.4f} [{:s}]\nY: \t{:<.4f} [{:s}]'.format(
# self.app.dx, units, self.app.dy, units, curr_pos[0], units, curr_pos[1], units)
self.app.plotcanvas.on_update_text_hud(self.app.dx, self.app.dy, curr_pos[0], curr_pos[1])
if self.obj_type == 'excellon':
color = "#FF7400"