Hello Johannes,
Johannes Brunen wrote:
> Hi,
>
> today I would like to contribute a new group core node which allows the
> user to
> select none, some or all children nodes for rendering. Basically, it is
> very (very)
> similar to the already existing Switch core but with a slightly altered
> semantic.
[SNIP - example]
> If this would be a valuable contribution I could send the files to this
> list or to any place which is appropriate.
I'd be happy to add such a contribution, however I'm wondering if it
would be better to add a MFInt32 _mfChoices; to such a type and allow
selection of an arbitrary number of children ?
NodePtr msN = Node::create();
MultiSwitchPtr ms = MultiSwitch::create();
msN->setCore(ms);
msN->addChild(c1);
msN->addChild(c2);
msN->addChild(c3);
ms->editMFChoices()->push_back(0); // select c1
ms->editMFChoices()->push_back(2); // select c3
What do you think ?
Thanks,
Carsten
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users