OrsInstanceObserver_60d27cdab5ba11e79698448a5b5d70c0

Plugin used to inspect members of Python variables including object models.

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 2020.
date:Oct 20 2017 13:16
dragonflyVersion:
 3.1.0.307 (D)
UUID:60d27cdab5ba11e79698448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsInstanceObserver_60d27cdab5ba11e79698448a5b5d70c0.OrsInstanceObserver_60d27cdab5ba11e79698448a5b5d70c0.OrsInstanceObserver_60d27cdab5ba11e79698448a5b5d70c0(varname=None, managed=True)
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>, <ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
classmethod actionGetIDOfWidgetAtCursor()
classmethod actionOpenGUI()
actionRefreshAllModels()
addQuickWatchExpression(instanceObserverTag)
canObserveVariable(instanceVariable)
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.

closable = True
closeWidget(name)
filterDisplayedModules()
getFilterDisplayedModules()
getInstanceVariable(instanceObserverTag)
getInstanceVariableFromID(instanceVariableID)
getInstanceVariableID(instanceObserverTag)
classmethod getRestrictedLocationsOfRoots()
classmethod getSupportedRoots()
getTableEvaluatedVariableModel(instanceObserverTag)
getTableInstanceVariableModel(instanceObserverTag)
getTableModelObjectModelInstances()
getTableQuickWatchVariableModel(instanceObserverTag)
getTreeModelExistingInstances()
getUpdateTablesOnEachHandleTriggered(instanceObserverTag)
handleTriggered(eventData)

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
classmethod menuItemDefinition1()
multiple = False
myContextualMenu(listSelectedObjectsRepr)
onCloseInstanceObserverForm(instanceObserverTag)
classmethod openGUI()
openInstanceForm(instanceObserverTag=None)
openInstanceObserverOnSelection(listSelectedObjects)
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)
removeQuickWatchExpressions(instanceObserverTag, setOfRowsToRemove)
savable = False
setFilterDisplayedModules(strFilterDisplayedModules)
setInstanceVariable(instanceObserverTag, instanceVariableIDOrGUID)
Parameters:
  • instanceObserverTag
  • instanceVariableIDOrGUID (str) – GUID or id (as string)
Return:

True if the instance variable is found and is set to the model; False otherwise.

setQuickWatchExpression(instanceObserverTag, row, newQuickWatchExpression)
setUpdateTablesOnEachHandleTriggered(instanceObserverTag, updateTablesOnEachHandleTriggered)
showInToolbar = True
startInstanceObserverModel(instanceVariable)
startInstanceObserverModelFromGUID(objectGUID)
startInstanceObserverModelFromID(instanceVariableID)
classmethod startInstanceObserverOnWidgetAtCursor()

Starts an observer form on the widget under cursor. The id of the widget is also put in the clipboard, to be used with other plugins.

stateDescriptors = [<ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>]
classmethod topLevelMenu()
updateAllTablesModels()
updateAllTablesModelsForHandleTriggered()
updateTableModelObjectModelInstances()
updateTablesModels(instanceObserverTag)
updateTreeModelExistingInstances()