LayoutWorker Class Reference

#include <ArmarXGui/gui-plugins/StatechartViewerPlugin/layout/LayoutWorker.h>

+ Inheritance diagram for LayoutWorker:

Public Slots

void isConnected (size_t workerId)
 isConnected Notifies that worker with id workerId is now connected to its mediator.
 
void layout (bool layoutAll)
 layout Starts layouting.
 
void stateDeleted ()
 stateDeleted The corresponding state was deleted.
 

Signals

void buildGraph (LockableGraphPtr graph)
 buildGraph Tells the StateModelLayoutMediator to build the first version of this graph
 
void deleteMe (size_t id)
 deleteMe To be emitted when this worker ought to be deleted because its corresponding mediator was deleted.
 
void layoutingFinished ()
 layoutingFinished Indicates that this worker finished its layout task.
 

Public Member Functions

 LayoutWorker (size_t workerId, QString name, GvcPtr gvContext)
 LayoutWorker Sets state and id as specified.
 
 ~LayoutWorker () override
 

Constructor & Destructor Documentation

◆ LayoutWorker()

LayoutWorker ( size_t workerId,
QString name,
armarx::GvcPtr gvContext )

LayoutWorker Sets state and id as specified.

Initializes an empty Graph.

Parameters
stateThe state which this worker layouts.
idThe worker's ID for communication with the LayoutController.

◆ ~LayoutWorker()

~LayoutWorker ( )
override

Member Function Documentation

◆ buildGraph

void buildGraph ( LockableGraphPtr graph)
signal

buildGraph Tells the StateModelLayoutMediator to build the first version of this graph

Parameters
graphThe graph to be filled.

◆ deleteMe

void deleteMe ( size_t id)
signal

deleteMe To be emitted when this worker ought to be deleted because its corresponding mediator was deleted.

Parameters
idThis worker's id.

◆ isConnected

void isConnected ( size_t workerId)
slot

isConnected Notifies that worker with id workerId is now connected to its mediator.

If workerId is this worker's id, send a pointer to the graphviz graph to the mediator.

Parameters
workerIdThe id of the worker who is connected.

◆ layout

void layout ( bool layoutAll)
slot

layout Starts layouting.

Parameters
layoutAllIf true, layout edges and nodes, if false only layout edges.

◆ layoutingFinished

void layoutingFinished ( )
signal

layoutingFinished Indicates that this worker finished its layout task.

◆ stateDeleted

void stateDeleted ( )
slot

stateDeleted The corresponding state was deleted.


The documentation for this class was generated from the following files: