Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
TileToRowsCCPacker.h
Go to the documentation of this file.
1
32#pragma once
33
35
36namespace ogdf {
37
38
41 template<class POINT>
42 struct RowInfo;
43
44public:
47
48 virtual ~TileToRowsCCPacker() { }
49
62 virtual void call(Array<DPoint>& box, Array<DPoint>& offset, double pageRatio = 1.0) override;
63
76 virtual void call(Array<IPoint>& box, Array<IPoint>& offset, double pageRatio = 1.0) override;
77
78private:
79 template<class POINT>
80 static void callGeneric(Array<POINT>& box, Array<POINT>& offset, double pageRatio);
81
82 template<class POINT>
83 static int findBestRow(Array<RowInfo<POINT>>& row, int nRows, double pageRatio,
84 const POINT& rect);
85};
86
87}
Declaration of interface for algorithms that arrange/pack layouts of connected components.
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.
The tile-to-rows algorithm for packing drawings of connected components.
virtual void call(Array< DPoint > &box, Array< DPoint > &offset, double pageRatio=1.0) override
Arranges the rectangles given by box.
static void callGeneric(Array< POINT > &box, Array< POINT > &offset, double pageRatio)
static int findBestRow(Array< RowInfo< POINT > > &row, int nRows, double pageRatio, const POINT &rect)
TileToRowsCCPacker()
Creates an instance of tile-to-rows packer.
virtual void call(Array< IPoint > &box, Array< IPoint > &offset, double pageRatio=1.0) override
Arranges the rectangles given by box.
#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.