142 virtual void call(
UMLGraph ¨Graph)
override;
152 bool l_saveCliqueHandling = m_processCliques;
153 m_processCliques =
false;
158 preProcess(umlGraph);
161 doSimpleCall(umlGraph);
167 postProcess(umlGraph);
170 m_processCliques = l_saveCliqueHandling;
182 virtual void callSimDraw(
UMLGraph ¨Graph);
186 * \brief Calls planarization layout with fixed embedding given by \p umlGraph.
187 * \pre The graph has no
self-loops.
188 * @param umlGraph is the input graph and will also be assigned the layout information.
189 * The fixed embedding is obtained from the layout information (
node 190 * coordinates, bend points) in \p umlGraph.
192 virtual void callFixEmbed(
UMLGraph ¨Graph);
202 virtual void callIncremental(
UMLGraph ¨graph,
233 int opts = m_planarLayouter->getOptions();
247 m_crossMin.reset(pCrossMin);
258 m_embedder.reset(pEmbedder);
272 m_planarLayouter.reset(pPlanarLayouter);
283 m_packer.reset(pPacker);
291 int numberOfCrossings()
const {
297 void assureDrawability(
UMLGraph& umlGraph);
309 void reembed(
PlanRepUML &PG,
int ccNumber,
bool l_align =
false,
310 bool l_gensExist =
false);
312 virtual void preProcess(
UMLGraph &UG);
313 virtual void postProcess(
UMLGraph& UG);
318 face findBestExternalFace(
double pageRatio() const
Returns the current setting of option pageRatio.
Declaration and implementation of HashArray class.
bool m_arrangeLabels
Option for re-arranging labels.
The parameterized class Array implements dynamic arrays of type E.
virtual ~PlanarizationLayoutUML()
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Declaration of orthogonal representation of planar graphs.
void removeUnnecessaryBendsHV()
Removes unnecessary bend points in orthogonal segements.
Defines ogdf::EmbedderModule.
void simpleCall(GraphAttributes &GA)
Simple call function.
The planarization layout algorithm.
std::unique_ptr< UMLCrossingMinimizationModule > m_crossMin
The moule for UML crossing minimization.
void pageRatio(double ratio)
Sets the option pageRatio to ratio.
Interface of UML layout algorithms.
void simpleCall(UMLGraph ¨Graph)
Simple call function that does not care about cliques etc.
void call(GraphAttributes &GA)
Calls planarization layout for GraphAttributes GA and computes a layout.
int m_nCrossings
The number of crossings in the computed layout.
Stores additional attributes of a graph (like layout information).
Doubly linked lists (maintaining the length of the list).
Interface for planar UML layout algorithms.
Planarized representation (of a connected component) of a UMLGraph; allows special handling of hierar...
Declaration of CrossingMinimization Module, an interface for crossing minimization algorithms...
std::unique_ptr< CCLayoutPackModule > m_packer
The module for arranging connected components.
Base class for UML crossing minimization algorithms.
Faces in a combinatorial embedding.
Base class of algorithms that arrange/pack layouts of connected components.
Class for the representation of nodes.
double m_pageRatio
The desired page ratio.
void setLayouterOptions(int ops)
void setPlanarLayouter(LayoutPlanRepUMLModule *pPlanarLayouter)
Sets the module option for the planar layout algorithm.
std::unique_ptr< EmbedderModule > m_embedder
The module for planar embedding.
void setEmbedder(EmbedderModule *pEmbedder)
Sets the module option for the graph embedding algorithm.
void setPacker(CCLayoutPackModule *pPacker)
Sets the module option for the arrangement of connected components.
The namespace for all OGDF objects.
void insertGenMergers()
Merges generalizations at a common superclass.
Base class for embedder algorithms.
std::unique_ptr< LayoutPlanRepUMLModule > m_planarLayouter
The module for computing a planar layout.
Combinatorial embeddings of planar graphs with modification functionality.
Declaration of interface for layout algorithms for UML diagrams.
Declaration of interface for planar layout algorithms for UML diagrams (used in planarization approac...
Planarized representations (of a connected component) of a graph.
Declaration of interface for algorithms that arrange/pack layouts of connected components.