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. More...
 
void layout (bool layoutAll)
 layout Starts layouting. More...
 
void stateDeleted ()
 stateDeleted The corresponding state was deleted. More...
 

Signals

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

Public Member Functions

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

Detailed Description

Definition at line 34 of file LayoutWorker.h.

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.

Definition at line 43 of file LayoutWorker.cpp.

+ Here is the call graph for this function:

◆ ~LayoutWorker()

~LayoutWorker ( )
override

Definition at line 98 of file LayoutWorker.cpp.

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.

Definition at line 130 of file LayoutWorker.cpp.

◆ layout

void layout ( bool  layoutAll)
slot

layout Starts layouting.

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

Definition at line 109 of file LayoutWorker.cpp.

◆ layoutingFinished

void layoutingFinished ( )
signal

layoutingFinished Indicates that this worker finished its layout task.

◆ stateDeleted

void stateDeleted ( )
slot

stateDeleted The corresponding state was deleted.

Definition at line 104 of file LayoutWorker.cpp.


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