[CPML] Reworked to include actions in their own constructs
commita18aab0709d2c0666fda4349a263509827082c32
authorNicola Fontana <ntd@entidi.it>
Thu, 12 Mar 2009 14:48:16 +0000 (12 15:48 +0100)
committerNicola Fontana <ntd@entidi.it>
Thu, 12 Mar 2009 14:48:16 +0000 (12 15:48 +0100)
tree5e5bd5af4645e8acbcbd18c059e07ea473a89f3f
parentde0fd328f08e9865eb2713213388cae3f6702d65
[CPML] Reworked to include actions in their own constructs

Thinking about the function names, came out the separation between
operation and construct brings to API explosion. The CPML API
should be as clear as possible, so now the actions are merged in
their own constructs: the old cpml_intersection() is now
implemented as cpml_primitive_intersection() in cpml-primitive.c.

This also will allow to add some obvious API, such as
cpml_segment_intersection(), and some less obvious one,
such as cpml_segment_intersection_with_primitive().
17 files changed:
cpml/Makefile.am
cpml/cpml-action-intersection.c [deleted file]
cpml/cpml-action-join.c [deleted file]
cpml/cpml-action.c [deleted file]
cpml/cpml-close.c
cpml/cpml-close.h [moved from cpml/cpml-action.h with 59% similarity]
cpml/cpml-curve.c
cpml/cpml-curve.h
cpml/cpml-line.c
cpml/cpml-line.h
cpml/cpml-primitive.c
cpml/cpml-primitive.h
cpml/cpml-segment.c
cpml/cpml.h
demo/cpml-demo.c
docs/cpml/cpml-docs.xml
docs/cpml/cpml-sections.txt