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.
>
|
|
|