Hi Robert,
Thank you for response, I'll explain more.
I loaded any 3ds file using the following:
myNode = osgDB::readNodeFile("C:\\3.3DS");
osg::Group* root = new osg::Group();
root->addChild(myNode);
osgViewer::Viewer viewer;
viewer.setCameraManipulator(new osgGA::TrackballManipulator);
viewer.setSceneData( root );
//running my window with and widget button.
wm->addChild(buttons);
return createExample(viewer, wm, root);
Now I want to click on my widget and hide object with myNode->SetNodeMask(0),
if I understand correctly I have the following widget event
bool handlePressAdd(osgWidget::Event& ev) { .....
......
}
My question is how can I access myNode from handlePressAdd event?
and I want to perfrom opposite operation. I would like to click on myNode and
change text on the widget button.
how can I access widget from bool handle event.
Hope this explaination clrifies my question.
Thank you,
Cheers,
Danny
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=15472#15472
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org