Added support for controlling the LODScale via '*' and '+' keys in

osgProducer::Viewer.
This commit is contained in:
Robert Osfield 2004-01-10 21:29:15 +00:00
parent 10a3accf0b
commit d072e1087c
2 changed files with 11 additions and 0 deletions

View File

@ -110,6 +110,9 @@ class OSGPRODUCER_EXPORT OsgCameraGroup : public Producer::CameraGroup
void setLODScale( float scale );
float getLODScale() const { return _LODScale; }
void setFusionDistance( osgUtil::SceneView::FusionDistanceMode mode,float value=1.0f);

View File

@ -830,6 +830,14 @@ bool ViewerEventHandler::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActio
return true;
}
case '*' :
case '/' :
{
if (ea.getKey()=='*') _cg->setLODScale( _cg->getLODScale() * 1.1f);
else _cg->setLODScale( _cg->getLODScale() / 1.1f);
return true;
}
case osgGA::GUIEventAdapter::KEY_Help :
case 'h' :
{