swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing lines in Swarm Display


From: Ginger Booth
Subject: Re: Drawing lines in Swarm Display
Date: Mon, 20 Apr 1998 11:07:50 -0400

Hi, gang,
        Just to add a little more nuisance to the mix....  It would be
nice to have lines -with width-.  (Of course, linestyles would also be
nice....)  Java doesn't provide lines with width--to get that you have
to translate polylines to filled polygons, rather a nuisance.  (At 
least, that's the method I thought of.)  Annoying, since in general,
the problem is simply that a one-pixel wide line doesn't look good for
non-Manhattan geometries.

2 bits,
        Ginger


Andrew Sherlock wrote:
> 
> > Gek Woo Tan wrote:
> > >
> > > Hi,
> > >
> > > It seems that Raster display only draws points and rectangles.  I would
> > > like to draw lines in the display window, connecting points together.
> > > How do I do that?
> > >
> >
> > I have an object which inherits from ZoomRaster that allows the drawing
> > of lines.  The only problem is that my code depends on X in unix.  It
> > would not work for windows.  Since Swarm is moving away from any
> > platform specific gui implementations, I have not advertised it.  Let me
> > know if you want a copy of this object.
> >
> > Rob Kewley
> >
> 
> I have managed to get lines and filled quadrilaterals on a raster in
> NT.  I basically copied  the code Marcus posted on
> http://www.santafe.edu/projects/swarm/archive/list-archive.9804/0051.html
> to draw ellipses but called appropriate line and polygon functions in
> win32dib.c  .   I could also give this to anyone interested.
> 
> Andy
> 
> ---
> Andrew Sherlock <address@hidden>
> Manufacturing Planning Group, Mechanical Engineering,
> King's Buildings, University of Edinburgh,
> tel. +44 (0)131 650 8696
> 
>                   ==================================
>    Swarm-Support is for discussion of the technical details of the day
>    to day usage of Swarm.  For list administration needs (esp.
>    [un]subscribing), please send a message to <address@hidden>
>    with "help" in the body of the message.
>                   ==================================

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]