PyANGGui.GKGUISystem

class GKGUISystem

Class that keeps information about all data that is shared by the GUI part of documents.

Details

The class GKGUISystem is a singleton class (only one instance of this class exists) that holds all the data that is shared by the GUI part of the documents, mainly the drawers, the editors, the menus and the icons. Note that this means that any two documents loaded in Aimsun Next can contain different data but they will share the same type of drawers, editors, menus and icons.

The class hold only GUI shared data. For the non GUI equivalent see GKSystem class.

In order to access the unique instance of GKSystem the following code will be used:

GKGUISystem * system = GKGUISystem::getGUISystem();

The current implementation shared the same drawer for an object and a view type. That is, for all the 2D Views only one 2D drawer is created by object, and only one 3D drawer by objects for all the 3D Views.

When the user GUI for a new drawer it will create it only if no drawer for this object exits. Drawers are deleted when the object is removed from the geomodel and not when no view is available.

Drawers for layers are NOT shared as they contains settings that can change from view to view.

Synopsis

Methods

Static functions

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__()
getActiveGui()
Return type:

GGui

Get the active gui for this model. Note that gui can be NULL.

static getGUISystem()
Return type:

GKGUISystem

Returns the instance of GKGUISystem