mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-01-07 15:17:46 -07:00
Show layer height in Simulation View slider labels
Adds display of the current and minimum layer heights (in mm) to the Simulation View slider labels. Implements new properties and logic in SimulationView and SimulationViewProxy to retrieve accurate layer heights for both sliced and gcode data. Bumps plugin version to 1.1.0.
This commit is contained in:
parent
9edd99f94a
commit
f4430718c7
5 changed files with 91 additions and 1 deletions
|
|
@ -46,6 +46,14 @@ class SimulationViewProxy(QObject):
|
|||
def minimumLayer(self):
|
||||
return self._simulation_view.getMinimumLayer()
|
||||
|
||||
@pyqtProperty(float, notify=currentLayerChanged)
|
||||
def currentLayerHeight(self):
|
||||
return self._simulation_view.getCurrentLayerHeight()
|
||||
|
||||
@pyqtProperty(float, notify=currentLayerChanged)
|
||||
def minimumLayerHeight(self):
|
||||
return self._simulation_view.getMinimumLayerHeight()
|
||||
|
||||
@pyqtProperty(int, notify=maxPathsChanged)
|
||||
def numPaths(self):
|
||||
return self._simulation_view.getMaxPaths()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue