OrsGraphShortestPath_49eccde254f111ea9c7f0c9d9276653a

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:

Feb 21 2020 16:29

dragonflyVersion:

2020.1.0.11524

UUID:

49eccde254f111ea9c7f0c9d9276653a

Class Code

class OrsPythonPlugins.OrsGraphShortestPath_49eccde254f111ea9c7f0c9d9276653a.OrsGraphShortestPath_49eccde254f111ea9c7f0c9d9276653a.OrsGraphShortestPath_49eccde254f111ea9c7f0c9d9276653a(*args, **kwargs)
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.

getEdgeScalarSlotsDictWithoutPaths()

Edge scalar slots that can be used as the weights of the shortest path computation, i.e. every slot except the paths created by this plugin. A path only holds 0 and 1, which makes the computation explode since all the edges outside of the path have the same null weight.

classmethod getMainFormClass()

Gets the class of the main form

Returns:

output –

getPathSlotIDsList()

Slot ids of the edge scalar slots that hold a path computed by this plugin

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(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

updateTablePathsModel()

This function is to actualize the table model of paths