OrsLayoutManager¶
Manages all aspects of view and scene layouts
| 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: | Dec 20 2015 21:15 |
| dragonflyVersion: | |
| 3.0 | |
| UUID: | 6bbcba26761511e78fd4448a5b5d70c0 |
Class Code¶
-
class
OrsPythonPlugins.OrsLayoutManager.OrsLayoutManager.OrsLayoutManager(varname=None)¶ -
UIDescriptors= [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]¶
-
classmethod
changeViewLayout(newLayout)¶
-
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.
-
contextualMenu(context)¶
-
interfacemethod
create2DSingleView(replacingLayoutGenealogicalName)¶ The input scene is replaced with a 2D single scene
Parameters: replacingLayoutGenealogicalName (str) – a layout name
-
interfacemethod
createHDoubleView(replacingLayoutGenealogicalName)¶ The input scene is replaced with a horizontal double scene
Parameters: replacingLayoutGenealogicalName (str) – a layout name
-
classmethod
createHDoubleViewAction()¶
-
interfacemethod
createHSingleTripleView(replacingLayoutGenealogicalName)¶ The input scene is replaced with a single plus horizontal triple scene
Parameters: replacingLayoutGenealogicalName (str) – a layout name
-
classmethod
createHSingleTripleViewAction()¶
-
interfacemethod
createHTripleView(replacingLayoutGenealogicalName)¶ The input scene is replaced with a horizontal triple scene
Parameters: replacingLayoutGenealogicalName (str) – a layout name
-
classmethod
createHTripleViewAction()¶
-
interfacemethod
createVDoubleView(replacingLayoutGenealogicalName)¶ The input scene is replaced with a vertical double scene
Parameters: replacingLayoutGenealogicalName (str) – a layout name
-
classmethod
createVDoubleViewAction()¶
-
interfacemethod
createVSingleTripleView(replacingLayoutGenealogicalName)¶ The input scene is replaced with a single plus vertical triple scene
Parameters: replacingLayoutGenealogicalName (str) – a layout name
-
classmethod
createVSingleTripleViewAction()¶
-
interfacemethod
createVTripleView(replacingLayoutGenealogicalName)¶ The input scene is replaced with a vertical triple scene
Parameters: replacingLayoutGenealogicalName (str) – a layout name
-
classmethod
createVTripleViewAction()¶
-
interfacemethod
createnQuadView(replacingLayoutGenealogicalName)¶ The input scene is replaced with a quadruple view scene
Parameters: replacingLayoutGenealogicalName (str) – a layout name
-
classmethod
createnQuadViewAction()¶
-
classmethod
deleteCurrentContextLayout(impl)¶
-
classmethod
getMainFormClass()¶ Gets the class of the main form
Returns: output –
-
keepAlive= False¶
-
multiple= False¶
-
interfacemethod
nSimpleScene(newScenelayoutClass='Layout1xXY', count=2, vertical=True, sceneWeights=None, createDefaultTextPresenters=True)¶ Set the count of scene in the current context top layout
Parameters: - newScenelayoutClass (str) – a layout helper class name
- count (int) – scene count
- vertical (bool) – scene orientation
- sceneWeights (int) [count=[0, None]] – scene weights
- createDefaultTextPresenters (bool) – if True, the default text presenters will be created for all views in the new layout (unless already present); otherwise, no new text presenter will be created.
-
openDefaultLayout()¶
-
orsCurrentDisplayChange()¶
-
orsLayoutChange()¶
-
interfacemethod
orthogonalizedAllOther2DView(layoutGenealogicalName)¶ Orthogonalize all the other 2D views from the view selected
Parameters: layoutGenealogicalName (str) – a display layout name
-
refreshUIFromModel()¶ Calls the UI to be updated based on the implementation
-
classmethod
replaceCurrentSceneViewLayout(previousLayout, newLayout)¶
-
savable= True¶
-
setDefaultSceneViewLayout(aClass)¶
-
setDisplayToLayoutDefaultView(display)¶
-
setSceneLayout(n=1, vertical=False, sceneWeights=[])¶
-
showSceneLayout(enable)¶
-
showSceneViews(enable)¶
-
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
-
interfacemethod
switchTo2DSingleView()¶ The input scene is replaced with a 2D single scene
-
classmethod
switchTo2DSingleViewAction()¶
-
interfacemethod
switchTo3DSingleView()¶ The input scene is replaced with a 3D single scene
-
classmethod
switchTo3DSingleViewAction()¶
-
toggleDisplayFullScreenAction()¶
-
toggleFullscreenForCurrentLayout()¶
-