OrsWidgetObserver_fc2f131c443f11ea9a27309c235e8fdb

Plugin used to inspect properties of alive widgets

author:

Dragonfly Team

contact:

https://dragonfly.comet.tech

email:

support.dragonfly@comet.tech

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:

Jan 31 2020 10:40

dragonflyVersion:

2020.1.0.743 (D)

UUID:

fc2f131c443f11ea9a27309c235e8fdb

Class Code

class OrsPythonPlugins.OrsWidgetObserver_fc2f131c443f11ea9a27309c235e8fdb.OrsWidgetObserver_fc2f131c443f11ea9a27309c235e8fdb.OrsWidgetObserver_fc2f131c443f11ea9a27309c235e8fdb(*args, **kwargs)
attachObjects(parentNodeID, listChildrenNodeID, graphModelID=None)

This function is to attach a set of objects

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.

deleteObjects(listNodeIDToDelete)

This function is to delete the selected objects :return:

detachAllMarkedConnections(graphModelID=None)

This function is to detach all marked connections :return:

classmethod getMainFormClass()

Gets the class of the main form

Returns:

output

isValidNewPotentialConnection(parentNodeID, childNodeID, graphModelID=None)

This function is to test if a new connection can be established between 2 nodes

reorganizeGraph(observerGraphTag)

This function calls for a full reorganization of the graph nodes :return:

setGraphInstanceVariable(observerGraphTag, instanceVariableID)
Parameters:
  • observerGraphTag

  • instanceVariableID (str) – id (as string)

Return:

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

classmethod startObserverOnWidgetAtCursor()

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.