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

Home » Public Forums » archive » Re: Mysterious disappearing objects (bugs in IDLgrWindow::Draw)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Mysterious disappearing objects (bugs in IDLgrWindow::Draw) [message #26419 is a reply to message #26412] Wed, 29 August 2001 08:05 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Martin Lowry (m.lowry@hull.ac.uk) writes:

> I'm new to this group but have been watching for a couple of weeks and
> seen the expertise that is present here DF, CM ... So maybe somebody
> cam help me out.
> I've constructed an object that displays medical images acquired in
> 4D, ie x, y, z & time (typical dimensions 256 x 256 x 10 x 35). Onto
> the display I can draw ROIs and attach them to the models. Now come
> the tricky bit, the regions can be viewed on all slices in the volume
> OR only on that slice on which they were drawn (slice number stored in
> UVALUE of IDLgrROI). I call this 2D & 3D mode respectively and provide
> a button to toggle between them. Sometimes when I do this some of the
> ROIs don't get redrawn! When I interogate the graphics model hierachy
> (?sp.) they are clearly in the right place but dont appear on the
> screen! Are there either bugs in IDLgrWindow::Draw or am I missing
> something in the transfer?
> The following diagram might help:
> oView
> |
> --------------------------------------------------
> | | |
> TextModel 2D_ROI_Model [array of ImageModels]
> | | |
> ------------ ---------- 3D_ROI_Models
> | | | | | | |
> Txt Txt Txt ROI ROI ROI -----------
> | | |
> ROI ROI ROI
>
> Only 1 imagemodel is connected to the view at any one time and this
> carries with it its own 3D_ROI_Model and ROIs. The trick in the 2D/3D
> switch is to remove ROIs from 3D_ROI_Model and add them to
> 2D_ROI_Model, or vice-versa.
> Q: Why do some of the ROIs disappear?

It is really hard to say why things disappear in object
graphics. Perhaps you are using the wrong magical incantations. :-)

But I suspect the problem may relate to rendering order,
especially if you are moving things around in the graphics
hierarchy. I suggest you put the ROI objects at a slightly
positive Z value. This will put them in front of the image,
which I presume is a Z=0. Then they should show up clearly
all the time.

Best Regards,

David

P.S. Let's just say the proper incantations can
sometimes be found in Tolkin's wonderful trilogy.
--
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Is your IDL5.4 windows interface flaky too?
Next Topic: Re: IDL procedure "knowing its own name"

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

Current Time: Fri Oct 10 19:24:21 PDT 2025

Total time taken to generate the page: 0.88435 seconds