info-inventor-dev
[Top] [All Lists]

Is there a way to replace nodes one-on-one?

To: info-inventor-dev@xxxxxxxxxxx
Subject: Is there a way to replace nodes one-on-one?
From: Tomás Aguado Gómez <tomas.aguado@xxxxxxxxxxxxxx>
Date: Tue, 02 Nov 2004 19:06:14 +0100
Sender: info-inventor-dev-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (X11/20040926)
Hello everyone!:
I found the function I was talking about, it's :

        virtual void replaceChild (SoNode *oldchild, SoNode*newchild);

But I have a problem, I don't really want to "replace", I want to change one node for the other, that's changing the position of Node A in the COIN tree for Node B, and on the contrary too, I can't find any function or combination of functions to make this.¿How can I do It?.

Thanks in Advance!

Tomás Aguado Gómez

Division de Arquitectura de Computadores

Grupo de Modelado y realidad virtual

http://dac.escet.urjc.es/investigacion/GMRV/

<Prev in Thread] Current Thread [Next in Thread>