Hi Nick,

try this:

osg::Switch *myswitch = dynamic_cast<osg::Switch*>(node);
if(myswitch)
   // is a switch
else
  // is not a switch


Rafa.


On 8/27/07, Nick Prudent <[EMAIL PROTECTED]> wrote:
> Newbie question:
>
> How do you find out if a osg:Group node is a Switch? Node::asGroup() can be
> used to determine if thi is a osg::Group, but what about osg::Switch ?
>
> Thanks,
>
> - Nick -
>
> _________________________________________________________________
> Put Your Face In Your Space with Windows Live Spaces
> http://spaces.live.com/?mkt=en-ca
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial  http://www.ai2.upv.es
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to