Interface for planar layout algorithms (used in the planarization approach). More...
#include <ogdf/planarity/LayoutPlanRepModule.h>
Public Member Functions | |
LayoutPlanRepModule () | |
Initializes a planar layout module. More... | |
virtual | ~LayoutPlanRepModule () |
Destructor. More... | |
virtual void | call (PlanRep &PG, adjEntry adjExternal, Layout &drawing)=0 |
Computes a planar layout of PG in drawing . More... | |
const DPoint & | getBoundingBox () const |
Returns the bounding box of the computed layout. More... | |
void | operator() (PlanRep &PG, adjEntry adjExternal, Layout &drawing) |
Computes a planar layout of PG in drawing . More... | |
virtual double | separation () const =0 |
Returns the minimal allowed distance between edges and vertices. More... | |
virtual void | separation (double sep)=0 |
Sets the minimal allowed distance between edges and vertices to sep . More... | |
Protected Member Functions | |
void | setBoundingBox (PlanRep &PG, Layout &drawing) |
Computes and sets the bounding box variable m_boundingBox. More... | |
Protected Attributes | |
DPoint | m_boundingBox |
Stores the bounding box of the computed layout. More... | |
Interface for planar layout algorithms (used in the planarization approach).
Definition at line 48 of file LayoutPlanRepModule.h.
|
inline |
Initializes a planar layout module.
Definition at line 51 of file LayoutPlanRepModule.h.
|
inlinevirtual |
Destructor.
Definition at line 54 of file LayoutPlanRepModule.h.
|
pure virtual |
Computes a planar layout of PG
in drawing
.
Must be overridden by derived classes. The implementation must also set m_boundingBox, which gives the bounding box of the computed layout.
PG | is the input planarized representation which may be modified. |
adjExternal | is an adjacenty entry on the external face. |
drawing | is the computed layout of PG . |
Implemented in ogdf::OrthoLayout.
|
inline |
Returns the bounding box of the computed layout.
Definition at line 73 of file LayoutPlanRepModule.h.
|
inline |
Computes a planar layout of PG
in drawing
.
Definition at line 68 of file LayoutPlanRepModule.h.
|
pure virtual |
Returns the minimal allowed distance between edges and vertices.
Implemented in ogdf::OrthoLayout.
|
pure virtual |
Sets the minimal allowed distance between edges and vertices to sep
.
Implemented in ogdf::OrthoLayout.
Computes and sets the bounding box variable m_boundingBox.
An algorithm can call setBoundingBox() for setting the m_boundingBox variable if no faster implementation is available.
Definition at line 93 of file LayoutPlanRepModule.h.
|
protected |
Stores the bounding box of the computed layout.
Must be set by derived algorithms!
Definition at line 86 of file LayoutPlanRepModule.h.