summaryrefslogtreecommitdiff
path: root/tikzit/src/common/GraphChange.h
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2012-04-19 13:22:42 +0100
committerAlex Merry <dev@randomguy3.me.uk>2012-05-04 10:14:38 +0100
commitf819c5ba44023769d5c8512cdf489d001c1da09d (patch)
tree7fc1d801672e04b40ee6f82f2409adea4c2a780f /tikzit/src/common/GraphChange.h
parentec48fc2bcce2483d89eb51a185c5826a8fcc7c6c (diff)
Edges can now be reversed easily
Diffstat (limited to 'tikzit/src/common/GraphChange.h')
-rw-r--r--tikzit/src/common/GraphChange.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/tikzit/src/common/GraphChange.h b/tikzit/src/common/GraphChange.h
index cb4ca09..ef56005 100644
--- a/tikzit/src/common/GraphChange.h
+++ b/tikzit/src/common/GraphChange.h
@@ -33,6 +33,7 @@ typedef enum {
EdgesPropertyChange,
NodesShift,
NodesFlip,
+ EdgesReverse,
BoundingBoxChange,
GraphPropertyChange,
NodeOrderChange,
@@ -291,7 +292,6 @@ typedef enum {
*/
+ (GraphChange*)shiftNodes:(NSSet*)ns byPoint:(NSPoint)p;
-
/*!
@brief Construct a horizontal or vertical flip of a set of nodes.
@param ns the affected nodes.
@@ -301,6 +301,13 @@ typedef enum {
+ (GraphChange*)flipNodes:(NSSet*)ns horizontal:(BOOL)b;
/*!
+ @brief Construct a reversal of a set of edges.
+ @param es the affected edges.
+ @result A reverse of a set of edges.
+ */
++ (GraphChange*)reverseEdges:(NSSet*)es;
+
+/*!
@brief Construct a bounding box change
@param oldBB the old bounding box
@param newBB the new bounding box