Added new getCurrentCamaeraManipulator(), and removed and debugging message.
This commit is contained in:
@@ -36,8 +36,13 @@ public:
|
||||
*/
|
||||
void addNumberedCameraManipulator(CameraManipulator *cm);
|
||||
|
||||
CameraManipulator* getCurrentCameraManipulator() { return _current.get(); }
|
||||
|
||||
const CameraManipulator* getCurrentCameraManipulator() const { return _current.get(); }
|
||||
|
||||
// Overrides from CameraManipulator...
|
||||
|
||||
|
||||
virtual void setCamera(osg::Camera* c) { _current->setCamera(c); }
|
||||
|
||||
virtual const osg::Camera * getCamera() const { return _current->getCamera(); }
|
||||
|
||||
@@ -27,7 +27,6 @@ bool KeySwitchCameraManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapt
|
||||
KeyManipMap::iterator it=_manips.find(ea.getKey());
|
||||
if(it != _manips.end()){
|
||||
osg::notify(osg::INFO)<<"Switching to manipulator: "<<(*it).second.first<<std::endl;
|
||||
std::cout<<"***Switching to manipulator: "<<(*it).second.first<<std::endl;
|
||||
it->second.second->setNode(_current->getNode());
|
||||
it->second.second->setCamera(_current->getCamera());
|
||||
it->second.second->init(ea,aa);
|
||||
|
||||
Reference in New Issue
Block a user