Re: Once again, an error I don't understand [message #28276] |
Sat, 01 December 2001 07:44  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Adam Rankin (arankin@irus.rri.on.ca) writes:
> % IDLGRMODEL::ADD: Objects can only have one parent at a
> time: <ObjHeapVar3833(IDLGRIMAGE)>
>
> sigh, wish I wasn't a n00b.
> hate to waste your time, but the formation of an IDL programmer takes
> time... (yukyuk)
Probably less time, if you get rid of those common blocks. :-)
This error occurs when you try to add the same
object to more than one object hierarchy. For
example, you can generate the error by creating
an image object and trying to add the image object
to two different model objects. The idea (I think)
is that as you build an object hierarchy, each
object can have many children, but only one parent.
That is, there is only one connection from an object
in the UP direction in the hierarchy.
> this is the code in which it takes place...
Uh, I don't do code. Particularly this *much* code! :-)
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: Once again, an error I don't understand [message #28333 is a reply to message #28276] |
Tue, 04 December 2001 08:44  |
Adam Rankin
Messages: 15 Registered: July 2001
|
Junior Member |
|
|
Hehe, I'll learn someday to get rid of em...
But as I read the (usefull) block of code, to me it seems like I'm adding
multiple image objects to one model... which seems to me like many
children to one parent.
FOR i=0, nb-1 DO BEGIN
oImage[i] -> SetProperty, DATA=image[*,*,i] ;where image is a 3d array
oImageModel -> Add, oImage[i]
END
oImageView -> Add, oImageModel
-Adam
On Sat, 1 Dec 2001, David Fanning wrote:
> Adam Rankin (arankin@irus.rri.on.ca) writes:
>
>> % IDLGRMODEL::ADD: Objects can only have one parent at a
>> time: <ObjHeapVar3833(IDLGRIMAGE)>
>
> Probably less time, if you get rid of those common blocks. :-)
>
> This error occurs when you try to add the same
> object to more than one object hierarchy. For
> example, you can generate the error by creating
> an image object and trying to add the image object
> to two different model objects. The idea (I think)
> is that as you build an object hierarchy, each
> object can have many children, but only one parent.
> That is, there is only one connection from an object
> in the UP direction in the hierarchy.
>
|
|
|