Open
Graph Drawing
Framework

 v.2007.11
 

ogdf::TileToRowsCCPacker Class Reference

The tile-to-rows algorithm for packing drawings of connected components. More...

#include <TileToRowsCCPacker.h>

Inheritance diagram for ogdf::TileToRowsCCPacker:

ogdf::CCLayoutPackModule

List of all members.

Public Member Functions

 TileToRowsCCPacker ()
 Creates an instance of tile-to-rows packer.
virtual ~TileToRowsCCPacker ()
void call (Array< DPoint > &box, Array< DPoint > &offset, double pageRatio=1.0)
 Arranges the rectangles given by box.
void call (Array< IPoint > &box, Array< IPoint > &offset, double pageRatio=1.0)
 Arranges the rectangles given by box.

Static Private Member Functions

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)


Detailed Description

The tile-to-rows algorithm for packing drawings of connected components.

Definition at line 68 of file TileToRowsCCPacker.h.


Constructor & Destructor Documentation

ogdf::TileToRowsCCPacker::TileToRowsCCPacker (  )  [inline]

Creates an instance of tile-to-rows packer.

Definition at line 74 of file TileToRowsCCPacker.h.

virtual ogdf::TileToRowsCCPacker::~TileToRowsCCPacker (  )  [inline, virtual]

Definition at line 76 of file TileToRowsCCPacker.h.


Member Function Documentation

void ogdf::TileToRowsCCPacker::call ( Array< DPoint > &  box,
Array< DPoint > &  offset,
double  pageRatio = 1.0 
) [virtual]

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.

void ogdf::TileToRowsCCPacker::call ( Array< IPoint > &  box,
Array< IPoint > &  offset,
double  pageRatio = 1.0 
) [virtual]

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.

template<class POINT>
static void ogdf::TileToRowsCCPacker::callGeneric ( Array< POINT > &  box,
Array< POINT > &  offset,
double  pageRatio 
) [inline, static, private]

template<class POINT>
static int ogdf::TileToRowsCCPacker::findBestRow ( Array< RowInfo< POINT > > &  row,
int  nRows,
double  pageRatio,
const POINT &  rect 
) [inline, static, private]


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

© 1999-2007 by oreas GmbH, © 2005-2007 by University Dortmund and University Cologne.

Generated on Thu Nov 22 19:40:13 2007 by doxygen 1.5.4.