The tile-to-rows algorithm for packing drawings of connected components.
More...
#include <ogdf/packing/TileToRowsCCPacker.h>
|
template<class POINT > |
static void | callGeneric (Array< POINT > &box, Array< POINT > &offset, double pageRatio) |
|
template<class POINT > |
static int | findBestRow (Array< RowInfo< POINT >> &row, int nRows, double pageRatio, const POINT &rect) |
|
The tile-to-rows algorithm for packing drawings of connected components.
Definition at line 43 of file TileToRowsCCPacker.h.
◆ TileToRowsCCPacker()
ogdf::TileToRowsCCPacker::TileToRowsCCPacker |
( |
| ) |
|
|
inline |
◆ ~TileToRowsCCPacker()
virtual ogdf::TileToRowsCCPacker::~TileToRowsCCPacker |
( |
| ) |
|
|
inlinevirtual |
◆ call() [1/2]
virtual void ogdf::TileToRowsCCPacker::call |
( |
Array< DPoint > & |
box, |
|
|
Array< DPoint > & |
offset, |
|
|
double |
pageRatio = 1.0 |
|
) |
| |
|
overridevirtual |
Arranges the rectangles given by box
.
The algorithm call takes an input an array box
of rectangles with real coordinates and computes in offset
the offset to (0,0) of each rectangle in the layout.
- Parameters
-
box | is the array of input rectangles. |
offset | is assigned the offset of each rectangle to the origin (0,0). The offset of a rectangle is its lower left point in the layout. |
pageRatio | is the desired page ratio (width / height) of the resulting layout. |
Implements ogdf::CCLayoutPackModule.
◆ call() [2/2]
virtual void ogdf::TileToRowsCCPacker::call |
( |
Array< IPoint > & |
box, |
|
|
Array< IPoint > & |
offset, |
|
|
double |
pageRatio = 1.0 |
|
) |
| |
|
overridevirtual |
Arranges the rectangles given by box
.
The algorithm call takes an input an array box
of rectangles with real coordinates and computes in offset
the offset to (0,0) of each rectangle in the layout.
- Parameters
-
box | is the array of input rectangles. |
offset | is assigned the offset of each rectangle to the origin (0,0). The offset of a rectangle is its lower left point in the layout. |
pageRatio | is the desired page ratio (width / height) of the resulting layout. |
Implements ogdf::CCLayoutPackModule.
◆ callGeneric()
template<class POINT >
static void ogdf::TileToRowsCCPacker::callGeneric |
( |
Array< POINT > & |
box, |
|
|
Array< POINT > & |
offset, |
|
|
double |
pageRatio |
|
) |
| |
|
staticprivate |
◆ findBestRow()
template<class POINT >
static int ogdf::TileToRowsCCPacker::findBestRow |
( |
Array< RowInfo< POINT >> & |
row, |
|
|
int |
nRows, |
|
|
double |
pageRatio, |
|
|
const POINT & |
rect |
|
) |
| |
|
staticprivate |
The documentation for this class was generated from the following file: