#include <ArmarXGui/gui-plugins/StatechartViewerPlugin/layout/LayoutController.h>
Definition at line 45 of file LayoutController.h.
◆ LayoutController()
◆ createAllWorkers()
| void createAllWorkers |
( |
| ) |
|
◆ 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. |
Definition at line 171 of file LayoutController.cpp.
◆ 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. |
Definition at line 210 of file LayoutController.cpp.
◆ 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). |
Definition at line 99 of file LayoutController.cpp.
◆ 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. |
Definition at line 54 of file LayoutController.cpp.
◆ startNextLayouting
| void startNextLayouting |
( |
| ) |
|
|
slot |
startNextLayouting The last worker that layouted is finished and the next should be started.
Definition at line 144 of file LayoutController.cpp.
The documentation for this class was generated from the following files: