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
34#include <ogdf/basic/Graph.h>
36#include <ogdf/basic/basic.h>
38
39#include <memory>
40
41namespace ogdf {
42class GraphAttributes;
43
45private:
46 std::unique_ptr<LayoutModule> m_secondaryLayout;
47 std::unique_ptr<CCLayoutPackModule> m_packer;
48
51
56
57public:
59
60 void call(GraphAttributes& GA) override;
61
62 void setLayoutModule(LayoutModule* layout) { m_secondaryLayout.reset(layout); }
63
64 void setPacker(CCLayoutPackModule* packer) { m_packer.reset(packer); }
65
66 void setBorder(int border) { m_border = border; }
67};
68
69}
Declaration of interface for algorithms that arrange/pack layouts of connected components.
Includes declaration of graph class.
Declaration of interface for layout algorithms (class LayoutModule)
Basic declarations, included by all source files.
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 Graph::CCsInfo &ccs)
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
Info structure for maintaining connected components.
Definition Graph_d.h:1896
Stores additional attributes of a graph (like layout information).
Interface of general layout algorithms.
#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.