86 bool draw(std::ostream &os);
const GraphIO::SVGSettings & m_settings
SVG configuration.
void drawBezierPath(std::stringstream &ss, List< DPoint > &points)
Draws a list of points using cubic Bézier interpolation.
bool draw(std::ostream &os)
Prints the graph and attributes of this printer to the given output stream.
void drawEdge(pugi::xml_node xmlNode, edge e)
Draws a sequence of lines for an edge.
void drawClusters(pugi::xml_node xmlNode)
Draws a rectangle for each cluster in the ogdf::ClusterGraph.
void drawEdges(pugi::xml_node xmlNode)
Draws a sequence of lines for each edge in the graph.
void drawCluster(pugi::xml_node xmlNode, cluster c)
Draws a single cluster as a rectangle.
const GraphAttributes & m_attr
attributes of the graph to be visualized
const ClusterGraphAttributes * m_clsAttr
attributes of the cluster graph (nullptr if no cluster graph)
void drawNodes(pugi::xml_node xmlNode)
Draws all nodes of the graph.
SvgPrinter(const GraphAttributes &attr, const GraphIO::SVGSettings &settings)
Creates a new SVG Printer for a ogdf::Graph.
void writeDashArray(pugi::xml_node xmlNode, StrokeType lineStyle, double lineWidth)
Generates a string that describes the requested dash type.
void drawArrowHead(pugi::xml_node xmlNode, const DPoint &start, DPoint &end, adjEntry adj)
Draws an arrow head at the end of the edge.
void appendLineStyle(pugi::xml_node line, edge e)
Writes the requested line style to the line's XML-node.
bool isCoveredBy(const DPoint &point, adjEntry adj)
Determines whether a candidate arrow tip lies inside the rectangle of the node.
pugi::xml_node writeHeader(pugi::xml_document &doc)
Writes the header including the bounding box as the viewport.
Stores additional attributes of a graph (like layout information).
Doubly linked lists (maintaining the length of the list).
pugi::xml_node drawPolygon(pugi::xml_node xmlNode, const std::list< double > points)
Draws a polygon with the respective points.
Class for the representation of edges.
Stores additional attributes of a clustered graph (like layout information).
Class for the representation of nodes.
void drawBezier(std::stringstream &ss, const DPoint &p1, const DPoint &p2, const DPoint &c1, const DPoint &c2)
Draws a cubic Bezíer path.
void drawLines(std::stringstream &ss, List< DPoint > &points)
Draws a list of points as straight lines.
void drawLine(std::stringstream &ss, const DPoint &p1, const DPoint &p2)
Draws the path corresponding to a single line to the stream.
Representation of clusters in a clustered graph.
Condensed settings for drawing SVGs.
StrokeType
Line types of strokes.
void drawRoundPath(std::stringstream &ss, List< DPoint > &points)
Draws a list of points as straight lines connected by circular arcs.
The namespace for all OGDF objects.
Declares class GraphIO which provides access to all graph read and write functionality.
bool isArrowEnabled(adjEntry adj)
Returns whether an edge arrow is to be drawn.
SvgPrinter(const ClusterGraphAttributes &attr, const GraphIO::SVGSettings &settings)
Creates a new SVG Printer for a ogdf::ClusterGraph.
double getArrowSize(adjEntry adj)
Returns the size of the arrow.
Class for adjacency list elements.
pugi::xml_node drawCurve(pugi::xml_node xmlNode, edge e, List< DPoint > &points)
Draws the curve depicting a particular edge.
void drawNode(pugi::xml_node xmlNode, node v)
Draws a single node.