OrsFeatureAnalysis_0d3d7db8027511ebbf60309c235e8fdb

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:

Sep 29 2020 12:58

dragonflyVersion:

2020.2.0.900 (D)

UUID:

0d3d7db8027511ebbf60309c235e8fdb

Class Code

class OrsPythonPlugins.OrsFeatureAnalysis_0d3d7db8027511ebbf60309c235e8fdb.OrsFeatureAnalysis_0d3d7db8027511ebbf60309c235e8fdb.OrsFeatureAnalysis_0d3d7db8027511ebbf60309c235e8fdb(*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.

classmethod getMainFormClass()

Gets the class of the main form

Returns:

output –

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

classmethod importAllLoggingClasses()

This method is called to make any class extension available for macro playing. It should:

  1. import all class extension;

  2. return a list of classes where logging is supported.

Returns:

output (list of classes) – list of classes where logging is supported by the current plugin

classmethod menuItemDefinition()

Declaration of a plugin menu item.

This method has to be decorated by “menuItem(menuItemDefinition=True)”.

Returns:

output – Menu item instance

setShowDataModificationActions(value)

Sets whether the actions that change, create or export measurements are offered.

When False the panel keeps everything needed to read a table – sorting, filtering, hiding columns, selecting and picking – and drops everything that would write: the operations, the publishing of ROIs, the CSV import and export, and the editing and deleting of values, columns and tables. Read-only products such as the Dragonfly Session Viewer set this in their context.

Parameters:

value (bool) – True to offer the actions; False to hide them

classmethod startMenuItem(listSelectedObjectsRepr)

Contextual menu.

This code will be executed when a contextual menu has to be displayed.

The menu item instances used in this method should be taken from menu item definitions declared in this plugin and filled with proper values (section, action, enabled, …). If multiple menu items have to be used by this method, they should be defined using the same pattern.

Parameters:

listSelectedObjectsRepr – list of selected objects (this argument is given as string representation)

Returns:

output – None, a single menu item instance, or a list of menu item instances

classmethod startupDefault(openMainForm=True)

Creates an instance of the plugin class and opens the main form (if required) at the default position.

Returns:

output (AbstractPlugin) – plugin instance