On Fri, 29 Oct 1999, Cyrille Chepelov (home) wrote:

> On Fri, 29 Oct 1999, James Henstridge wrote:
> 
> > What do you need to draw with wavy lines?  If it is just a connection
> 
> I need to, period. I use a model I haven't defined, so I'm not right to
> modify the graphic language. This modeling uses wavy line, I have to draw
> wavy lines.
> 

I was more talking of wavy lines as a graphics primitive and wondering
which objects you needed the primitive for.

> > line, you should probably just create a new line object.  This is probably
> > a better idea than adding that feature to the existing objects in this
> > case.
> 
> mmmm.... this basically requires me to fork the current line object :-(
> Probably better to add a property to the line object (Alex's explanations
> and more code digging made obviously clear why doing that at the renderer
> level is not a good idea ; besides, I don't really want to code the
> drawing of a filled rectangle with wavy borders)
> 

There are already a number of different line objects -- take a look at the
UML sheet for examples.  If you need a wavy connecting line for a
particular type of diagram, it probably makes sense to create a new line
object.

> 
> > Drawing rotated text is never going to be efficient with the current X
> > APIs.  There is talk of extended APIs in XFree86 4.0 which handle anti
> > aliased text, and they may also support this.  I think it would be better
> > to wait for this.  Currently, to rotate text, you need to create a
> > GdkPixmap big enough to hold the string, draw the text to the pixmap,
> > create a GdkImage of the pixmap so you can access the pixel values, rotate
> > the bitmap and finally draw the rotated pixel data to the screen (maybe
> > using gdkrgb).  This is not very efficient.
> 
> Who really cares ? I want nice EPS graphics ; if people find that feature
> too slow for their machines, they simply don't need to use it. 

Well if you can convince Alex of this, I guess it will go in.  But it is
still very difficult to get arbitrarily rotated text with the current X
api's (the work around code would be very ugly), so I don't know how
likely it is that it will go in.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/

Reply via email to