summaryrefslogtreecommitdiff
path: root/src/data/graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/graph.h')
-rw-r--r--src/data/graph.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/data/graph.h b/src/data/graph.h
index 4d575e4..d00d2b2 100644
--- a/src/data/graph.h
+++ b/src/data/graph.h
@@ -48,6 +48,15 @@ public:
bool hasBbox();
void clearBbox();
+ /*!
+ * \brief realBbox computes the union of the user-defined
+ * bounding box, and the bounding boxes of the graph's
+ * contents.
+ *
+ * \return
+ */
+ QRectF realBbox();
+
QString tikz();
/*!
@@ -59,9 +68,10 @@ public:
Graph *copyOfSubgraphWithNodes(QSet<Node*> nds);
/*!
- * \brief insertGraph inserts a copy of the given graph. Prior to calling this
+ * \brief insertGraph inserts the given graph into "this". Prior to calling this
* method, the node names in the given graph should be made fresh via
- * "renameApart".
+ * "renameApart". Note that the parameter "graph" relinquishes ownership of its
+ * nodes and edges, so it should be not be allowed to exist longer than "this".
* \param graph
*/
void insertGraph(Graph *graph);