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: Andrew Sherlock
Subject: Re: Drawing lines in Swarm Display
Date: Mon, 20 Apr 1998 15:25:17 +0000

> 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.
                  ==================================


reply via email to

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