Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
LinearLayout.h
Go to the documentation of this file.
1
35#pragma once
36
37#include <ogdf/basic/Graph.h>
39#include <ogdf/basic/List.h>
40#include <ogdf/basic/basic.h>
41
42namespace ogdf {
43class GraphAttributes;
44
50private:
53
56 double m_outWidth;
57
58public:
66
69
71 virtual ~LinearLayout();
72
73 virtual void call(GraphAttributes& GA) override;
74
76 virtual void setCustomOrder(bool o);
77};
78
79}
Includes declaration of graph class.
Declaration of interface for layout algorithms (class LayoutModule)
Declaration of doubly linked lists and iterators.
Basic declarations, included by all source files.
Stores additional attributes of a graph (like layout information).
Interface of general layout algorithms.
Layout the graph with nodes next to each other with natural or custom order and draw the edges as sem...
ListPure< node > m_nodeOrder
Contains a custom ordering for putting the graphs next to each other.
virtual void setCustomOrder(bool o)
Interface function to toggle custom ordering.
bool m_customOrder
If true a custom order stored in m_nodeOrder will be used.
LinearLayout(double w, ListPure< node > o)
Constructor that takes a desired width and a custom ordering.
virtual ~LinearLayout()
Standard destructor.
LinearLayout()
Constructor that uses a standard width and no custom order of the nodes.
virtual void call(GraphAttributes &GA) override
Computes a layout of graph GA.
Doubly linked lists.
Definition List.h:233
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
The namespace for all OGDF objects.