[gegl/soc-2011-warp: 21/23] GeglPath: add acces to the non-flattened path



commit 218615cc8e28caf4f8781422ee6839e4964cf6c1
Author: Michael Murà <batolettre gmail com>
Date:   Fri Jul 1 17:01:38 2011 +0200

    GeglPath: add acces to the non-flattened path

 gegl/property-types/gegl-path.c |    8 ++++++++
 gegl/property-types/gegl-path.h |   11 ++++++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/gegl/property-types/gegl-path.c b/gegl/property-types/gegl-path.c
index 075552d..a0a3c4c 100644
--- a/gegl/property-types/gegl-path.c
+++ b/gegl/property-types/gegl-path.c
@@ -1016,6 +1016,14 @@ gegl_path_add_flattener (GeglPathList *(*flattener) (GeglPathList *original))
 }
 
 GeglPathList *
+gegl_path_get_path (GeglPath *path)
+{
+  GeglPathPrivate *priv = GEGL_PATH_GET_PRIVATE (path);
+
+  return priv->path;
+}
+
+GeglPathList *
 gegl_path_get_flat_path (GeglPath *path)
 {
   GeglPathPrivate *priv = GEGL_PATH_GET_PRIVATE (path);
diff --git a/gegl/property-types/gegl-path.h b/gegl/property-types/gegl-path.h
index e0cfb9b..6d40683 100644
--- a/gegl/property-types/gegl-path.h
+++ b/gegl/property-types/gegl-path.h
@@ -435,9 +435,18 @@ typedef GeglPathList *(*GeglFlattenerFunc) (GeglPathList *original);
  */
 void                  gegl_path_add_flattener (GeglFlattenerFunc func);
 
+
+/**
+ * gegl_path_get_path:
+ * @path: a #GeglPath
+ *
+ * Return the internal untouched #GeglPathList
+ */
+GeglPathList *        gegl_path_get_path (GeglPath *path);
+
 /**
  * gegl_path_get_flat_path:
- * @path: a @GeglPath
+ * @path: a #GeglPath
  *
  * Return a polyline version of @path
  */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]