comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: [Q}:Rubberbanding in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: [Q}:Rubberbanding in IDL [message #3804] Mon, 20 March 1995 02:18 Go to next message
Frank J. �ynes is currently offline  Frank J. �ynes
Messages: 17
Registered: February 1995
Junior Member
"Frank J. �ynes" <frank@spacetec.no> wrote:
>
> Hi there!
>
> Has anyone got a good rubberbanding routine for IDL
> available?
>
> You know what I mean, don't you?
> You press and hold the left mouse button in a graphics window
> and you get a scalable rectangle where one corner is fixed
> at the location you pressed, and the other (diagonal) corner
> follows the mouse until you release the button.
> (And then the rectangle is either fixed or
> removed - without a trace in the image.)
>
> I want it for selecting "area of interest" in an image.
>
> TIA,
> Frank J. �ynes (frank@spacetec.no)
>

Sorry I forgot to specify - I want the routine to work for
a WIDGET_DRAW, i.e. the BOX_CURSOR routine does not apply here!

Frank.
Re: [Q}:Rubberbanding in IDL [message #3896 is a reply to message #3804] Thu, 30 March 1995 00:00 Go to previous message
rouse is currently offline  rouse
Messages: 17
Registered: July 1994
Junior Member
In article <3kjkos$qmk@nms.telepost.no>, "Frank J. �ynes" <frank@spacetec.no> writes:
|>Path: lanews.la.asu.edu!news.asu.edu!asuvax!cs.utexas.edu!howland. reston.ans.net!EU.net!dkuug!eunet.no!nuug!telepost.no!usenet
|>From: "Frank J. �ynes" <frank@spacetec.no>
|>Newsgroups: comp.lang.idl-pvwave
|>Subject: Re: [Q}:Rubberbanding in IDL
|>Date: Mon, 20 Mar 95 03:18:04 MST
|>Organization: Telepost Communications A/S
|>Lines: 26
|>Message-ID: <3kjkos$qmk@nms.telepost.no>
|>References: <3kjio3$fjn@nms.telepost.no>
|>NNTP-Posting-Host: nissemainn.spacetec.no
|>
|>"Frank J. �ynes" <frank@spacetec.no> wrote:
|>>
|>> Hi there!
|>>
|>> Has anyone got a good rubberbanding routine for IDL
|>> available?
|>>
|>> You know what I mean, don't you?
|>> You press and hold the left mouse button in a graphics window
|>> and you get a scalable rectangle where one corner is fixed
|>> at the location you pressed, and the other (diagonal) corner
|>> follows the mouse until you release the button.
|>> (And then the rectangle is either fixed or
|>> removed - without a trace in the image.)
|>>
|>> I want it for selecting "area of interest" in an image.
|>>
|>> TIA,
|>> Frank J. �ynes (frank@spacetec.no)
|>>
|>
|>Sorry I forgot to specify - I want the routine to work for
|>a WIDGET_DRAW, i.e. the BOX_CURSOR routine does not apply here!
|>
|>Frank.
|>
|>

You can get box_cursor to work in a draw widget by having a menu
entry or button labeled 'box' that executes something like this:

wset, window_number
box_cursor, x0, y0, nx, ny
wset, original_window

You get the window number using widget_control:

widget_control, id_of_draw_widget, get_value=window_number

I'd like to hear about other methods too. - Roger

+----------------------------------------------------------- -+
|Roger B. Rouse + # # # . |
| # . + |
|Arizona State University # + + # |
|Dept. Physics & Astronomy + + + # + |
|Tempe, Az, 85287-1504 + + # |
| . . @ . . |
|rouse@sevens.la.asu.edu # + + |
| + # + + + |
|"The AscII Galaxy found # + + . |
| in the Local Network." + . # |
| . # + # . Rouse|
+----------------------------------------------------------- -+
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: idl increases the size of the X daemon in HPUX
Next Topic: function to convert string to array???

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:34:45 PDT 2025

Total time taken to generate the page: 0.00619 seconds