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. | |
LinearLayout (double w, ListPure< node > o) | |
Constructor that takes a desired width and a custom ordering. | |
virtual | ~LinearLayout () |
Standard destructor. | |
virtual void | call (GraphAttributes &GA) override |
Computes a layout of graph GA . | |
virtual void | setCustomOrder (bool o) |
Interface function to toggle custom ordering. | |
Public Member Functions inherited from ogdf::LayoutModule | |
LayoutModule () | |
Initializes a layout module. | |
virtual | ~LayoutModule () |
void | operator() (GraphAttributes &GA) |
Computes a layout of graph GA . | |
Private Attributes | |
bool | m_customOrder |
If true a custom order stored in m_nodeOrder will be used. | |
ListPure< node > | m_nodeOrder |
Contains a custom ordering for putting the graphs next to each other. | |
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 54 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.
Interface function to toggle custom ordering.
|
private |
If true a custom order stored in m_nodeOrder will be used.
Definition at line 57 of file LinearLayout.h.
Contains a custom ordering for putting the graphs next to each other.
Definition at line 60 of file LinearLayout.h.
|
private |
Definition at line 61 of file LinearLayout.h.