info-inventor
[Top] [All Lists]

SoWrapperKit heairchys, adding child dynamicly?

To: info-inventor@xxxxxxxxxxx
Subject: SoWrapperKit heairchys, adding child dynamicly?
From: Graeme Phillipson <G.P.Phillipson-97@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 28 Mar 2002 16:27:49 +0000
Sender: owner-inventor@xxxxxxxxxxx
Hello,
I'm trying to constuct a heirachy made of SoWrapperKits. I want the user to 
be able to add and remove objects from the heirchychy dynamicly, so instead 
of doing setPart with "childList[ANumber]" I'm doing this:-
SoNodeKitListPart 
*childList=(SoNodeKitListPart*)scene->getPart("childList",true);
SoNode* newChildNode=newChild->getScene();
childList->addChild(newChildNode);

where "scene" is a pointer to a SoWrapperKit. But when I add a second part it 
replaces the first, instead of joing it as a sibling. Can anyone point out 
what I'm doing wrong?

Thanks,
Graeme.

<Prev in Thread] Current Thread [Next in Thread>
  • SoWrapperKit heairchys, adding child dynamicly?, Graeme Phillipson <=