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

Home » Public Forums » archive » Re: Onscreen digitizing
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: Onscreen digitizing [message #79552] Tue, 13 March 2012 17:09
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
On Tuesday, March 13, 2012 5:44:17 PM UTC-6, Med Bennett wrote:
> On Tuesday, March 13, 2012 3:29:36 PM UTC-6, rtk wrote:
>> On Mar 13, 1:19 pm, Med Bennett <meridan.benn...@gmail.com> wrote:
>>> I have an old routine that I wrote many years ago that allows me to perform simple on-screen digitizing...

Problem solved, mostly - I rewrote the function to calculate the distance between each two successive points, and if the distance is less than some threshold, the function ends. By double-clicking while digitizing, two colocated points are generated, ending the loop. This method works, mostly, but is a little bit unreliable. If anyone has a whizzy widget version, I would love to hear about it!
Re: Onscreen digitizing [message #79553 is a reply to message #79552] Tue, 13 March 2012 16:44 Go to previous message
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
On Tuesday, March 13, 2012 3:29:36 PM UTC-6, rtk wrote:
> On Mar 13, 1:19 pm, Med Bennett <meridan.benn...@gmail.com> wrote:
>> I have an old routine that I wrote many years ago that allows me to perform simple on-screen digitizing...
>
> A quick test shows that get_kbrd() works just fine using the command
> line version of IDL 8.1. I tried it on Linux and Windows. So, your
> old routine would probably work that way.
>
> Ron

Pardon my ignorance, but how do I use the command line version vs. the Workbench (?) version I am using?
Re: Onscreen digitizing [message #79554 is a reply to message #79553] Tue, 13 March 2012 14:29 Go to previous message
rtk is currently offline  rtk
Messages: 22
Registered: September 2008
Junior Member
On Mar 13, 1:19 pm, Med Bennett <meridan.benn...@gmail.com> wrote:
> I have an old routine that I wrote many years ago that allows me to perform simple on-screen digitizing...

A quick test shows that get_kbrd() works just fine using the command
line version of IDL 8.1. I tried it on Linux and Windows. So, your
old routine would probably work that way.

Ron
Re: Onscreen digitizing [message #79556 is a reply to message #79554] Tue, 13 March 2012 13:16 Go to previous message
Bill Nel is currently offline  Bill Nel
Messages: 31
Registered: October 2010
Member
On Mar 13, 3:19 pm, Med Bennett <meridan.benn...@gmail.com> wrote:
> I used to just type a 'q' on the keyboard to quit digitizing and ext out of the function, but now it doesn't recognize the keyboard input.  Furthermore, attempting to use this function caused IDL to become unresponsive, and I had to exit and restart IDL.  I could type commands in the console and IDL would echo them, but nothing would happen.

get_kbrd(), as far as I can tell, is completely broken under
Workbench. (The documentation says "use caution when using GET_KBRD
within a loop.") It's a shame, because it was extremely useful, as
your example shows. The only alternative I know of is to write a
widget version for your processing.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Hardware graphics rendering on RedHat Linux
Next Topic: CAPS LOCK question (pun intended)

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

Current Time: Wed Oct 08 13:52:18 PDT 2025

Total time taken to generate the page: 0.00578 seconds