diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-17 18:39:31 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-17 18:39:31 +0000 |
commit | f90dd4ffc4b679e61a2a8cf43853b7d3c72c3e83 (patch) | |
tree | 15842d8311e621dc2776a77c9740bd72784f13f1 /tikzit/src/common/Edge.h | |
parent | 18871fdd7bbfb43eb0971ee358554f321f789eee (diff) |
Calculate the head and tail of edges to be just where they contact the node (ie: behave more like tikz).
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@388 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/common/Edge.h')
-rw-r--r-- | tikzit/src/common/Edge.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/tikzit/src/common/Edge.h b/tikzit/src/common/Edge.h index 6069b9f..b92d7a7 100644 --- a/tikzit/src/common/Edge.h +++ b/tikzit/src/common/Edge.h @@ -142,14 +142,36 @@ typedef enum { @property (assign) EdgeBendMode bendMode; /*! + @property head + @brief The starting point of the edge. + @detail This value is computed based on the source, target and + either bend or in/out angles. It is where the edge + makes contact with the source node. + */ +@property (readonly) NSPoint head; + +/*! + @property tail + @brief The ending point of the edge. + @detail This value is computed based on the source, target and + either bend or in/out angles. It is where the edge + makes contact with the target node. + */ +@property (readonly) NSPoint tail; + +/*! @property cp1 - @brief The first control point. Computed from the source, target, and bend. + @brief The first control point of the edge. + @detail This value is computed based on the source, target and + either bend or in/out angles. */ @property (readonly) NSPoint cp1; /*! @property cp2 - @brief The second control point. Computed from the source, target, and bend. + @brief The second control point of the edge. + @detail This value is computed based on the source, target and + either bend or in/out angles. */ @property (readonly) NSPoint cp2; |