Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ComponentSplitterLayout.h
Go to the documentation of this file.
1
32#pragma once
33
36#include <ogdf/basic/geometry.h>
39
40#include <memory>
41#include <vector>
42
43namespace ogdf {
44
46private:
47 std::unique_ptr<LayoutModule> m_secondaryLayout;
48 std::unique_ptr<CCLayoutPackModule> m_packer;
49
52
57
58public:
60
61 void call(GraphAttributes& GA) override;
62
63 void setLayoutModule(LayoutModule* layout) { m_secondaryLayout.reset(layout); }
64
65 void setPacker(CCLayoutPackModule* packer) { m_packer.reset(packer); }
66
67 void setBorder(int border) { m_border = border; }
68};
69
70}
Declaration of interface for algorithms that arrange/pack layouts of connected components.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Declaration of interface for layout algorithms (class LayoutModule)
MLG is the main data structure for ModularMultilevelMixer.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
The parameterized class Array implements dynamic arrays of type E.
Definition Array.h:214
Base class of algorithms that arrange/pack layouts of connected components.
std::unique_ptr< CCLayoutPackModule > m_packer
void call(GraphAttributes &GA) override
Computes a layout of graph GA.
void setLayoutModule(LayoutModule *layout)
void reassembleDrawings(GraphAttributes &GA, const Array< List< node > > &nodesInCC)
Combines drawings of connected components to a single drawing by rotating components and packing the ...
void setPacker(CCLayoutPackModule *packer)
std::unique_ptr< LayoutModule > m_secondaryLayout
Stores additional attributes of a graph (like layout information).
Interface of general layout algorithms.
Doubly linked lists (maintaining the length of the list).
Definition List.h:1435
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.