OrsMeasurementInspector

UI to manage measurements on Multi-ROIs and meshes

author:ORS Team
contact:http://theobjects.com
email:info@theobjects.com
organization:Object Research Systems (ORS), Inc.
address:460 Ste-Catherine Ouest, suite 600, Montréal, Québec, Canada, H3B 1A7
copyright:Object Research Systems (ORS), Inc. All rights reserved 2021.
date:Mar 18 2016 11:57
dragonflyVersion:
 3.0
UUID:e9a91392761511e78ef8448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsMeasurementInspector.orsmeasurementinspector.OrsMeasurementInspector(varname=None)
BIN_COUNT = 64
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
canBeGenericallyOpened = False
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.

classmethod contextualMenu(context)
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:

ORSModel.ors.DimensionUnit

getBinCount()
getCurrentHistogramData()
getCurrentObject()
getCurrentSlotToRender()
getCurrentTimeStep()
getCurrentView()
classmethod getMainFormClass()

Gets the class of the main form

Returns:output
getManagedClassList()
classmethod getScalarValueClassForObject(anObject)
classmethod getScalarValueClassListForObject(anObject)
getScalarValueHelperClass()
getScalarValueHelperClassList()
getScalarValueMappingAtLastHistoUpdate()
keepAlive = False
multiple = False
classmethod openMeasurementInspectorAction(objGUID)
orsCurrentDisplayChange()
orsCurrentlyEditedObjects()
resetCurrentObject()
savable = False
setCallbacksOnViews()
setCurrentObjectGUID(objGUID)
setCurrentSlotToRender(slotIndex)
setLUTAsLUTOnCurrentViewAndDatasetPresenter(aLUT, logging=False)
setLUTOnCurrentViewAndDatasetPresenter(aLUT)
setScalarValueHelperClass(anHelper)
setScalarValueMappingAtLastHistoUpdate(aMapping)
updateScalarHelperClassListAndSetHelper(orsObject)