DragonflyEZ_f580d7e2dadb11e98c2b309c235e8fdb

Light version of Dragonfly with segmentation workflow

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:Sep 19 2019 08:49
dragonflyVersion:
 4.5.0.711 (D)
UUID:f580d7e2dadb11e98c2b309c235e8fdb

Class Code

class OrsPythonPlugins.DragonflyEZ_f580d7e2dadb11e98c2b309c235e8fdb.DragonflyEZ_f580d7e2dadb11e98c2b309c235e8fdb.DragonflyEZ_f580d7e2dadb11e98c2b309c235e8fdb(varname=None, managed=True)
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
WIZARD_OBJECT_ANNOTATIONS = 'DragonflyEZ_annotations'
WIZARD_OBJECT_DECIMATED_MESH = 'DragonflyEZ_decimatedMesh'
WIZARD_OBJECT_MESH = 'DragonflyEZ_mesh'
WIZARD_OBJECT_SAMPLE_SHAPE = 'DragonflyEZ_sampleShape'
WIZARD_OBJECT_SEGMENTATION_ROI = 'DragonflyEZ_segmentationROI'
WIZARD_OBJECT_WORKING_DATASET = 'DragonflyEZ_workingDataset'
WIZARD_PAGE_ANALYSIS = 'PageAnalysis'
WIZARD_PAGE_SEGMENTATION = 'PageSegmentation'
WIZARD_PAGE_VIEW_DATA = 'PageViewData'
addAnnotation(anAnnotation)
canBeGenericallyOpened = True
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
classmethod contextualMenu(listSelectedObjectsRepr)
interfacemethod extractObjectFromContextGroup(aContextGroup, anObjectToExtract)

Extracts an object from a context group by making a copy.

Parameters:
Returns:

extractedObject (ORSModel.ors.Managed) – extracted object

classmethod getContextName()
classmethod getImageRepresentation()

Method called to obtain a bitmap representing the Wizard, mostly to build a quick launch toolbar where each wizard has a button to start it

Returns:output – an image
Type:QPixmap
getIsObjectAvailable(anObject)

Gets to know if the object is available in the context.

Parameters:anObject (ORSModel.ors.Managed) – an object
Return:True if the object is available in the context; False otherwise.
Rtype:bool
getLastWizardPageKey()
classmethod getMainFormClass()
hideCommonWizardObjects()

Hides objects used by multiple wizard pages. This is to make sure there is no “phantom object” of a page in another one. This is normally called by a wizard page during the terminatePage method.

instantiateWizardPagesForms(parent)

Instantiation of the wizard pages forms

keepAlive = False
classmethod menuItemDefinition1()
modalContext = True
multiple = False
privateObjects = True
removeAnnotation(anAnnotationGUID)
requiredWizardPagesClasses = [<class 'OrsPythonPlugins.DragonflyEZ_f580d7e2dadb11e98c2b309c235e8fdb.pageviewdata.pageviewdatamodel.PageViewDataModel_94998b14dfa411e9bfe4309c235e8fdb'>, <class 'OrsPythonPlugins.DragonflyEZ_f580d7e2dadb11e98c2b309c235e8fdb.pagesegmentation.pagesegmentationmodel.PageSegmentationModel_2e062a0ae12711e98cbf309c235e8fdb'>, <class 'OrsPythonPlugins.DragonflyEZ_f580d7e2dadb11e98c2b309c235e8fdb.pageanalysis.pageanalysismodel.PageAnalysisModel_aebf2e44e5e411e9af560c9d9276653a'>]
restrictPlugins = True
savable = True
setupContext(openMainForm=True)

Performs the tasks to setup the context. This is normally done after the instantiation of the main plugin in context and setting his state.

These are the usual tasks:

  • instantiate all required plugins;
  • define context restrictions (actions, states, …);
  • open the main window with the mainform of the main plugin in context and all plugin forms
    (if openMainForm is True);
  • initialize the menu (if wanted);
  • perform any other task to initialize the context (configure views, text presenters, …).
Parameters:openMainForm (bool) – True to use the forms; False otherwise.
classmethod startDragonflyEZ()
classmethod toolsMenu()