OrsMeasurementInspector¶
UI to manage measurements on Multi-ROIs and meshes
- author:
Dragonfly Team
- contact:
- email:
- organization:
Comet Technologies Canada Inc.
- address:
460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
- copyright:
Comet Technologies Canada Inc. All rights reserved 2023.
- date:
Mar 18 2016 11:57
- dragonflyVersion:
3.0
- UUID:
e9a91392761511e78ef8448a5b5d70c0
Class Code¶
- class OrsPythonPlugins.OrsMeasurementInspector.orsmeasurementinspector.OrsMeasurementInspector(*args, **kwargs)¶
- cleanup()¶
Deletes the variables managed by the plugin. It is the place to remove callbacks and other references to Python objects that would prevent them to be garbage collected. This method is called during the process of deletion of the plugin. It calls for the cleanup and deletion of the forms.
- interfacemethod copyMultiROIWithPhysicalRange(aMultiROI, scalarValueSlot, rangePhysicalMin, rangePhysicalMax, noLowerLimit=False, noUpperLimit=False, include=True, publish=True)¶
Create a MultiROi based on a range of a scalar slot
- Parameters:
aMultiROI (ORSModel.ors.MultiROI) – the source MultiROI
scalarValueSlot (int) – a scalar slot index
rangePhysicalMin (float) – minimum value to consider
rangePhysicalMax (float) – maximum value to consider
noLowerLimit (bool) – select all lower values
noUpperLimit (bool) – select all bigger values
include (bool) – range define inclusion or exclusion
publish (bool) – do we publish the MultiROI
- Returns:
output (ORSModel.ors.MultiROI) – newMultiROI
- findAppropriateNewScalarSlotDefaultUnitId(value, slotId, iTIndex)¶
This function find the new dimension unit id that is appropriate for the current slot to have values higher than the float precision (10e-5).
Note
Because pyqtgraph QLinearGradient use float, the LUT wont be applied correctly if the scalar values are smaller than this precision. If it’s the case, we need to convert the array in another unit to work around this limitation and render the LUT properly.
- Parameters:
value (float) – a value in the current unit referential (this value should not be 0)
slotId (int) – current slot id
iTIndex (int) – current time step
- Return:
new dimension unit
- Rtype:
- classmethod getMainFormClass()¶
Gets the class of the main form
- Returns:
output –