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

getDim0Value()#

Return Dim 0 value and unit. Unit is always meter

Return type:

tuple

getDim1Value()#

Return Dim 0 value and unit. Unit is always meter

Return type:

tuple

getDim2Value()#

Return Dim 0 value and unit. Unit is always meter

Return type:

tuple

getValues()#
Return type:

tuple

Returns:

(dim0 value, dim1 value, dim2 value, unit)

setDim0value(value, unit='mm')#
Parameters:

value (str | MetricSystem) – value to set to dim 0.

Returns:

setDim1value(value, unit='mm')#
Parameters:

value (str | MetricSystem) – value to set to dim 1.

Returns:

setDim2value(value, unit='mm')#
Parameters:

value (str | MetricSystem) – value to set to dim 2.

Returns:

setUnit(unit)#

define with which unit we should display the size :type unit: :param unit: metric to be used for display. Internally this is always stored using the international metric system

setValues(dim0, dim1, dim2, unit='mm')#
Parameters:
  • dim0 (float) – value to dim0

  • dim1 (float) – value to dim1

  • dim2 (float) – value to dim2

  • unit (str | MetricSystem) – unit used for the provided values

Return type:

None

unit()#
Return type:

MetricSystem

Returns:

metric system used for display

valuesChanged#

Signal emitted when a value change