99 void pageRatio(
double ratio) { m_pageRatio = ratio; }
137 m_planarLayouter.reset(pPlanarLayouter);
Declaration and implementation of Array class and Array algorithms.
Declaration of interface for algorithms that arrange/pack layouts of connected components.
Handling of clique replacement in planarization layout.
Declaration of CrossingMinimization Module, an interface for crossing minimization algorithms.
Defines ogdf::EmbedderModule.
Includes declaration of graph class.
Declaration of interface for layout algorithms (class LayoutModule)
Declaration of interface for planar layout algorithms (used in planarization approach).
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Basic declarations, included by all source files.
The parameterized class Array implements dynamic arrays of type E.
Base class of algorithms that arrange/pack layouts of connected components.
Base class for crossing minimization algorithms.
Base class for embedder algorithms.
Stores additional attributes of a graph (like layout information).
Data type for general directed graphs (adjacency list representation).
Stores a layout of a graph (coordinates of nodes, bend points of edges).
Interface of general layout algorithms.
Interface for planar layout algorithms (used in the planarization approach).
Doubly linked lists (maintaining the length of the list).
Class for the representation of nodes.
Planarized representations (of a connected component) of a graph.
The planarization approach for drawing graphs.
double pageRatio() const
Returns the current setting of option pageRatio.
int minCliqueSize() const
Returns the current setting of option minCliqueSize.
void callSimDraw(GraphAttributes &ga)
int m_nCrossings
The number of crossings in the computed layout.
void minCliqueSize(int i)
Set the option minCliqueSize to i.
int m_cliqueSize
The minimum size of cliques to search for.
PlanarizationLayout()
Creates an instance of planarization layout and sets options to default values.
void setEmbedder(EmbedderModule *pEmbedder)
Sets the module option for the graph embedding algorithm.
std::unique_ptr< CCLayoutPackModule > m_packer
The module for arranging connected components.
void setPacker(CCLayoutPackModule *pPacker)
Sets the module option for the arrangement of connected components.
std::unique_ptr< CrossingMinimizationModule > m_crossMin
The module for computing a planar subgraph.
void pageRatio(double ratio)
Sets the option pageRatio to ratio.
void setPlanarLayouter(LayoutPlanRepModule *pPlanarLayouter)
Sets the module option for the planar layout algorithm.
std::unique_ptr< EmbedderModule > m_embedder
The module for planar embedding.
void call(GraphAttributes &ga, Graph &g)
Calls planarization layout with clique handling for GraphAttributes ga with associated graph g.
~PlanarizationLayout()
Destructor.
void call(GraphAttributes &ga) override
Calls planarization layout for GraphAttributes ga.
double m_pageRatio
The desired page ratio.
int numberOfCrossings() const
Returns the number of crossings in the computed layout.
void preprocessCliques(Graph &G, CliqueReplacer &cliqueReplacer)
std::unique_ptr< LayoutPlanRepModule > m_planarLayouter
The module for computing a planar layout.
void setCrossMin(CrossingMinimizationModule *pCrossMin)
Sets the module option for crossing minimization.
void arrangeCCs(PlanRep &PG, GraphAttributes &GA, Array< DPoint > &boundingBox) const
void fillAdjNodes(List< node > &adjNodes, PlanRep &PG, node centerNode, NodeArray< bool > &isClique, Layout &drawing)
RegisteredArray for nodes, edges and adjEntries of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
The namespace for all OGDF objects.