Added a few things to osgProducer::Viewer to support UFO manipulator and
cleaned up UFOManipulator.
This commit is contained in:
@@ -100,6 +100,7 @@ class OSGGA_EXPORT UFOManipulator : public osgGA::MatrixManipulator
|
||||
|
||||
/** Sets the viewpoint matrix to the home position */
|
||||
virtual void home(const osgGA::GUIEventAdapter&, osgGA::GUIActionAdapter&) ;
|
||||
void home(void);
|
||||
|
||||
/** Handles incoming osgGA events */
|
||||
bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter &aa);
|
||||
@@ -107,6 +108,9 @@ class OSGGA_EXPORT UFOManipulator : public osgGA::MatrixManipulator
|
||||
/** Reports Usage parameters to the application */
|
||||
void getUsage(osg::ApplicationUsage& usage) const;
|
||||
|
||||
/** Report the current position as LookAt vectors */
|
||||
void getCurrentPositionAsLookAt( osg::Vec3 &eye, osg::Vec3 ¢er, osg::Vec3 &up );
|
||||
|
||||
protected:
|
||||
|
||||
private:
|
||||
@@ -151,7 +155,6 @@ class OSGGA_EXPORT UFOManipulator : public osgGA::MatrixManipulator
|
||||
|
||||
bool _straightenOffset;
|
||||
|
||||
void _home();
|
||||
void _stop();
|
||||
void _keyDown( const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &);
|
||||
void _keyUp( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter &);
|
||||
|
||||
@@ -276,6 +276,7 @@ class OSGPRODUCER_EXPORT Viewer : public OsgCameraGroup, public osgGA::GUIAction
|
||||
void selectCameraManipulator(unsigned int no);
|
||||
void getCameraManipulatorNameList( std::list<std::string> &nameList );
|
||||
bool selectCameraManipulatorByName( const std::string &name );
|
||||
osgGA::MatrixManipulator *getCameraManipulatorByName( const std::string &name );
|
||||
|
||||
|
||||
void setRecordingAnimationPath(bool on) { _recordingAnimationPath = on; }
|
||||
|
||||
Reference in New Issue
Block a user