OrsTextPresenterManager

Manages all aspects of text annotations

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:Oct 30 2015 18:19
dragonflyVersion:
 3.1.0.286 (D)
UUID:bed278e2761c11e789a9448a5b5d70c0

Class Code

class OrsPythonPlugins.OrsTextPresenterManager.OrsTextPresenterManager.OrsTextPresenterManager(varname=None, managed=True, subclassesToIgnore=None)
addNewManagedClass(aClass)

Adds a text presenter

Parameters:aTextPresenter (ORSModel.ors.VisualText) – a text presenter object
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 = False
getState()

This method is called when saving a plugin instance in a session to obtain the information required to set up the plugin at the loading of the session.

The plugin needs to be savable (see ORSServiceClass.OrsPlugin.abstractPlugin.AbstractPlugin.savable).

Return:a string of information that will be sent back to the setState method
Rtype:str

Note

The usage of the character " is not permitted, unless escaped.

keepAlive = False
manageTextPresenter(aTextPresenter)

Adds a text presenter

Parameters:aTextPresenter (ORSModel.ors.VisualText) – a text presenter object
multiple = False
orsSelectedObjectsChange()
savable = True
setState(aString)

This method is called to set up the plugin when loading a session.

Note

This method is called only if the string returned by ORSServiceClass.OrsPlugin.orsPlugin.OrsPlugin.getState() at the saving of the session was not empty.

Parameters:state (str) – string of information as provided by the getState during the saving of the session
unmanageAllTextPresenters()

Removes all text presenters

unmanageTextPresenter(aTextPresenter)

Removes a text presenter

Parameters:aTextPresenter (ORSModel.ors.VisualText) – a text presenter object
visibleClasses = ['CxvVolumeROIVisual', 'CxvMesh', 'CxvAbstractDatasetPresenter']