OrsAIApplicationPluginAbstract

A base class for “Segment with AI” and “Filter with AI” plugins

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 2021.
date:Jul 20 2017 13:53
dragonflyVersion:
 3.0.0.271 (D)
UUID:58c4c8146d7411e78a6fc86000a21918

Class Code

class OrsPythonPlugins.OrsAIApplicationPluginAbstract.OrsAIApplicationPluginAbstract.OrsAIApplicationPluginAbstract(varname=None)
addDisplayCallbacks()
addVisibilityCallbacks(guids)
canApply() → bool
canApplyDistributedModel() → bool
canPreview() -> (<class 'bool'>, <class 'str'>)
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 contextualMenu(context)
deletePreview()
static getBaseName()
getCurrentModel()
getInputDatasetGUIDList()
getInputDatasetList()
getIsDistributedInferenceEnabled()
getModelsManager()
getPreviewParams()
keepAlive = False
multiple = False
onCurrentViewChanged()
onSegmentationModelUpdated()
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1, show=True)

Instantiates the widget with the provided name. This is done only if it is not already instantiated.

Parameters:
  • name (str) – name of the widget to instantiate
  • dock (str) – docking location in the main window (left, right, top, bottom, center, floating)
  • tab (str) – name of the tab to dock in
  • x (int) – position of top left corner of window in x. Use -1 for default value.
  • y (int) – position of top left corner of window in y. Use -1 for default value.
  • w (int) – width of window. Use -1 for default value.
  • l (int) – height of window. Use -1 for default value.
  • order (int.) – position of widget in docking location. Use -1 to put at the end.
  • show (bool) – if True, the form is also shown after being instantiated. If the form already exists, a “raise” is done. If False, no call to show the form is made.
preview(input_settings, apply_crf)
releaseCurrentModel()
savable = True
selectedObjectsChanged()
setCurrentModel(model)
setInputDatasetGUIDList(channelList)
setModelReady(model, progress)
setOpacityValue(opacity)