Nebula
Loading...
Searching...
No Matches
playclipjob.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
11#include "animation/animjob.h"
12
13//------------------------------------------------------------------------------
14namespace Animation
15{
47
48//------------------------------------------------------------------------------
51inline void
53{
54 this->clipName = n;
55}
56
57//------------------------------------------------------------------------------
60inline const Util::StringAtom&
62{
63 return this->clipName;
64}
65
66//------------------------------------------------------------------------------
69inline void
71{
72 this->loopCount = c;
73}
74
75//------------------------------------------------------------------------------
78inline float
80{
81 return this->loopCount;
82}
83
84} // namespace Animation
85//------------------------------------------------------------------------------
86
Descibes a single animation sampling job in the AnimController.
Definition animjob.h:36
const AnimSequencer * animSequencer
Definition animjob.h:150
Timing::Tick startTime
Definition animjob.h:157
An AnimSequencer object arranges AnimJobs along the time line to produce a single,...
Definition animsequencer.h:28
An AnimJob which simply plays an animation clip.
Definition playclipjob.h:17
virtual ~PlayClipJob()
destructor
Definition playclipjob.cc:34
const Util::StringAtom & GetClipName() const
get the anim clip name
Definition playclipjob.h:61
void SetLoopCount(float loopCount)
set the loop count (overrides duration)
Definition playclipjob.h:70
IndexT clipIndex
Definition playclipjob.h:43
virtual Ptr< Jobs::Job > CreateEvaluationJob(Timing::Tick time, const Ptr< CoreAnimation::AnimSampleBuffer > &mixIn, const Ptr< CoreAnimation::AnimSampleBuffer > &result)
create evaluation job for asynchronous evaluation
Definition playclipjob.cc:72
float GetLoopCount() const
get the loop count
Definition playclipjob.h:79
bool firstAnimEventCheck
Definition playclipjob.h:45
void SetClipName(const Util::StringAtom &clipName)
set the anim clip name to play
Definition playclipjob.h:52
virtual void OnAttachedToSequencer(const AnimSequencer &animSequencer)
called when attached to anim sequencer
Definition playclipjob.cc:43
float loopCount
Definition playclipjob.h:44
PlayClipJob()
constructor
Definition playclipjob.cc:23
__DeclareClass(PlayClipJob)
Util::StringAtom clipName
Definition playclipjob.h:42
virtual Util::Array< AnimEventInfo > EmitAnimEvents(Timing::Tick startTime, Timing::Tick endTime, const Util::String &optionalCatgeory)
emit anim events inside given time range
Definition playclipjob.cc:116
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Nebula's dynamic array class.
Definition array.h:60
A StringAtom.
Definition stringatom.h:22
Definition animeventhandlerbase.cc:10
int Tick
the tick datatype (one tick == 1 millisecond)
Definition time.h:20
Nebula's universal string class.
Definition string.h:50
int IndexT
Definition types.h:48