Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Drawing.h File Reference

Utilities for creating nice drawings. TODO should be moved to a central location. More...

#include <ogdf/basic/Graph.h>
#include <ogdf/basic/basic.h>
#include <array>
#include <functional>

Go to the source code of this file.

Namespaces

 ogdf
 The namespace for all OGDF objects.
 

Functions

void ogdf::bendEdge (GraphAttributes &GA, edge e, double bend)
 Add a bendpoint to the middle of an edges that is shifted orthogonally by a certain fraction of the edge's length. More...
 
void ogdf::fixLoops (Graph &G, const std::function< void(edge, edge)> &cb)
 Safely call a function on all self-loops to, e.g., subdivide or remove them. More...
 
void ogdf::fixParallels (Graph &G, const std::function< void(edge, edge)> &cb)
 Safely call a function on all parallel edges to, e.g., subdivide or remove them. More...
 
void ogdf::spreadParallels (GraphAttributes &GA, double min_spread=0.1, double max_spread=0.6, double max_abs=100)
 A bends to parallel edges to make them distinguishable. More...
 

Variables

const std::array< Color, 63 > ogdf::colors
 An array of 63 different colors to cycle through. More...
 

Detailed Description

Utilities for creating nice drawings. TODO should be moved to a central location.

Author
Simon D. Fink ogdf@.nosp@m.niko.nosp@m..fink.nosp@m..bay.nosp@m.ern
License:
This file is part of the Open Graph Drawing Framework (OGDF).
Copyright (C)
See README.md in the OGDF root directory for details.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 or 3 as published by the Free Software Foundation; see the file LICENSE.txt included in the packaging of this file for details.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/copyleft/gpl.html

Definition in file Drawing.h.