#include <ArmarXGui/gui-plugins/StatechartViewerPlugin/layout/LayoutController.h>
◆ LayoutController()
◆ createAllWorkers()
| void createAllWorkers |
( |
| ) |
|
createAllWorkers Creates workers for all mediators
◆ createWorker
| void createWorker |
( |
MediatorPtr | mediator, |
|
|
size_t | id, |
|
|
QString | name ) |
|
signal |
createWorker Tells the LayoutWorkerCreator to create a new worker for this mediator.
- Parameters
-
| mediator | Manages the communication between the new worker and the associated state. |
| id | The mediator's and worker's id. |
| name | Name of mediator's state. |
◆ deleteMediator
| void deleteMediator |
( |
size_t | mediatorId | ) |
|
|
slot |
deleteMediator Call the destructor of mediator and tell LayoutWorkerCreator to delete the corresponding worker.
- Parameters
-
| mediatorId | The id of the mediator that needs to be deleted. |
◆ enableLayouting
| void enableLayouting |
( |
bool | enable = true | ) |
|
|
slot |
◆ getStateId()
◆ layoutNow
| bool layoutNow |
( |
size_t | mediatorId, |
|
|
bool | layoutAll ) |
|
slot |
◆ potentialStateAdded
potentialStateAdded If a substate is added it might mean that there is a new state needing a LayoutWorker.
Creates a new LayoutWorker if necessary.
- Parameters
-
| substate | The substate that was changed. |
| signalType | Type of change to the substate. |
◆ reset
◆ scheduleMediator
| void scheduleMediator |
( |
size_t | mediatorId, |
|
|
bool | layoutAll ) |
|
slot |
scheduleMediator Put the mediator in the layoutQueue.
- Parameters
-
| mediatorId | ID of the StateModelLayoutMediator that should be scheduled. |
| layoutAll | Indicates whether nodes and edges (true) or only edges shall be layouted (false). |
◆ setTopState()
setTopState Resets all workers i.e.
deletes all old workers and sets topState and its worker as only member of workers.
- Parameters
-
| topState | The new top state. |
◆ startNextLayouting
| void startNextLayouting |
( |
| ) |
|
|
slot |
startNextLayouting The last worker that layouted is finished and the next should be started.
The documentation for this class was generated from the following files: