Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

ComponentSplitterLayout.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <memory>
38 #include <ogdf/basic/geometry.h>
40 #include <vector>
41 
42 namespace ogdf {
43 
45 {
46 private:
47  std::unique_ptr<LayoutModule> m_secondaryLayout;
48  std::unique_ptr<CCLayoutPackModule> m_packer;
49 
50  double m_targetRatio;
51  int m_border;
52 
56  void reassembleDrawings(GraphAttributes &GA, const Array<List<node> > &nodesInCC);
57 
58 public:
60 
61  void call(GraphAttributes &GA) override;
62 
63  void setLayoutModule(LayoutModule *layout) {
64  m_secondaryLayout.reset(layout);
65  }
66 
67  void setPacker(CCLayoutPackModule *packer) {
68  m_packer.reset(packer);
69  }
70 };
71 
72 }
Declaration of class GraphAttributes which extends a Graph by additional attributes.
The parameterized class Array implements dynamic arrays of type E.
Definition: Array.h:200
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:99
std::unique_ptr< CCLayoutPackModule > m_packer
void setPacker(CCLayoutPackModule *packer)
Stores additional attributes of a graph (like layout information).
Doubly linked lists (maintaining the length of the list).
Definition: List.h:40
MLG is the main data structure for ModularMultilevelMixer.
Base class of algorithms that arrange/pack layouts of connected components.
Declaration of interface for layout algorithms (class LayoutModule)
void setLayoutModule(LayoutModule *layout)
Interface of general layout algorithms.
Definition: LayoutModule.h:44
std::unique_ptr< LayoutModule > m_secondaryLayout
The namespace for all OGDF objects.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment, DPolygon, DRect, DIntersectableRect.
Declaration of interface for algorithms that arrange/pack layouts of connected components.