Re: Mysterious disappearing objects (bugs in IDLgrWindow::Draw) [message #26399] |
Thu, 30 August 2001 15:58 |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
David Fanning wrote:
>
> Andrew Cool (andrew.cool@dsto.defence.gov.au) writes:
>
>> Who's this Tolkin woman? No doubt some American re-writing
>> literary history, just as Hollywood would have us believe that
>> the Yanks captured the Enigma machine in WW2, etc, etc.
>>
>> J.R.R. Tolkien, twice Professor of Anglo-Saxon English at Oxford,
>> wrote some rather good books ... ;-)
>
> It's my humble opinion that all you computer
> geeks are *WAY* too overly concerned with spelling!
>
> You know what Twain said (no, not Shania, Mark):
> "Anyone who can only think of one way to spell a word
> obviously lacks imagination."
>
Yep, David, you've got it in one - that's why we read Tolkien,
who had more than enough imagination to go around.
Why improve on perfection? I would never dream of altering
one of your programs.. ;-)
Andrew
|
|
|
Re: Mysterious disappearing objects (bugs in IDLgrWindow::Draw) [message #26411 is a reply to message #26399] |
Wed, 29 August 2001 17:10  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Andrew Cool (andrew.cool@dsto.defence.gov.au) writes:
> Who's this Tolkin woman? No doubt some American re-writing
> literary history, just as Hollywood would have us believe that
> the Yanks captured the Enigma machine in WW2, etc, etc.
>
> J.R.R. Tolkien, twice Professor of Anglo-Saxon English at Oxford,
> wrote some rather good books ... ;-)
It's my humble opinion that all you computer
geeks are *WAY* too overly concerned with spelling!
You know what Twain said (no, not Shania, Mark):
"Anyone who can only think of one way to spell a word
obviously lacks imagination."
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
|
|
|
Re: Mysterious disappearing objects (bugs in IDLgrWindow::Draw) [message #26412 is a reply to message #26411] |
Wed, 29 August 2001 16:50  |
Andrew Cool
Messages: 219 Registered: January 1996
|
Senior Member |
|
|
David Fanning wrote:
snip..
>
> P.S. Let's just say the proper incantations can
> sometimes be found in Tolkin's wonderful trilogy.
Hey David,
Who's this Tolkin woman? No doubt some American re-writing
literary history, just as Hollywood would have us believe that
the Yanks captured the Enigma machine in WW2, etc, etc.
J.R.R. Tolkien, twice Professor of Anglo-Saxon English at Oxford,
wrote some rather good books ... ;-)
Cheers,
Andrew
------------------------------------------------------------ ---------
Andrew D. Cool .->-.
Electromagnetics & Propagation Group `-<-'
Surveillance Systems Division Transmitted on
Defence Science & Technology Organisation 100% recycled
PO Box 1500, Salisbury electrons
South Australia 5108
Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
Email : andrew.cool@dsto.defence.gov.au
------------------------------------------------------------ ---------
|
|
|
Re: Mysterious disappearing objects (bugs in IDLgrWindow::Draw) [message #26419 is a reply to message #26412] |
Wed, 29 August 2001 08:05  |
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
|
|
|
|