LuciadCPillar 2023.1.04
luciad::AnimationManager::OngoingAnimation Struct Referencefinal

This struct represents an animation that has been started in AnimationManager and has not been stopped yet. More...

#include <luciad/animations/AnimationManager.h>

Public Member Functions

 OngoingAnimation (std::shared_ptr< IAnimation > animation, double fraction)
 Constructs the OngoingAnimation with information on the animation and it's state. More...
 

Public Attributes

std::shared_ptr< IAnimationanimation
 The animation that is ongoing, cannot be nullptr. More...
 
double fraction
 The current position within the animation. More...
 

Detailed Description

This struct represents an animation that has been started in AnimationManager and has not been stopped yet.

It can be retrieved using the getCurrentAnimation method.

Constructor & Destructor Documentation

◆ OngoingAnimation()

luciad::AnimationManager::OngoingAnimation::OngoingAnimation ( std::shared_ptr< IAnimation animation,
double  fraction 
)
inline

Constructs the OngoingAnimation with information on the animation and it's state.

Parameters
animationthe ongoing animation.
fractionthe fraction status for the animation.

Member Data Documentation

◆ animation

std::shared_ptr<IAnimation> luciad::AnimationManager::OngoingAnimation::animation

The animation that is ongoing, cannot be nullptr.

◆ fraction

double luciad::AnimationManager::OngoingAnimation::fraction

The current position within the animation.