Removed osgGA::GUIEventHandlerVisitor and osgGA::SetSceneVistor classes/headers as
this classes weren't being actively used the distribution, effectively being noops.
This commit is contained in:
@@ -12,9 +12,7 @@ CXXFILES = \
|
||||
EventQueue.cpp\
|
||||
GUIEventAdapter.cpp\
|
||||
GUIEventHandler.cpp\
|
||||
GUIEventHandlerVisitor.cpp\
|
||||
KeySwitchMatrixManipulator.cpp\
|
||||
SetSceneViewVisitor.cpp\
|
||||
StateSetManipulator.cpp\
|
||||
SimpleViewer.cpp\
|
||||
TerrainManipulator.cpp\
|
||||
|
||||
@@ -49,52 +49,3 @@ void GUIEventHandler::event(osg::NodeVisitor* nv, osg::Drawable* drawable)
|
||||
}
|
||||
}
|
||||
|
||||
void CompositeGUIEventHandler::getUsage(osg::ApplicationUsage& usage) const
|
||||
{
|
||||
for (ChildList::const_iterator itr=_children.begin();
|
||||
itr!=_children.end();
|
||||
++itr)
|
||||
{
|
||||
(*itr)->getUsage(usage);
|
||||
}
|
||||
}
|
||||
|
||||
bool CompositeGUIEventHandler::handle(const GUIEventAdapter& ea,GUIActionAdapter& aa, osg::Object* object, osg::NodeVisitor* nv)
|
||||
{
|
||||
bool result=false;
|
||||
|
||||
for (ChildList::iterator itr=_children.begin();
|
||||
itr!=_children.end();
|
||||
++itr)
|
||||
{
|
||||
result |= (*itr)->handle(ea, aa, object, nv);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
bool CompositeGUIEventHandler::addChild(GUIEventHandler *child)
|
||||
{
|
||||
if (child && !containsNode(child))
|
||||
{
|
||||
// note ref_ptr<> automatically handles incrementing child's reference count.
|
||||
_children.push_back(child);
|
||||
return true;
|
||||
}
|
||||
else return false;
|
||||
|
||||
}
|
||||
|
||||
bool CompositeGUIEventHandler::removeChild(GUIEventHandler *child)
|
||||
{
|
||||
ChildList::iterator itr = findChild(child);
|
||||
if (itr!=_children.end())
|
||||
{
|
||||
// note ref_ptr<> automatically handles decrementing child's reference count.
|
||||
_children.erase(itr);
|
||||
|
||||
return true;
|
||||
}
|
||||
else return false;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
#include <osgGA/GUIEventHandlerVisitor>
|
||||
#include <osgGA/GUIEventHandler>
|
||||
|
||||
void osgGA::GUIEventHandlerVisitor::visit(osgGA::CompositeGUIEventHandler& cgeh)
|
||||
{
|
||||
for(unsigned int i=0; i<cgeh.getNumChildren(); i++){
|
||||
cgeh.getChild(i)->accept(*this);
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
#include <osgGA/SetSceneViewVisitor>
|
||||
#include <osgGA/StateSetManipulator>
|
||||
#include <osgGA/MatrixManipulator>
|
||||
|
||||
void osgGA::SetSceneViewVisitor::visit(osgGA::MatrixManipulator& cm)
|
||||
{
|
||||
cm.setNode(_sceneView->getSceneData());
|
||||
cm.setByInverseMatrix(_sceneView->getViewMatrix());
|
||||
cm.init(*getGUIEventAdapter(),*getGUIActionAdapter());
|
||||
cm.home(*getGUIEventAdapter(),*getGUIActionAdapter());
|
||||
}
|
||||
|
||||
void osgGA::SetSceneViewVisitor::visit(osgGA::StateSetManipulator& ssm)
|
||||
{
|
||||
ssm.setStateSet(_sceneView->getGlobalStateSet());
|
||||
}
|
||||
@@ -113,10 +113,6 @@ void StateSetManipulator::getUsage(osg::ApplicationUsage& usage) const
|
||||
usage.addKeyboardMouseBinding("w","Toggle polygon fill mode between fill, line (wire frame) and points");
|
||||
}
|
||||
|
||||
void StateSetManipulator::accept(GUIEventHandlerVisitor& gehv)
|
||||
{
|
||||
gehv.visit(*this);
|
||||
}
|
||||
|
||||
void StateSetManipulator::setBackfaceEnabled(bool newbackface)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user