Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 
41 namespace ogdf {
42 class GraphAttributes;
43 
45 private:
46  std::unique_ptr<LayoutModule> m_secondaryLayout;
47  std::unique_ptr<CCLayoutPackModule> m_packer;
48 
49  double m_targetRatio;
50  int m_border;
51 
55  void reassembleDrawings(GraphAttributes& GA, const Graph::CCsInfo& ccs);
56 
57 public:
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 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
ogdf::GraphAttributes
Stores additional attributes of a graph (like layout information).
Definition: GraphAttributes.h:72
Graph.h
Includes declaration of graph class.
ogdf::Graph::CCsInfo
Info structure for maintaining connected components.
Definition: Graph_d.h:1908
ogdf::ComponentSplitterLayout::setLayoutModule
void setLayoutModule(LayoutModule *layout)
Definition: ComponentSplitterLayout.h:62
ogdf::ComponentSplitterLayout::setBorder
void setBorder(int border)
Definition: ComponentSplitterLayout.h:66
ogdf::ComponentSplitterLayout::m_packer
std::unique_ptr< CCLayoutPackModule > m_packer
Definition: ComponentSplitterLayout.h:47
LayoutModule.h
Declaration of interface for layout algorithms (class LayoutModule)
ogdf::CCLayoutPackModule
Base class of algorithms that arrange/pack layouts of connected components.
Definition: CCLayoutPackModule.h:49
ogdf::ComponentSplitterLayout::m_targetRatio
double m_targetRatio
Definition: ComponentSplitterLayout.h:49
ogdf::ComponentSplitterLayout::setPacker
void setPacker(CCLayoutPackModule *packer)
Definition: ComponentSplitterLayout.h:64
CCLayoutPackModule.h
Declaration of interface for algorithms that arrange/pack layouts of connected components.
ogdf::ComponentSplitterLayout::m_border
int m_border
Definition: ComponentSplitterLayout.h:50
ogdf::ComponentSplitterLayout::m_secondaryLayout
std::unique_ptr< LayoutModule > m_secondaryLayout
Definition: ComponentSplitterLayout.h:46
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::ComponentSplitterLayout
Definition: ComponentSplitterLayout.h:44
ogdf::LayoutModule
Interface of general layout algorithms.
Definition: LayoutModule.h:45