Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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

Constructor & Destructor Documentation

◆ SimpleCCPacker()

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

Constructor.

Definition at line 48 of file SimpleCCPacker.h.

Member Function Documentation

◆ call()

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

Computes a layout of graph GA.

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

Parameters
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 
)
protected

◆ setMargins()

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

Definition at line 56 of file SimpleCCPacker.h.

Member Data Documentation

◆ m_bottomMargin

double ogdf::SimpleCCPacker::m_bottomMargin
protected

Definition at line 68 of file SimpleCCPacker.h.

◆ m_leftMargin

double ogdf::SimpleCCPacker::m_leftMargin
protected

Definition at line 66 of file SimpleCCPacker.h.

◆ m_pSubLayoutModule

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

Definition at line 71 of file SimpleCCPacker.h.

◆ m_rightMargin

double ogdf::SimpleCCPacker::m_rightMargin
protected

Definition at line 67 of file SimpleCCPacker.h.

◆ m_topMargin

double ogdf::SimpleCCPacker::m_topMargin
protected

Definition at line 69 of file SimpleCCPacker.h.


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