Open
Graph Drawing
Framework

 v.2012.07
 

ogdf::MultilevelLayoutModule Class Reference

Interface of general layout algorithms that also allow a MultilevelGraph as call parameter, extending the interface of a simple LayoutModule. More...

#include <ogdf/module/MultilevelLayoutModule.h>

+ Inheritance diagram for ogdf::MultilevelLayoutModule:

List of all members.

Public Member Functions

 MultilevelLayoutModule ()
 Initializes a multilevel layout module.
virtual ~MultilevelLayoutModule ()
virtual void call (GraphAttributes &GA)=0
 Computes a layout of graph GA.
virtual void call (MultilevelGraph &MLG)
 Computes a layout of graph MLG.
void operator() (GraphAttributes &GA)
 Computes a layout of graph GA.
- Public Member Functions inherited from ogdf::LayoutModule
 LayoutModule ()
 Initializes a layout module.
virtual ~LayoutModule ()
virtual void call (GraphAttributes &GA, GraphConstraints &GC)
 Computes a layout of graph GA wrt the constraints in GC (if applicable).

Detailed Description

Interface of general layout algorithms that also allow a MultilevelGraph as call parameter, extending the interface of a simple LayoutModule.

Definition at line 66 of file MultilevelLayoutModule.h.


Constructor & Destructor Documentation

ogdf::MultilevelLayoutModule::MultilevelLayoutModule ( )
inline

Initializes a multilevel layout module.

Definition at line 69 of file MultilevelLayoutModule.h.

virtual ogdf::MultilevelLayoutModule::~MultilevelLayoutModule ( )
inlinevirtual

Definition at line 71 of file MultilevelLayoutModule.h.


Member Function Documentation

virtual void ogdf::MultilevelLayoutModule::call ( GraphAttributes GA)
pure virtual

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.

Implemented in ogdf::PreprocessorLayout, and ogdf::ScalingLayout.

virtual void ogdf::MultilevelLayoutModule::call ( MultilevelGraph MLG)
inlinevirtual

Computes a layout of graph MLG.

This method can be implemented optionally to allow a LayoutModule to modify the Graph. This allows some Layout Algorithms to save Memory, compared to a normal call(GA) DO NOT implement this if you are not sure whether this would save you Memory! This method only helps if the Graph is already in the MultiLevelGraph Format (or can be converted without creating a copy) AND the layout would need a copy otherwise. All Incremental Layouts (especially energy based) CAN be called by ModularMultilevelMixer. The standard implementation converts the MLG to GA and uses call(GA).

If implemented, the following Implementation of call(GA) is advised to ensure consistent behaviour of the two call Methods: void YourLayout::call(GraphAttributes &GA) { MultilevelGraph MLG(GA); call(MLG); MLG.exportAttributes(GA); }

Parameters:
MLGis the input graph and will also be assigned the layout information.

Reimplemented in ogdf::PreprocessorLayout, and ogdf::ScalingLayout.

Definition at line 111 of file MultilevelLayoutModule.h.

void ogdf::MultilevelLayoutModule::operator() ( GraphAttributes GA)
inline

Computes a layout of graph GA.

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

Reimplemented from ogdf::LayoutModule.

Definition at line 87 of file MultilevelLayoutModule.h.


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