#include <simgear/scene/sky/sky.hxx>
#include <simgear/scene/util/SGPickCallback.hxx>
+#include <osg/Camera>
#include <osgViewer/Viewer>
#include "FGManipulator.hxx"
/** Just pick into the scene and return the pick callbacks on the way ...
*/
static bool pick( unsigned x, unsigned y,
- std::vector<SGSceneryPick>& pickList );
+ std::vector<SGSceneryPick>& pickList,
+ const osgGA::GUIEventAdapter* ea );
/** Get and set the OSG Viewer object, if any.
*/
*/
FGManipulator* getManipulator() { return manipulator.get(); }
const FGManipulator* getManipulator() const { return manipulator.get(); }
- void setManipulator(FGManipulator* manipulator)
- {
- this->manipulator = manipulator;
- }
+ void setManipulator(FGManipulator* manipulator) {
+ this->manipulator = manipulator;
+ }
+
+ /** Add a top level camera.
+ */
+ void addCamera(osg::Camera* camera, bool useSceneData);
+
protected:
osg::ref_ptr<osgViewer::Viewer> viewer;
osg::ref_ptr<FGManipulator> manipulator;