Open
Graph Drawing
Framework

 v.2007.11
 

ogdf::CCLayoutPackModule Class Reference

Base class of algorithms that arrange/pack layouts of connected components. More...

#include <CCLayoutPackModule.h>

Inheritance diagram for ogdf::CCLayoutPackModule:

ogdf::TileToRowsCCPacker

List of all members.

Public Member Functions

 CCLayoutPackModule ()
 Initializes a layout packing module.
virtual ~CCLayoutPackModule ()
virtual void call (Array< DPoint > &box, Array< DPoint > &offset, double pageRatio=1.0)=0
 Arranges the rectangles given by box.
void operator() (Array< DPoint > &box, Array< DPoint > &offset, double pageRatio=1.0)
 Arranges the rectangles given by box.
virtual void call (Array< IPoint > &box, Array< IPoint > &offset, double pageRatio=1.0)=0
 Arranges the rectangles given by box.
void operator() (Array< IPoint > &box, Array< IPoint > &offset, double pageRatio=1.0)
 Arranges the rectangles given by box.
void * operator new (size_t nBytes)
void * operator new (size_t, void *p)
void operator delete (void *p)

Static Public Member Functions

static bool checkOffsets (const Array< DPoint > &box, const Array< DPoint > &offset)
 Checks if the rectangles in box do not overlap for given offsets.
static bool checkOffsets (const Array< IPoint > &box, const Array< IPoint > &offset)
 Checks if the rectangles in box do not overlap for given offsets.

Static Private Member Functions

template<class POINT>
static bool checkOffsetsTP (const Array< POINT > &box, const Array< POINT > &offset)
 Checks if the rectangles in box do not overlap for given offsets.


Detailed Description

Base class of algorithms that arrange/pack layouts of connected components.

See also:
PlanarizationLayout
PlanarizationGridLayout

Definition at line 73 of file CCLayoutPackModule.h.


Constructor & Destructor Documentation

ogdf::CCLayoutPackModule::CCLayoutPackModule (  )  [inline]

Initializes a layout packing module.

Definition at line 76 of file CCLayoutPackModule.h.

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

Definition at line 78 of file CCLayoutPackModule.h.


Member Function Documentation

virtual void ogdf::CCLayoutPackModule::call ( Array< DPoint > &  box,
Array< DPoint > &  offset,
double  pageRatio = 1.0 
) [pure 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.

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.

void ogdf::CCLayoutPackModule::operator() ( Array< DPoint > &  box,
Array< DPoint > &  offset,
double  pageRatio = 1.0 
) [inline]

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 111 of file CCLayoutPackModule.h.

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

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.

void ogdf::CCLayoutPackModule::operator() ( Array< IPoint > &  box,
Array< IPoint > &  offset,
double  pageRatio = 1.0 
) [inline]

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 149 of file CCLayoutPackModule.h.

static bool ogdf::CCLayoutPackModule::checkOffsets ( const Array< DPoint > &  box,
const Array< DPoint > &  offset 
) [static]

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.

static bool ogdf::CCLayoutPackModule::checkOffsets ( const Array< IPoint > &  box,
const Array< IPoint > &  offset 
) [static]

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.

void* ogdf::CCLayoutPackModule::operator new ( size_t  nBytes  )  [inline]

Definition at line 179 of file CCLayoutPackModule.h.

void* ogdf::CCLayoutPackModule::operator new ( size_t  ,
void *  p 
) [inline]

Definition at line 179 of file CCLayoutPackModule.h.

void ogdf::CCLayoutPackModule::operator delete ( void *  p  )  [inline]

Definition at line 179 of file CCLayoutPackModule.h.

template<class POINT>
static bool ogdf::CCLayoutPackModule::checkOffsetsTP ( const Array< POINT > &  box,
const Array< POINT > &  offset 
) [inline, static, private]

Checks if the rectangles in box do not overlap for given offsets.

This is a parameterized function for generic point types POINT.

Parameters:
box is the array of rectangles.
offset is the array of corresponding offsets.


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:12 2007 by doxygen 1.5.4.