Graph Drawing

 v. 2022.02 (Dogwood)

ogdf::SimpleCCPacker Class Reference

Splits and packs the components of a Graph. More...

#include <ogdf/packing/SimpleCCPacker.h>

+ Inheritance diagram for ogdf::SimpleCCPacker:

Public Member Functions

 SimpleCCPacker (LayoutModule *pSubLayoutModule=nullptr)
 Constructor. More...
virtual void call (GraphAttributes &GA) override
 Computes a layout of graph GA. More...
void setMargins (double left, double top, double right, double bottom)
- Public Member Functions inherited from ogdf::LayoutModule
 LayoutModule ()
 Initializes a layout module. More...
virtual ~LayoutModule ()
void operator() (GraphAttributes &GA)
 Computes a layout of graph GA. More...

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< LayoutModulem_pSubLayoutModule
double m_rightMargin
double m_topMargin

Detailed Description

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 44 of file SimpleCCPacker.h.

Constructor & Destructor Documentation

◆ SimpleCCPacker()

ogdf::SimpleCCPacker::SimpleCCPacker ( LayoutModule pSubLayoutModule = nullptr)


Definition at line 48 of file SimpleCCPacker.h.

Member Function Documentation

◆ call()

virtual void ogdf::SimpleCCPacker::call ( GraphAttributes GA)

Computes a layout of graph GA.

This method is the actual algorithm call and must be implemented by derived classes.

GAis the input graph and will also be assigned the layout information.

Implements ogdf::LayoutModule.

◆ computeBoundingBox()

void ogdf::SimpleCCPacker::computeBoundingBox ( const GraphAttributes graphAttributes,
DPoint min_coord,
DPoint max_coord 

◆ setMargins()

void ogdf::SimpleCCPacker::setMargins ( double  left,
double  top,
double  right,
double  bottom 

Definition at line 56 of file SimpleCCPacker.h.

Member Data Documentation

◆ m_bottomMargin

double ogdf::SimpleCCPacker::m_bottomMargin

Definition at line 69 of file SimpleCCPacker.h.

◆ m_leftMargin

double ogdf::SimpleCCPacker::m_leftMargin

Definition at line 67 of file SimpleCCPacker.h.

◆ m_pSubLayoutModule

std::unique_ptr<LayoutModule> ogdf::SimpleCCPacker::m_pSubLayoutModule

Definition at line 72 of file SimpleCCPacker.h.

◆ m_rightMargin

double ogdf::SimpleCCPacker::m_rightMargin

Definition at line 68 of file SimpleCCPacker.h.

◆ m_topMargin

double ogdf::SimpleCCPacker::m_topMargin

Definition at line 70 of file SimpleCCPacker.h.

The documentation for this class was generated from the following file: