2 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
6 <title>Planned features</title>
7 <subtitle>A very rough roadmap of ADG features implementation</subtitle>
9 <para>The following list is roughly in implementation order. All the improvements
10 must be reflected in the demo programs, where applicable.</para>
12 <simplesect id="TODO.0.4.0">
13 <title>Road to adg-0.4.0</title>
15 <itemizedlist mark="circle">
16 <listitem override="disc">Split mathematic stuff in its own library. It will be called CPML,
17 that is Cairo Path Manipulation Library.</listitem>
18 <listitem override="disc">Avoid wrapping of cairo APIs in AdgPath.</listitem>
19 <listitem override="disc">Implement AdgToyText, a basic text entity using the cairo "toy" text API.</listitem>
20 <listitem override="disc">Implement AdgTranslatable, a shared interface for entities that
21 can be translated.</listitem>
22 <listitem override="disc">Implement AdgRotable, a shared interface for entities that can be rotated.</listitem>
27 <simplesect id="TODO.0.5.0">
28 <title>Road to adg-0.5.0</title>
30 <itemizedlist mark="circle">
31 <listitem override="disc">Develop a basic demo CPML program to visually check the results.</listitem>
32 <listitem override="disc">Provide CPML APIs for accessing cairo paths and browse their segments
33 (a contiguous line segment).</listitem>
34 <listitem override="disc">Provide CPML APIs for accessing segments and browse their primitives
35 (a single line / curve / close path).</listitem>
36 <listitem override="disc">CPML APIs to offset cairo paths: specifically, a decent
37 approximation for single Bézier curves must be implemented.</listitem>
38 <listitem override="disc">Implement APIs to get intersection points between different primitives.</listitem>
39 <listitem override="disc">Provide an abstract API (cpml_segment_intersection?) to compute the
40 intersection points between two segments. To be evaluated the way to
41 return the results (maybe using an argument to specify the maximum
42 number of intersections to return).</listitem>
43 <listitem override="disc">Generate documentation for CPML.</listitem>
44 <listitem override="disc">Merge ldim and adg-demo into a single demo program, basing the user
45 interface on GtkBuilder.</listitem>
46 <listitem override="disc">Implement AdgModel as a bare empty class. Move the actual stuff in
47 AdgTitleBlock.</listitem>
48 <listitem override="disc">Rename AdgPath to AdgStroke, being the latter a stroke representation
49 of a single AdgPath.</listitem>
50 <listitem override="disc">Implement AdgPath as an AdgModel derived class of a conceptual path.
51 Any AdgPath instance could be referenced by one or more entities.</listitem>
52 <listitem override="disc">Add arcs in CPML to transparently support, whenever possible, the
53 conversion between arcs and Bézier curves.</listitem>
54 <listitem override="disc">Add to AdgPath the basic functionality to build a path: basically a
55 bunch of methods emulating the cairo path API but without the need of
56 a yet instantiated cairo context.</listitem>
57 <listitem override="disc">Add support for the CPML arc feature in AdgPath.</listitem>
58 <listitem override="disc">Update the demo using the newly implemented AdgPath to deeply test the
59 model/entity interaction.</listitem>
60 <listitem override="disc">Add a chamfer operation to AdgPath.</listitem>
61 <listitem override="disc">Add a fillet operation to AdgPath.</listitem>
62 <listitem override="disc">Change the matrix entity API, using a cleaner approach.</listitem>
63 <listitem override="disc">Move AdgTranslatable and AdgRotable directly inside AdgEntity.</listitem>
64 <listitem override="disc">Ensure there are no bitfield flags, as they are not binding friendly.</listitem>
65 <listitem override="disc">Change building scripts to get the GTK+ dependency optional.</listitem>
66 <listitem override="disc">Add AdgWidget, a GtkDrawingArea that can accept an AdgCanvas.</listitem>
67 <listitem override="disc">Optimize the implemented entities applying the 0.4 ADG infractrusture
68 and enable caching where applicable.</listitem>
69 <listitem override="disc">Use AdgToyText to draw dimenstion quote where applicable.</listitem>
70 <listitem override="disc">Add a "beyond" property to AdgDimStyle to be used when extending the
71 baseline beyond the extension lines. If not specified, it must default
72 to 3 x arrow size.</listitem>
73 <listitem override="disc">Add a three-state enum to adg-enums.h: ADG_THREE_STATE_OFF,
74 ADG_THREE_STATE_ON and ADG_THREE_STATE_UNKNOWN.</listitem>
75 <listitem override="disc">Add the three-state "outside" property to allow forcing an outside quote.
76 In the default state, the outside must be decided by the space between
77 the extension lines: if greather than 3 x arrow size => inside arrows.</listitem>
82 <simplesect id="TODO.0.6.0">
83 <title>Road to adg-0.6.0</title>
85 <itemizedlist mark="circle">
86 <listitem>Implement adg_matrix_normalize() to get rid of the scaling component
87 of a matrix: consider the point (0,0) and (1,1) on the identity matrix
88 and force on the matrix to normalize a distance of 1.4142... between
89 the same points by modifying only the xx and yy components.</listitem>
90 <listitem>Move the custom get_local_matrix() inside AdgEntity and implement a
91 common way to manage local matrix - entity interaction: if the model is
92 rotated an AdgToyText should rotate but not scaled.</listitem>
93 <listitem override="disc">Implement AdgMarker as an abstract entity: it will be the base class
94 for arrows, ticks, squares, dots and so on.</listitem>
95 <listitem override="disc">Implement AdgArrow as AdgMarker derived entity.</listitem>
96 <listitem>Rename AdgArrowStyle to AdgMarkerStyle and update the code to use the
97 newly created AdgMarker entity.</listitem>
98 <listitem>Rework the style approach by detaching the slot and type concepts: more
99 slots could be applied to the same type, such as expressing different
100 lines, such as ADG_SLOT_LINE_MODEL or ADG_SLOT_LINE_DIM, with the same
101 class (AdgLineStyle in the previous example).</listitem>
102 <listitem>Rewrite AdgLDim to use the new marker APIs instead of hardcoding the
103 arrows and calling the deprecated rendering callbacks.</listitem>
104 <listitem>Implement the outside arrows in AdgLDim.</listitem>
105 <listitem>Add AdgADim, the angular dimension.</listitem>
106 <listitem>Add AdgRDim, the radial dimension.</listitem>
107 <listitem override="disc">Rework styles by using GObject and properties.</listitem>
108 <listitem>Modify AdgMarkerStyle to use the newly implemented AdgMarker entity.</listitem>
109 <listitem>Implement a basic AdgPatternStyle, abstracting the cairo_pattern_t APIs
110 and providing a way to customize filling, similar to what AdgLineStyle
111 does for stroking.</listitem>
112 <listitem>Add AdgHatch, an entity very similar to AdgStroke but that uses
113 cairo_fill() instead of cairo_stroke().</listitem>
114 <listitem>Add AdgToyTable, a container for AdgToyText in a framed environment.</listitem>
115 <listitem>Add AdgTitleBlock, a complex entity in global space used to frame the
116 sheet and show the general drawing data (title, scale, date and so on).</listitem>
121 <simplesect id="TODO.unknown">
122 <title>Road to unknown</title>
124 <itemizedlist mark="circle">
125 <listitem>Add labeling feature to the models and let AdgDim and children points
126 be expressed as references to these labeled points instead of using
127 explicit coordinates.</listitem>
128 <listitem>The ARROW and TRIANGLE markers should follow the director path that
129 could be a curve. Use the METAPOST solution suggested by John Hobby
130 I don't remember where, that is given <parameter>angle</parameter> and <parameter>size</parameter>, rotate the
131 path by half <parameter>angle</parameter> in both directions, look for intersection with a
132 circle centered at the end of the director path with radius <parameter>size</parameter> and
133 close the resulting path.</listitem>
134 <listitem>Add connectivity feature to AdgModel: enable dependencies of models to
135 external data. Use libgda as sample data provider.</listitem>
136 <listitem override="disc">Add model-view interaction by providing signal propagation from AdgModel
137 to the dependent entities, so when a data changes the entities will be
138 automatically updated.</listitem>
139 <listitem>Implement AdgText, a generic text management, using pango.</listitem>
140 <listitem>Add self-intersection API for CPML segments.</listitem>
141 <listitem>Add datum support: for implementation ideas checkout this
142 <ulink url="http://nvl.nist.gov/pub/nistpubs/jres/104/4/html/j44mac.htm">draft</ulink>.</listitem>
143 <listitem override="disc">Add a CpmlArc primitive and some API to CpmlCurve to be able
144 to check if a curve is an arc approximation. This gives additional
145 information to do some operation, such as a proper arc offseting.</listitem>
146 <listitem>Improve Bézier offset approximation enabling the choice of approximate
147 a single curve with multiple offset curves.</listitem>