All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kanzi::StateManager::StateGroupRuntime Class Reference

State group runtime. More...

#include <kanzi/state_manager/state_manager.hpp>

Public Member Functions

void stopTransition ()
 
void goToState (const StateRuntimeSharedPtr &newStateRuntime, bool immediate)
 Go to a state in a state group. More...
 
void syncState (bool immediate)
 Sync the state in the state group. More...
 

Static Public Member Functions

static StateGroupRuntimeSharedPtr create (const StateManagerRuntimeSharedPtr &stateManagerRuntime, const StateGroupSharedPtr &stateGroup)
 

Public Attributes

StateManagerRuntimeWeakPtr m_stateManagerRuntime
 State manager runtime. More...
 
StateGroupSharedPtr m_group
 State group. More...
 
StateRuntimeContainer m_stateRuntimes
 State runtimes. More...
 
StateRuntimeSharedPtr m_currentStateRuntime
 Current state runtime. More...
 
StateSharedPtr m_previousState
 Previous state. More...
 
TimelinePlaybackSharedPtr m_transitionPlayback
 Transition timeline playback. More...
 
bool m_inTransition
 Is in transition. More...
 
chrono::milliseconds m_transitionBaseTime
 Base transition time in ms. More...
 

Protected Member Functions

 StateGroupRuntime (const StateManagerRuntimeSharedPtr &stateManagerRuntime, const StateGroupSharedPtr &stateGroup)
 
void onTransitionFinished (TimelinePlayback &)
 Transition finished message handler. More...
 
void createAnimation (Object *stateObject, string_view stateObjectPath, const KzuPropertyType *propertyType, const void *valueSource, chrono::milliseconds start, chrono::milliseconds duration, AnimationMode animationMode, AnimationEasingMode easingMode, ParallelTimeline &timeline, bool longerPath)
 Create an animation for a state group. More...
 

Detailed Description

State group runtime.

Constructor & Destructor Documentation

kanzi::StateManager::StateGroupRuntime::StateGroupRuntime ( const StateManagerRuntimeSharedPtr stateManagerRuntime,
const StateGroupSharedPtr stateGroup 
)
explicitprotected

Member Function Documentation

static StateGroupRuntimeSharedPtr kanzi::StateManager::StateGroupRuntime::create ( const StateManagerRuntimeSharedPtr stateManagerRuntime,
const StateGroupSharedPtr stateGroup 
)
static
void kanzi::StateManager::StateGroupRuntime::stopTransition ( )
void kanzi::StateManager::StateGroupRuntime::goToState ( const StateRuntimeSharedPtr newStateRuntime,
bool  immediate 
)

Go to a state in a state group.

void kanzi::StateManager::StateGroupRuntime::syncState ( bool  immediate)

Sync the state in the state group.

void kanzi::StateManager::StateGroupRuntime::onTransitionFinished ( TimelinePlayback )
protected

Transition finished message handler.

void kanzi::StateManager::StateGroupRuntime::createAnimation ( Object stateObject,
string_view  stateObjectPath,
const KzuPropertyType propertyType,
const void *  valueSource,
chrono::milliseconds  start,
chrono::milliseconds  duration,
AnimationMode  animationMode,
AnimationEasingMode  easingMode,
ParallelTimeline timeline,
bool  longerPath 
)
protected

Create an animation for a state group.

Member Data Documentation

StateManagerRuntimeWeakPtr kanzi::StateManager::StateGroupRuntime::m_stateManagerRuntime

State manager runtime.

StateGroupSharedPtr kanzi::StateManager::StateGroupRuntime::m_group

State group.

StateRuntimeContainer kanzi::StateManager::StateGroupRuntime::m_stateRuntimes

State runtimes.

StateRuntimeSharedPtr kanzi::StateManager::StateGroupRuntime::m_currentStateRuntime

Current state runtime.

StateSharedPtr kanzi::StateManager::StateGroupRuntime::m_previousState

Previous state.

TimelinePlaybackSharedPtr kanzi::StateManager::StateGroupRuntime::m_transitionPlayback

Transition timeline playback.

bool kanzi::StateManager::StateGroupRuntime::m_inTransition

Is in transition.

chrono::milliseconds kanzi::StateManager::StateGroupRuntime::m_transitionBaseTime

Base transition time in ms.


The documentation for this class was generated from the following file: