Loading [MathJax]/extensions/tex2jax.js

Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
SimpleCCPacker.h
Go to the documentation of this file.
1
32#pragma once
33
35
36#include <memory>
37
38namespace ogdf {
39
41
46public:
49 : m_pSubLayoutModule(pSubLayoutModule) {
50 m_leftMargin = 10.0;
51 m_rightMargin = 10.0;
52 m_bottomMargin = 10.0;
53 m_topMargin = 10.0;
54 }
55
56 void setMargins(double left, double top, double right, double bottom) {
57 m_leftMargin = left;
58 m_rightMargin = right;
59 m_bottomMargin = bottom;
60 m_topMargin = top;
61 }
62
63 virtual void call(GraphAttributes& GA) override;
64
65protected:
70
71 std::unique_ptr<LayoutModule> m_pSubLayoutModule;
72
75};
76
77}
Declaration of interface for layout algorithms (class LayoutModule)
Stores additional attributes of a graph (like layout information).
Interface of general layout algorithms.
Splits and packs the components of a Graph.
SimpleCCPacker(LayoutModule *pSubLayoutModule=nullptr)
Constructor.
std::unique_ptr< LayoutModule > m_pSubLayoutModule
virtual void call(GraphAttributes &GA) override
Computes a layout of graph GA.
void setMargins(double left, double top, double right, double bottom)
void computeBoundingBox(const GraphAttributes &graphAttributes, DPoint &min_coord, DPoint &max_coord)
#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.