OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918¶
- author:
Dragonfly Team
- contact:
- email:
- 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:
Jun 20 2019 21:48
- dragonflyVersion:
4.1.0.643 (D)
- UUID:
9d380f1a93c611e9ac0ec86000a21918
Class Code¶
- class OrsPythonPlugins.OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918.OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918.OrsSegmentationWizard_9d380f1a93c611e9ac0ec86000a21918(*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.
- interfacemethod extractObjectFromContextGroup(aContextGroup, anObjectToExtract)¶
Extracts an object from a context group by making a copy.
- Parameters:
aContextGroup (ORSModel.ors.Group) – a context group
anObjectToExtract (ORSModel.ors.Managed) – an object to extract
- Returns:
extractedObject (ORSModel.ors.Managed) – extracted object
- getIsObjectAvailable(anObject)¶
Gets to know if the object is available in the context.
- Parameters:
anObject (ORSModel.ors.Managed) – an object
- Return:
Trueif the object is available in the context;Falseotherwise.- Rtype:
bool
- classmethod getMainFormClass()¶
Gets the class of the main form
- Returns:
output –
- 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
- 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
openMainFormisTrue);
initialize the menu (if wanted);
perform any other task to initialize the context (configure views, text presenters, …).
- Parameters:
openMainForm (bool) –
Trueto use the forms;Falseotherwise.
- 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