|
楼主 |
发表于 2011-5-1 20:33:45
|
显示全部楼层
_cmdMgr->disconnect(*dragger);
osgManipulator::Selection* selction=new osgManipulator::Selection;
selction=dynamic_cast<osgManipulator::Selection*>(_node->getParent(0));
selction->getParent(0)->removeChild(dragger);
osgManipulator:ragger* dragger=new osgManipulator::TrackballDragger();
_cmdMgr->connect(*dragger,*selction);
上面这样不对……
还有其他什么方法吗?恳请赐教 |
|