OpenSceneGraph
3.0.1
|
Event handler allowing the user to record the animation "path" of a camera. More...
Event handler allowing the user to record the animation "path" of a camera.
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" , |
float | fps = 25.0f |
||
) |
int osgViewer::RecordCameraPathHandler::getKeyEventTogglePlayback | ( | ) | const [inline] |
int osgViewer::RecordCameraPathHandler::getKeyEventToggleRecord | ( | ) | const [inline] |
virtual void osgViewer::RecordCameraPathHandler::getUsage | ( | osg::ApplicationUsage & | ) | const [virtual] |
Get the keyboard and mouse usage of this manipulator.
Reimplemented from osgGA::GUIEventHandler.
bool osgViewer::RecordCameraPathHandler::handle | ( | const osgGA::GUIEventAdapter & | , |
osgGA::GUIActionAdapter & | |||
) | [virtual] |
Deprecated, Handle events, return true if handled, false otherwise.
Reimplemented from osgGA::GUIEventHandler.
void osgViewer::RecordCameraPathHandler::setAutoIncrementFilename | ( | bool | autoinc = true | ) | [inline] |
void osgViewer::RecordCameraPathHandler::setKeyEventTogglePlayback | ( | int | key | ) | [inline] |
void osgViewer::RecordCameraPathHandler::setKeyEventToggleRecord | ( | int | key | ) | [inline] |
osg::ref_ptr<osgGA::AnimationPathManipulator> osgViewer::RecordCameraPathHandler::_animPathManipulator [protected] |
int osgViewer::RecordCameraPathHandler::_autoinc [protected] |
bool osgViewer::RecordCameraPathHandler::_currentlyPlaying [protected] |
bool osgViewer::RecordCameraPathHandler::_currentlyRecording [protected] |
double osgViewer::RecordCameraPathHandler::_delta [protected] |
std::string osgViewer::RecordCameraPathHandler::_filename [protected] |
double osgViewer::RecordCameraPathHandler::_interval [protected] |
int osgViewer::RecordCameraPathHandler::_keyEventTogglePlayback [protected] |
int osgViewer::RecordCameraPathHandler::_keyEventToggleRecord [protected] |
osg::ref_ptr<osgGA::CameraManipulator> osgViewer::RecordCameraPathHandler::_oldManipulator [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:51 for the OpenSceneGraph by doxygen 1.7.5. |