Re: Arrows as part of lines, argument for

2001-05-09 Thread fd

hi,

wouldn't it be nice to have fallbacks in RenderOps, lika a DrawArrowFunc,
which would only be called, when set. Otherwise lines could be used.

the same way you could think of other fallbacks, for recangles, lines, if
there would be a DrawPointFunc, etc. this way you could implement a new
renderer with only implementing a very basic set of functions, eg a line.

i think this way it would be very easy, for example to write graphic format
renderers.

i was just thinking about it, when i started an xfig output renderer
some time ago.

cu,

fabian

-- 
fabian debusosz
geva tel+49-241-9200211
weiern 171   fax +49-241-525294
d-52078 aachen email [EMAIL PROTECTED]




Re: Arrows as part of lines, argument for

2001-05-09 Thread Lars Clausen

On Wed, 9 May 2001, [EMAIL PROTECTED] wrote:

 hi,
 
 wouldn't it be nice to have fallbacks in RenderOps, lika a DrawArrowFunc,
 which would only be called, when set. Otherwise lines could be used.
 
 the same way you could think of other fallbacks, for recangles, lines, if
 there would be a DrawPointFunc, etc. this way you could implement a new
 renderer with only implementing a very basic set of functions, eg a line.

Interesting idea -- have drawRectangle, drawPolyline etc fall back to
drawLine could be useful.  But for arrowheads, it would require a very
different approach, since the arrow information is still separate from the
line information.

 i think this way it would be very easy, for example to write graphic
 format renderers.

That would help get a trivial renderer up.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | HÃ¥rdgrim of Numenor
I do not agree with a word that you say, but I| Retainer of Sir Kegg
will defend to the death your right to say it.|   of Westfield
--Evelyn Beatrice Hall paraphrasing Voltaire   | Chaos Berserker of Khorne




Re: Arrows as part of lines, argument for

2001-05-08 Thread Sebastian Fischmeister

Lars Clausen [EMAIL PROTECTED] writes:
 Here's an argument for having the arrowhead be part of the line rather than
 slapped on top: When exporting to a format that has lines with arrows, you
 lose the arrowhead information, and the arrow becomes a set of lines that
 just happen to be at the end of the line.

Another problem: An arrow does not end with a peak; it ends with a
rectangle. Not good, because if you magnify the arrow (in your
document), you see that the peak is missing.

  -Sebastian