Layout the graph with nodes next to each other with natural or custom order and draw the edges as semicircular bows above them. More...
#include <ogdf/misclayout/LinearLayout.h>
Public Member Functions | |
LinearLayout () | |
Constructor that uses a standard width and no custom order of the nodes. More... | |
LinearLayout (double w, ListPure< node > o) | |
Constructor that takes a desired width and a custom ordering. More... | |
virtual | ~LinearLayout () |
Standard destructor. More... | |
virtual void | call (GraphAttributes &GA) override |
Computes a layout of graph GA . More... | |
virtual void | setCustomOrder (bool o) |
Interface function to toggle custom ordering. More... | |
Public Member Functions inherited from ogdf::LayoutModule | |
LayoutModule () | |
Initializes a layout module. More... | |
virtual | ~LayoutModule () |
void | operator() (GraphAttributes &GA) |
Computes a layout of graph GA . More... | |
Private Attributes | |
bool | m_customOrder |
If true a custom order stored in m_nodeOrder will be used. More... | |
ListPure< node > | m_nodeOrder |
Contains a custom ordering for putting the graphs next to each other. More... | |
double | m_outWidth |
Layout the graph with nodes next to each other with natural or custom order and draw the edges as semicircular bows above them.
Definition at line 49 of file LinearLayout.h.
Constructor that takes a desired width and a custom ordering.
w | Width of the output |
o | custom order |
ogdf::LinearLayout::LinearLayout | ( | ) |
Constructor that uses a standard width and no custom order of the nodes.
|
virtual |
Standard destructor.
|
overridevirtual |
Computes a layout of graph GA
.
This method is the actual algorithm call and must be implemented by derived classes.
GA | is the input graph and will also be assigned the layout information. |
Implements ogdf::LayoutModule.
|
virtual |
Interface function to toggle custom ordering.
|
private |
If true a custom order stored in m_nodeOrder will be used.
Definition at line 52 of file LinearLayout.h.
Contains a custom ordering for putting the graphs next to each other.
Definition at line 55 of file LinearLayout.h.
|
private |
Definition at line 56 of file LinearLayout.h.