Interface for planar UML layout algorithms. More...
#include <ogdf/uml/LayoutPlanRepUMLModule.h>
Inheritance diagram for ogdf::LayoutPlanRepUMLModule:Public Member Functions | |
| LayoutPlanRepUMLModule () | |
| Initializes a UML planar layout module. | |
| virtual | ~LayoutPlanRepUMLModule () |
| virtual void | call (PlanRepUML &PG, adjEntry adjExternal, Layout &drawing)=0 |
Computes a planar layout of PG in drawing. | |
| const DPoint & | getBoundingBox () const |
| Returns the bounding box of the computed layout. | |
| virtual int | getOptions () |
| Returns the (generic) options. | |
| void | operator() (PlanRepUML &PG, adjEntry adjExternal, Layout &drawing) |
Computes a planar layout of PG in drawing. | |
| virtual double | separation () const =0 |
| Returns the minimal allowed distance between edges and vertices. | |
| virtual void | separation (double sep)=0 |
Sets the minimal allowed distance between edges and vertices to sep. | |
| virtual void | setOptions (int) |
| Sets the (generic) options; derived classes have to cope with the interpretation) | |
Protected Member Functions | |
| void | setBoundingBox (PlanRep &PG, Layout &drawing) |
| Computes and sets the bounding box variable m_boundingBox. | |
Protected Attributes | |
| DPoint | m_boundingBox |
| Stores the bounding box of the computed layout. | |
Interface for planar UML layout algorithms.
Definition at line 46 of file LayoutPlanRepUMLModule.h.
|
inline |
Initializes a UML planar layout module.
Definition at line 49 of file LayoutPlanRepUMLModule.h.
|
inlinevirtual |
Definition at line 51 of file LayoutPlanRepUMLModule.h.
|
pure virtual |
Computes a planar layout of PG in drawing.
Must be overridden by derived classes.
| 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::OrthoLayoutUML.
Returns the bounding box of the computed layout.
Definition at line 68 of file LayoutPlanRepUMLModule.h.
Returns the (generic) options.
Reimplemented in ogdf::OrthoLayoutUML.
Definition at line 76 of file LayoutPlanRepUMLModule.h.
|
inline |
Computes a planar layout of PG in drawing.
Definition at line 63 of file LayoutPlanRepUMLModule.h.
Returns the minimal allowed distance between edges and vertices.
Implemented in ogdf::OrthoLayoutUML.
Sets the minimal allowed distance between edges and vertices to sep.
Implemented in ogdf::OrthoLayoutUML.
|
inlineprotected |
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 98 of file LayoutPlanRepUMLModule.h.
Sets the (generic) options; derived classes have to cope with the interpretation)
Reimplemented in ogdf::OrthoLayoutUML.
Definition at line 71 of file LayoutPlanRepUMLModule.h.
|
protected |
Stores the bounding box of the computed layout.
Must be set by derived algorithms!
Definition at line 91 of file LayoutPlanRepUMLModule.h.