From f819c5ba44023769d5c8512cdf489d001c1da09d Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Thu, 19 Apr 2012 13:22:42 +0100 Subject: Edges can now be reversed easily --- tikzit/src/common/GraphChange.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tikzit/src/common/GraphChange.h') 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. @@ -300,6 +300,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 -- cgit v1.2.3