Hi Thomas,<br><br>I&#39;d be curious to know what level of detail will be chosen when selecting the functions to be exposed in the vtable. I thought we&#39;ll probably select those functions/operatons which are currently provide the branching between the renderers.<br>
In this particular case we would probably add a DrawMarkerSymbol to represent the renderer specific msDrawMarkerSymbolGD / msDrawMarkerSymbolAGG etc, variations.<br>In this regard it remains up to the renderer how the default symbol is drawn in effect.<br>
<br>Would you describe in more details what you have in your mind about the desired vtable architecture, I&#39;m really interested in.<br><br>Best regards,<br><br>Tamas<br><br><br><br><br><div class="gmail_quote">2009/2/5 thomas bonfort <span dir="ltr">&lt;<a href="mailto:thomas.bonfort@gmail.com">thomas.bonfort@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Tamas,<br>
those kind of inconsistencies (as there are quite a few others) will<br>
hopefully be a thing of the past once we switch to the vtable<br>
rendering architecture. I&#39;d favor leaving things as they are for 5.4<br>
and wait for 6.0 for introducing and documenting these changes.<br>
<br>
best regards,<br>
thomas<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Feb 5, 2009 at 01:19, Tamas Szekeres &lt;<a href="mailto:szekerest@gmail.com">szekerest@gmail.com</a>&gt; wrote:<br>
&gt; Folks,<br>
&gt;<br>
&gt; Currently the GD and AGG renderer behaves differently when drawing a point<br>
&gt; with no symbol specified. In the code I can see something like for AGG<br>
&gt;<br>
&gt; if(style-&gt;symbol == 0) { // simply draw a circle of the specified color<br>
&gt;<br>
&gt; ren-&gt;renderEllipse(p-&gt;x+ox,p-&gt;y+oy,size,size,0,agg_color,agg_ocolor,width);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; return;<br>
&gt; &nbsp; &nbsp; }<br>
&gt;<br>
&gt; The corresponding code for GD looks like:<br>
&gt;<br>
&gt; if(style-&gt;symbol == 0 &amp;&amp; fc &gt;= 0) { /* simply draw a single pixel of the<br>
&gt; specified color */<br>
&gt; &nbsp; &nbsp; gdImageSetPixel(img, (int)(p-&gt;x + ox), (int)(p-&gt;y + oy), fc);<br>
&gt; &nbsp; &nbsp; return;<br>
&gt; &nbsp; }<br>
&gt;<br>
&gt;<br>
&gt; Wouldn&#39;t it be reasonable to use the same approach for the different<br>
&gt; renderers? I would prefer the AGG version to be followed.<br>
&gt;<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Tamas<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; mapserver-dev mailing list<br>
&gt; <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>