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: | 760 St-Paul West, suite 101, Montréal, Québec, Canada, H3C 1M4 |
| copyright: | Object Research Systems (ORS), Inc. All rights reserved 2019. |
| date: | Mar 18 2016 11:57 |
| dragonflyVersion: | |
| 3.0 | |
| UUID: | e9a91392761511e78ef8448a5b5d70c0 |
Class Code¶
-
class
OrsPythonPlugins.OrsMeasurementInspector.orsmeasurementinspector.OrsMeasurementInspector(varname=None, managed=True)¶ -
BIN_COUNT= 64¶
-
UIDescriptors= [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]¶
-
canBeGenericallyOpened= False¶
-
closable= True¶
-
closeWidget(name)¶
-
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
-
deletePlugin(aWidget=None)¶
-
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()¶
-
getManagedClassList()¶
-
classmethod
getScalarValueClassForObject(anObject)¶
-
classmethod
getScalarValueClassListForObject(anObject)¶
-
getScalarValueHelperClass()¶
-
getScalarValueHelperClassList()¶
-
getScalarValueMappingAtLastHistoUpdate()¶
-
keepAlive= False¶
-
multiple= False¶
-
classmethod
openMeasurementInspectorAction(objGUID)¶
-
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)¶
-
orsCurrentDisplayChange()¶
-
orsCurrentlyEditedObjects()¶
-
resetCurrentObject()¶
-
savable= False¶
-
setAndUpdateSlotDefaultUnitId(slotId, newSlotUnitId, iTIndex=0)¶ Sets a new unit to the scalar slot and apply the conversion to all ranges
Parameters: - slotId (int) – slot id that the slot unit will be updated
- newSlotUnitId (int) – new unit dimension id (see CxvUniverse_Dimension for more details)
- iTIndex (int) – current time step
Return: True if worked, False otherwise
Rtype: bool
-
setCallbacksOnViews()¶
-
setCurrentObjectGUID(objGUID)¶
-
setCurrentSlotToRender(slotIndex)¶
-
setScalarValueHelperClass(anHelper)¶
-
setScalarValueMappingAtLastHistoUpdate(aMapping)¶
-
updateScalarHelperClassListAndSetHelper(orsObject)¶
-