summaryrefslogtreecommitdiff
path: root/src/data/graph.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-08-01 17:23:00 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-08-01 17:23:00 +0200
commit74551d71e128efe0f105b52e84420555b70b9f6d (patch)
treea582fb097fa559bca18313a442440c5e744fe654 /src/data/graph.h
parent7f074813bdb2bfca2f7a9933e7c922132197aaba (diff)
added rotation
Diffstat (limited to 'src/data/graph.h')
-rw-r--r--src/data/graph.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/data/graph.h b/src/data/graph.h
index e9e2218..404fd8c 100644
--- a/src/data/graph.h
+++ b/src/data/graph.h
@@ -103,6 +103,14 @@ public:
* vertically
*/
void reflectNodes(QSet<Node*> nds, bool horizontal);
+
+ /*!
+ * \brief rotateNodes rotates the given set of nodes clockwise or counter-clockwise,
+ * depending on the value of the second parameter.
+ * \param nds a set of nodes to flip
+ * \param clockwose a boolean determining whether to rotate clockwise or counter-clockwise
+ */
+ void rotateNodes(QSet<Node*> nds, bool clockwise);
signals:
public slots: