tomwer.gui.reconstruction.saaxis.dimensionwidget.DimensionWidget#
- class tomwer.gui.reconstruction.saaxis.dimensionwidget.DimensionWidget(parent=None, title=None, dims_name=None, dims_colors=None, title_size=10)#
Simple widget to display value over 3 dimensions
- Parameters:
parent
title – QGroupBox title
dims_name – name of the dimension. If set will be store in each QDoubleLine prefix
dims_colors – color associated to the three dimensions if any
- getDim0Quantity()#
Return Dim 0 value and unit. Unit is always meter
- Return type:
tuple
- getDim1Quantity()#
Return Dim 1 Quantity
- Return type:
Quantity
- getDim2Quantity()#
Return Dim 2 value and unit. Unit is always meter
- Return type:
Quantity
- getQuantities(cast_unit_to=None)#
- Parameters:
cast_unit_to (None | pint.Unit) – if given will cast the quantities to the requested unit
- Return type:
tuple[pint.Quantity]
- Returns:
(dim0 value, dim1 value, dim2 value)
- setDim0Quantity(value)#
- Parameters:
value (
Quantity) – value to set to dim 0.- Returns:
- setDim1value(value)#
- Parameters:
value (
Quantity) – value to set to dim 1.- Returns:
- setDim2Quantity(value)#
- Parameters:
value (
Quantity) – value to set to dim 2.- Returns:
- setQuantities(dim0, dim1, dim2)#
- Parameters:
dim0 (
Quantity) – value to dim0dim1 (
Quantity) – value to dim1dim2 (
Quantity) – value to dim2unit – unit used for the provided values
- Return type:
None
- setUnit(unit)#
define with which unit we should display the size :type unit:
Unit:param unit: metric to be used for display. Internally this is always stored using the international metric system
- valuesChanged#
Signal emitted when a value change