OrsWindowLeveling

Manages the interaction for controlling the window leveling (brightness and contrast)

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 2018.
date:Oct 20 2015 11:06
dragonflyVersion:
 3.1.0.286 (D)
UUID:a9e331dc761e11e7bb70448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsWindowLeveling.OrsWindowLeveling.OrsWindowLeveling(varName=None, managed=True)
OrsStateLeveling = 'OrsStateLeveling'
OrsStateLevelingActivation()
OrsStateLevelingInfinite = 'OrsStateLevelingInfinite'
OrsStateLevelingInfiniteActivation()
OrsStateWLGamma = 'OrsStateWLGamma'
OrsStateWindowLevelingAreaSelection = 'OrsStateWindowLevelingAreaSelection'
OrsStateWindowLevelingAreaSelectionAction()
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
classmethod addControlPoint(anAnnotation, timeStep, position)
closable = False
closeWidget(name)
computeOptimalLevellingWithRegion()
enterTemporaryLevelingAction()
enterTemporaryWLGammaAction()
enterWindowLevelingAreaSelectionGlobalStateAction()
handleChanged(oldState, newState)

This method is called when the state of the application is changed.

Parameters:
  • oldState (str) – name of the old (previous) state
  • newState (str) – name of the new (current) state
handleTriggered(event)

This method is called on every user input (mouse move, mouse click, key press, …) when the current state of the application is one of those declared by the plugin. This method can be used to perform specific tasks even if no action is currently in progress.

Parameters:eventData (OrsEvent.eventdata.InputEventData) – the event data
keepAlive = False
multiple = False
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)
orsCurrentDisplayChange()
orsSelectedObjectChange()
refreshUIFromModel()

Calls the UI to be updated based on the implementation

interfacemethod reset2DWindowLevelForView(datasetPresenter, view)

Resets the 2D window leveling for a DatasetPresenter for a view. All 2D views of the scene layout of the specified view are updated.

Deprecated since version 4.0: Use reset2DWindowLevelFromLayoutGenealogicalName.

Parameters:
interfacemethod reset2DWindowLevelFromLayoutGenealogicalName(aSceneLayoutName, dataset)

Resets the dataset 2D window/level in layout

Parameters:
  • aSceneLayoutName (str) – a genealogical name of a scene layout
  • dataset (ORSModel.ors.Channel) – a dataset
interfacemethod reset3DWindowLevelForView(datasetPresenter, view)

Resets the 3D window leveling for a DatasetPresenter for a view. All 3D views of the scene layout of the specified view are updated.

Deprecated since version 4.0: Use reset3DWindowLevelFromLayoutGenealogicalName.

Parameters:
interfacemethod reset3DWindowLevelFromLayoutGenealogicalName(aSceneLayoutName, dataset)

Resets the dataset 3D window/level in layout

Parameters:
  • aSceneLayoutName (str) – a genealogical name of a scene layout
  • dataset (ORSModel.ors.Channel) – a dataset
savable = True
classmethod setIntensityRangeInView(datasetPresenter, view, minValue, maxValue)

set window / level for a DatasetPresenter for view and all other view of the scene layout of the view if synchro is allow

Parameters:
classmethod setIntensityRangeInViewInterface(datasetPresenter, view, minValue, maxValue)

set window / level for a DatasetPresenter for view and all other view of the scene layout of the view if synchro is allow

Parameters:
classmethod setWL2D(datasetPresenter, view, width, center, logged=False)
classmethod setWL3D(datasetPresenter, view, width, center, logged=False)
classmethod setWLInView(datasetPresenter, view, width, center, logged=False)
classmethod setWLInViewInterface(datasetPresenter, view, width, center)

set window / level for a DatasetPresenter for view and all other view of the scene layout of the view if synchro is allow

Parameters:
stateDescriptors = [<ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>, <ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>, <ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>, <ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>]
stateLevelingActivationExitAction()
stateWLGammaActivationExitAction()
switchToOrsStateLevelingAction()
temporaryWindowLevelingAreaSelectionAction()