186 doCall(G,
nullptr,
gridLayout, boundingBox,
false);
225 PlanarGridLayoutModule::callGrid(G,
gridLayout);
285 using PlanarGridLayoutModule::doCall;
Declaration of class GridLayout.
Declaration of interface for layout algorithms (class LayoutModule)
Declaration of a base class for planar representations of graphs and cluster graphs.
Class for adjacency list elements.
Stores additional attributes of a graph (like layout information).
Data type for general directed graphs (adjacency list representation).
Representation of a graph's grid layout.
Base class for grid layout algorithms.
virtual void doCall(const Graph &G, GridLayout &gridLayout, IPoint &boundingBox)=0
Implements the algorithm call.
virtual void call(GraphAttributes &GA) override final
Calls the grid layout algorithm (general call).
double m_separation
The minimum distance between nodes.
GridLayoutModule()
Initializes a grid layout module.
void callGrid(const Graph &G, GridLayout &gridLayout)
Calls the grid layout algorithm (call for GridLayout).
IPoint m_gridBoundingBox
The computed bounding box of the grid layout.
virtual ~GridLayoutModule()
void mapGridLayout(const Graph &G, GridLayout &gridLayout, GraphAttributes &AG)
Internal transformation of grid coordinates to real coordinates.
double separation() const
Returns the current setting of the minimum distance between nodes.
void separation(double sep)
Sets the minimum distance between nodes.
const IPoint & gridBoundingBox() const
Base class for grid layout algorithms operating on a PlanRep.
void callGrid(const Graph &G, GridLayout &gridLayout)
Calls the grid layout algorithm (call for GridLayout).
virtual ~GridLayoutPlanRepModule()
void callGrid(PlanRep &PG, GridLayout &gridLayout)
Calls the grid layout algorithm (call for GridLayout of a PlanRep).
void callGridFixEmbed(PlanRep &PG, GridLayout &gridLayout, adjEntry adjExternal=nullptr)
Calls the grid layout algorithm with a fixed planar embedding (call for GridLayout of a PlanRep).
GridLayoutPlanRepModule()
Initializes a plan-rep grid layout module.
void callGridFixEmbed(const Graph &G, GridLayout &gridLayout, adjEntry adjExternal=nullptr)
Calls the grid layout algorithm with a fixed planar embedding (call for GridLayout).
void doCall(const Graph &G, adjEntry adjExternal, GridLayout &gridLayout, IPoint &boundingBox, bool fixEmbedding) override
Implements PlanarGridLayoutModule::doCall().
virtual void doCall(PlanRep &PG, adjEntry adjExternal, GridLayout &gridLayout, IPoint &boundingBox, bool fixEmbedding)=0
Implements the algorithm call.
Interface of general layout algorithms.
Standard values for graphical attributes and layouts.
Planarized representations (of a connected component) of a graph.
Base class for planar grid layout algorithms.
void callFixEmbed(GraphAttributes &AG, adjEntry adjExternal=nullptr)
Calls the grid layout algorithm with a fixed planar embedding (general call).
virtual void doCall(const Graph &G, GridLayout &gridLayout, IPoint &boundingBox) override
Implements the GridLayoutModule::doCall().
virtual void doCall(const Graph &G, adjEntry adjExternal, GridLayout &gridLayout, IPoint &boundingBox, bool fixEmbedding)=0
Implements the algorithm call.
PlanarGridLayoutModule()
Initializes a planar grid layout module.
bool handleTrivial(const Graph &G, GridLayout &gridLayout, IPoint &boundingBox)
Handles the special cases of graphs with less than 3 nodes.
virtual ~PlanarGridLayoutModule()
void callGridFixEmbed(const Graph &G, GridLayout &gridLayout, adjEntry adjExternal=nullptr)
Calls the grid layout algorithm with a fixed planar embedding (call for GridLayout).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.