Splits and packs the components of a Graph. More...
#include <ogdf/packing/SimpleCCPacker.h>
Public Member Functions | |
SimpleCCPacker (LayoutModule *pSubLayoutModule=nullptr) | |
Constructor. | |
virtual void | call (GraphAttributes &GA) override |
Computes a layout of graph GA . | |
void | setMargins (double left, double top, double right, double bottom) |
Public Member Functions inherited from ogdf::LayoutModule | |
LayoutModule () | |
Initializes a layout module. | |
virtual | ~LayoutModule () |
void | operator() (GraphAttributes &GA) |
Computes a layout of graph GA . | |
Protected Member Functions | |
void | computeBoundingBox (const GraphAttributes &graphAttributes, DPoint &min_coord, DPoint &max_coord) |
Protected Attributes | |
double | m_bottomMargin |
double | m_leftMargin |
std::unique_ptr< LayoutModule > | m_pSubLayoutModule |
double | m_rightMargin |
double | m_topMargin |
Splits and packs the components of a Graph.
Simple proxy class that uses the TileToRowsCCPacker. Use it for layouts that do not support disconnected graphs.
Definition at line 45 of file SimpleCCPacker.h.
|
inlineexplicit |
Constructor.
Definition at line 48 of file SimpleCCPacker.h.
|
overridevirtual |
Computes a layout of graph GA
.
This method is the actual algorithm call and must be implemented by derived classes.
GA | is the input graph and will also be assigned the layout information. |
Implements ogdf::LayoutModule.
|
protected |
|
inline |
Definition at line 56 of file SimpleCCPacker.h.
|
protected |
Definition at line 68 of file SimpleCCPacker.h.
|
protected |
Definition at line 66 of file SimpleCCPacker.h.
|
protected |
Definition at line 71 of file SimpleCCPacker.h.
|
protected |
Definition at line 67 of file SimpleCCPacker.h.
|
protected |
Definition at line 69 of file SimpleCCPacker.h.