void IFPAnimationViewerWidget::animTimeBackwardRequested() { float newTime = currentTime - (currentAnim->getDuration() / 100.0f); if (newTime < 0.0f) newTime = 0.0f; setAnimationTime(newTime); }
void IFPAnimationViewerWidget::playAnimation() { uint64_t time = GetTickcount(); float newTime = fmod(currentTime + (time - lastPlayTime) / 1000.0f, currentAnim->getDuration()); setAnimationTime(newTime); lastPlayTime = time; }
void IFPAnimationViewerWidget::animTimeForwardRequested() { float newTime = currentTime + (currentAnim->getDuration() / 100.0f); if (newTime > currentAnim->getDuration()) newTime = currentAnim->getDuration(); setAnimationTime(newTime); }
void IFPAnimationViewerWidget::setCurrentAnimation(const CString& animName) { Animation* anim = anpk->find(animName); currentAnim = anim; ui.animSlider->setEnabled(true); renderWidget->setCurrentAnimation(animName); setAnimationTime(0.0f); }
void OrbitCameraManipulator::initManipulator() { setAnimationTime( 0.2 ); _homeEye.set( m_eye ); _homeCenter.set( m_lookat ); _homeUp.set( m_up ); setAutoComputeHomePosition( false ); _allowThrow = false; m_animation_data = new OrbitAnimationData(); m_intersect_hit_geometry = false; m_control_key_down = false; m_fovy = 30; }
void IFPAnimationViewerWidget::animTimeEndRequested() { setAnimationTime(currentAnim->getDuration()); }
void IFPAnimationViewerWidget::animTimeBeginRequested() { setAnimationTime(0.0f); }
void IFPAnimationViewerWidget::animTimeChanged(int value) { float time = currentAnim->getDuration() * (value / 10000.0f); setAnimationTime(time); }
void SimpleSquarePattern::setup() { ofEnableSmoothing(); setAnimationTime(0.5); color.setCurve(SWIFT_GOOGLE); }
void QAnimation3D::updateFrame() { setAnimationTime(_currentTime + _animationSpeed * _animationSpeed_global); }