Base class of algorithms that arrange/pack layouts of connected components.
More...
#include <ogdf/packing/CCLayoutPackModule.h>
Base class of algorithms that arrange/pack layouts of connected components.
- See also
- PlanarizationLayout
PlanarizationGridLayout
Definition at line 46 of file CCLayoutPackModule.h.
◆ CCLayoutPackModule()
ogdf::CCLayoutPackModule::CCLayoutPackModule |
( |
| ) |
|
|
inline |
◆ ~CCLayoutPackModule()
virtual ogdf::CCLayoutPackModule::~CCLayoutPackModule |
( |
| ) |
|
|
inlinevirtual |
◆ call() [1/2]
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.
This method is the actual algorithm call and must be overridden by derived classes.
- 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. |
Implemented in ogdf::TileToRowsCCPacker.
◆ call() [2/2]
Arranges the rectangles given by box
.
The algorithm call takes an input an array box
of rectangles with integer coordinates and computes in offset
the offset to (0,0) of each rectangle in the layout.
This method is the actual algorithm call and must be overridden by derived classes.
- 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. |
Implemented in ogdf::TileToRowsCCPacker.
◆ checkOffsets() [1/2]
Checks if the rectangles in box
do not overlap for given offsets.
This function serves for checking if the computed offsets are correct in the sense that the rectangles do not overlap in the resulting layout.
- Parameters
-
box | is the array of rectangles. |
offset | is the array of corresponding offsets. |
◆ checkOffsets() [2/2]
Checks if the rectangles in box
do not overlap for given offsets.
This function serves for checking if the computed offsets are correct in the sense that the rectangles do not overlap in the resulting layout.
- Parameters
-
box | is the array of rectangles. |
offset | is the array of corresponding offsets. |
◆ checkOffsetsTP()
Checks if the rectangles in box
do not overlap for given offsets.
- Parameters
-
box | is the array of rectangles. |
offset | is the array of corresponding offsets. |
- Template Parameters
-
POINT | is the generic point type. |
◆ operator()() [1/2]
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. |
Definition at line 82 of file CCLayoutPackModule.h.
◆ operator()() [2/2]
Arranges the rectangles given by box
.
The algorithm call takes an input an array box
of rectangles with integer 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. |
Definition at line 115 of file CCLayoutPackModule.h.
The documentation for this class was generated from the following file: