From tomas.aguado@mi.madritel.es Thu Oct 7 04:17:41 2004 Received: with ECARTIS (v1.0.0; list info-inventor); Thu, 07 Oct 2004 04:17:57 -0700 (PDT) Received: from smtp07.retemail.es (smtp07.auna.com [62.81.186.17]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id i97BHenj001741 for ; Thu, 7 Oct 2004 04:17:41 -0700 Received: from [213.37.219.91] by smtp07.retemail.es (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20041007111722.BBPT9737.smtp07.retemail.es@[213.37.219.91]> for ; Thu, 7 Oct 2004 13:17:22 +0200 Message-ID: <416525C0.3070804@mi.madritel.es> Date: Thu, 07 Oct 2004 13:17:20 +0200 From: =?ISO-8859-1?Q?Tom=E1s_Aguado_G=F3mez?= User-Agent: Mozilla Thunderbird 0.6 (X11/20040605) X-Accept-Language: en-us, en MIME-Version: 1.0 To: info-inventor@oss.sgi.com Subject: Creating an SoCube, SoCone... From a SoNode.. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-archive-position: 102 X-ecartis-version: Ecartis v1.0.0 Sender: info-inventor-bounce@oss.sgi.com Errors-to: info-inventor-bounce@oss.sgi.com X-original-sender: tomas.aguado@mi.madritel.es Precedence: bulk X-list: info-inventor Hello: I am developing an interface in QT to create 3D scenes; I thought (and it's almos vital for me) I could create a SoCube for example from an SoNode. I explain: the fact is that I have a std Map of C++ And every Item of a List (QlistViewItem as I am making It in QT) is relationed with an SoNode, so, when I insert an item in the Qlist it must have a parent especified by the user(SoSeparator,Sogroup..), I watch in the map for the SoNode relating to this "parent" and I want to add the child to this SoNode, but as it is not an SoSeparator, I can't access to the "addChild" function, Is there anyway to do this creating a SoNode variable, specifying its type (SoCube, SoSeparator...) and the access its function for example: [........] SoNode *Cube=new SoNode; Cube->typeId(SoCube);--------------->This Is the function I am watching for!!! Cube->width=3.0; [.......] Thanks!