Added getCameraByName method to viewer and home(double currentTime) to

MatrixManipulator, UFO, Trackball and ANimation manipulator.
This commit is contained in:
Don BURNS
2005-03-20 23:57:17 +00:00
parent c579ab511e
commit 5d10547ac5
8 changed files with 37 additions and 16 deletions

View File

@@ -44,17 +44,20 @@ AnimationPathManipulator::AnimationPathManipulator( const std::string& filename
}
void AnimationPathManipulator::home(const GUIEventAdapter& ea,GUIActionAdapter&)
void AnimationPathManipulator::home(double currentTime)
{
if (_animationPath.valid())
{
_timeOffset = _animationPath->getFirstTime()-ea.time();
_timeOffset = _animationPath->getFirstTime()-currentTime;
}
// reset the timing of the animation.
_numOfFramesSinceStartOfTimedPeriod=-1;
}
void AnimationPathManipulator::home(const GUIEventAdapter& ea,GUIActionAdapter&)
{
home(ea.time());
}
void AnimationPathManipulator::init(const GUIEventAdapter& ea,GUIActionAdapter& aa)