.\
testapplication.pro
Testing
This is a test program that demonstrates how to use the ACTIVECONTOUR object in an application environment.
The Coyote Library is required to run this program.
Author information
- Author
FANNING SOFTWARE CONSULTING:
David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com
- Copyright
Copyright (c) 2003-2011, Fanning Software Consulting, Inc.
- History
Modification History:
Written by David W. Fanning, 1 December 2003.
Routines
TestApplication_SnakeEvents, event
The event handler for events coming from the ActiveContour object.
TestApplication_Contour, event
The event handler for events coming from the ActiveContour button in the text application.
TestApplication_DrawEvents, event
The event handler for events coming from the draw widget in the text application.
TestApplication_Quit, event
The event handler for events coming from the quit button in the text application.
TestApplication_Cleanup, tlb
The clean-up routine for the program.
TestApplication [, imageFile] [, MIN_VALUE=MIN_VALUE] [, MAX_VALUE=MAX_VALUE]
The main test application routine.
Routine details
top TestApplication_SnakeEvents
TestApplication_SnakeEvents, event
The event handler for events coming from the ActiveContour object.
Parameters
- event in required type=structure
The event structure passed by the window manager to this program when called. The events handled here are passed to the program from the ActiveContour object.
top TestApplication_Contour
TestApplication_Contour, event
The event handler for events coming from the ActiveContour button in the text application. The ActiveContour object is set up here and the ActiveContour control panel is displayed.
Parameters
- event in required type=structure
The event structure passed by the window manager to this program when called. The events handled here are passed to the program from TestApplication.
top TestApplication_DrawEvents
TestApplication_DrawEvents, event
The event handler for events coming from the draw widget in the text application. We simply handle motion events and output the current location and image value at the image location.
Parameters
- event in required type=structure
The event structure passed by the window manager to this program when called. The events handled here are passed to the program from the TestApplication draw widget.
top TestApplication_Quit
TestApplication_Quit, event
The event handler for events coming from the quit button in the text application. Simply destroy the program.
Parameters
- event in required type=structure
The event structure passed by the window manager to this program when called. The events handled here are passed to the program from the TestApplication Quit button.
top TestApplication_Cleanup
TestApplication_Cleanup, tlb
The clean-up routine for the program. This program is called automatically when the top-level base widget is destroyed. Anything that may leak program memory is destroyed or freed up here.
Parameters
- tlb in required type=long
The identifier of the top-level base widget.
top TestApplication
TestApplication [, imageFile] [, MIN_VALUE=MIN_VALUE] [, MAX_VALUE=MAX_VALUE]
The main test application routine.
Parameters
- imageFile in optional type=string
The name of an image file to read with Read_Image. If not provided, an image file, mineral.png, from the IDL distribution will be used.
Keywords
- MIN_VALUE in optional
If provided the image will be byte scaled with this value as the MIN value in the BYTSCL command.
- MAX_VALUE in optional
If provided the image will be byte scaled with this value as the MAX value in the BYTSCL command.
File attributes
Modification date: | Fri Oct 25 15:58:08 2013 |
Lines: | 348 |
Docformat: | rst rst |