Public Member Functions | |
RecordCameraPathHandler (const std::string &filename="saved_animation.path") | |
void | setKeyEventToggleRecord (int key) |
int | getKeyEventToggleRecord () const |
void | setKeyEventTogglePlayback (int key) |
int | getKeyEventTogglePlayback () const |
virtual void | getUsage (osg::ApplicationUsage &usage) const |
Get the keyboard and mouse usage of this manipulator. | |
bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) |
Deprecated, Handle events, return true if handled, false otherwise. | |
Protected Attributes | |
std::string | _filename |
int | _keyEventToggleRecord |
int | _keyEventTogglePlayback |
bool | _currentlyRecording |
bool | _currentlyPlaying |
double | _interval |
double | _delta |
osg::Timer_t | _animStartTime |
osg::Timer_t | _lastFrameTime |
osg::ref_ptr < osg::AnimationPath > | _animPath |
osg::ref_ptr < osgGA::AnimationPathManipulator > | _animPathManipulator |
osg::ref_ptr < osgGA::MatrixManipulator > | _oldManipulator |
In it's current implementation, this handler cannot guarantee the final view matrix is correct; it is conceivable that the matrix may be one frame off. Eh--not a big deal! :) TODO: Write the file as we go, not when it's all done. TODO: Create an osgviewer on-screen indication that animation is taking place.
osgViewer::RecordCameraPathHandler::RecordCameraPathHandler | ( | const std::string & | filename = "saved_animation.path" |
) |
void osgViewer::RecordCameraPathHandler::setKeyEventToggleRecord | ( | int | key | ) | [inline] |
int osgViewer::RecordCameraPathHandler::getKeyEventToggleRecord | ( | ) | const [inline] |
void osgViewer::RecordCameraPathHandler::setKeyEventTogglePlayback | ( | int | key | ) | [inline] |
int osgViewer::RecordCameraPathHandler::getKeyEventTogglePlayback | ( | ) | const [inline] |
virtual void osgViewer::RecordCameraPathHandler::getUsage | ( | osg::ApplicationUsage & | ) | const [virtual] |
bool osgViewer::RecordCameraPathHandler::handle | ( | const osgGA::GUIEventAdapter & | , | |
osgGA::GUIActionAdapter & | ||||
) | [virtual] |
Deprecated, Handle events, return true if handled, false otherwise.
Reimplemented from osgGA::GUIEventHandler.
std::string osgViewer::RecordCameraPathHandler::_filename [protected] |
int osgViewer::RecordCameraPathHandler::_keyEventToggleRecord [protected] |
int osgViewer::RecordCameraPathHandler::_keyEventTogglePlayback [protected] |
bool osgViewer::RecordCameraPathHandler::_currentlyRecording [protected] |
bool osgViewer::RecordCameraPathHandler::_currentlyPlaying [protected] |
double osgViewer::RecordCameraPathHandler::_interval [protected] |
double osgViewer::RecordCameraPathHandler::_delta [protected] |
osg::ref_ptr<osgGA::AnimationPathManipulator> osgViewer::RecordCameraPathHandler::_animPathManipulator [protected] |
osg::ref_ptr<osgGA::MatrixManipulator> osgViewer::RecordCameraPathHandler::_oldManipulator [protected] |