summaryrefslogtreecommitdiff
path: root/src/data/graph.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-07-20 14:19:08 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-07-20 14:19:08 +0200
commit7bdf1bbb2b65612bd3f349562ca622f28dc1abff (patch)
tree1cc9383a6cd8e6b3201920f48de072b48d09c1f0 /src/data/graph.h
parent92d09d474eecb5bb48857408095e9c8564fe4337 (diff)
reflection
Diffstat (limited to 'src/data/graph.h')
-rw-r--r--src/data/graph.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/data/graph.h b/src/data/graph.h
index 82e1f95..e9e2218 100644
--- a/src/data/graph.h
+++ b/src/data/graph.h
@@ -46,7 +46,8 @@ public:
void addEdge(Edge *e, int index);
void removeEdge(Edge *e);
int maxIntName();
- QString freshNodeName();
+ QRectF boundsForNodes(QSet<Node*> ns);
+ QString freshNodeName();
/*!
* \brief renameApart assigns fresh names to all of the nodes in "this",
@@ -93,6 +94,15 @@ public:
* \param graph
*/
void insertGraph(Graph *graph);
+
+ /*!
+ * \brief reflectNodes flips the given set of nodes horizontally or vertically,
+ * depending on the value of the second parameter.
+ * \param nds a set of nodes to flip
+ * \param horizontal a boolean determining whether to flip horizontally or
+ * vertically
+ */
+ void reflectNodes(QSet<Node*> nds, bool horizontal);
signals:
public slots: