On Tue, 18 Jul 2006, Peter W. Draper wrote:
> On Fri, 14 Jul 2006, Mark Taylor wrote:
>
> > > > sky/pointAtCoords:
> > > > Is there a (Tcl-accessible) way of indicating a sky position
> > > > in GAIA? This would ideally be some sort of moveable
> > > > visible cursor or pointer drawn on the image, but failing
> > > > that just warping the zoom window to the right place would
> > > > be better than nothing. This function on top of
> > > > fits/image/loadFromURL would already make GAIA a worthwhile
> > > > addition to the PLASTIC desktop.
> > >
> > > Yes, that should also be possible, in many ways. We could just draw a
> > > graphic, or more elaborately fake a table. Any preferences?
> >
> > Just drawing a graphic would be best I think. Something to bear in
> > mind is that one way this message can be used is to sync the mouse
> > pointer between different tools as it's moved around, so this message
> > could arrive several times a second.
>
> Hi Mark,
>
> think I've implemented this one. It just draws a circle on the image (at
> the correct place naturally) and if necessary moves the scroll to make
> sure it is visible (note this isn't possible when the position is off
> image and the image fills the whole of the main window). When presented
> with the same position twice it removes the marker.
Excellent. I've modified it slightly so that it only scrolls to centre
on the new position if it would otherwise have been out of view, since
it was a bit distracting otherwise.
--
Mark Taylor Astronomical Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|