cw_defroi for true color displays [message #21421] |
Tue, 22 August 2000 00:00  |
asb
Messages: 13 Registered: May 1994
|
Junior Member |
|
|
I need a program to draw rois on images. cw_defroi doesn't work properly
with ture colr displays (it doesn't properly show the contour while you're
drawing it). Does anyone have a module for drawing rois that works on 24
bit color displays?
|
|
|
Re: CW_DEFROI [message #26602 is a reply to message #21421] |
Wed, 12 September 2001 06:45  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
L E Olsson (le.olsson@rfa.mas.lu.se) writes:
> I want to include the modal widget CW_DEFROI in my GUIBuilder based
> program. The problem is that when I start the CW_DEFROI and starts to draw
> the
> ROI in the drawwindow, the CW-DEFROI-Window moves to the back. Since
> my original window covers the entire screen, I can not see the CW_DEFROI
> anymore. I have to move the window on my screen to see the widget and be
> able to press DONE on the widget.
>
> How do I incorporate the CW_DEFROI Window in my original window? Or how
> do I keep the CW_DEFROI on top while still be able to use the drawwindow?
I've only ever used CW_DEFROI a couple of times,
mostly because--like you--I find the interface
clunky and difficult to work with. I much prefer
to add ROI capability to my own draw widgets.
The bottom line, I think, is that because CW_DEFROI
employs it's own event loop, there is no way to
get it to do what you want it to do without
modifying it rather significantly. (Actually,
it was my attempt to get it to fit into *my*
application window, as a compound widgets are
suppose to do, that finally convinced me to give
up on it.)
If you decided to add your own ROI capability
to your windows, here are a couple of articles
that explain at least one way to do it:
http://www.dfanning.com/tips/line_on_image.html
http://www.dfanning.com/tips/rubberband_widget.html
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|