Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
animclip.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
13
#include "
coreanimation/infinitytype.h
"
14
#include "
coreanimation/animcurve.h
"
15
#include "
coreanimation/animevent.h
"
16
#include "
util/stringatom.h
"
17
#include "
timing/time.h
"
18
#include "
util/dictionary.h
"
19
#include "
util/fixedarray.h
"
20
21
//------------------------------------------------------------------------------
22
namespace
CoreAnimation
23
{
24
class
AnimClip
25
{
26
public
:
28
AnimClip
();
29
31
void
SetName
(
const
Util::StringAtom
& n);
33
const
Util::StringAtom
&
GetName
()
const
;
34
35
Util::StringAtom
name
;
36
37
SizeT
numCurves
;
38
IndexT
firstCurve
;
39
SizeT
numEvents
;
40
IndexT
firstEvent
;
41
SizeT
numVelocityCurves
;
42
IndexT
firstVelocityCurve
;
43
44
Timing::Tick
duration
;
45
Util::Dictionary<Util::StringAtom, IndexT>
eventIndexMap
;
46
};
47
48
//------------------------------------------------------------------------------
51
inline
void
52
AnimClip::SetName
(
const
Util::StringAtom
& n)
53
{
54
this->
name
= n;
55
}
56
57
//------------------------------------------------------------------------------
60
inline
const
Util::StringAtom
&
61
AnimClip::GetName
()
const
62
{
63
return
this->
name
;
64
}
65
66
}
// namespace CoreAnimation
67
//------------------------------------------------------------------------------
animcurve.h
animevent.h
CoreAnimation::AnimClip::firstEvent
IndexT firstEvent
Definition
animclip.h:40
CoreAnimation::AnimClip::numEvents
SizeT numEvents
Definition
animclip.h:39
CoreAnimation::AnimClip::name
Util::StringAtom name
Definition
animclip.h:35
CoreAnimation::AnimClip::numVelocityCurves
SizeT numVelocityCurves
Definition
animclip.h:41
CoreAnimation::AnimClip::numCurves
SizeT numCurves
Definition
animclip.h:37
CoreAnimation::AnimClip::SetName
void SetName(const Util::StringAtom &n)
set the name of the clip
Definition
animclip.h:52
CoreAnimation::AnimClip::GetName
const Util::StringAtom & GetName() const
get the name of the clip
Definition
animclip.h:61
CoreAnimation::AnimClip::duration
Timing::Tick duration
Definition
animclip.h:44
CoreAnimation::AnimClip::firstCurve
IndexT firstCurve
Definition
animclip.h:38
CoreAnimation::AnimClip::firstVelocityCurve
IndexT firstVelocityCurve
Definition
animclip.h:42
CoreAnimation::AnimClip::AnimClip
AnimClip()
constructor
Definition
animclip.cc:17
CoreAnimation::AnimClip::eventIndexMap
Util::Dictionary< Util::StringAtom, IndexT > eventIndexMap
Definition
animclip.h:45
Util::Dictionary
A collection of key/value pairs with quick value retrieval by key at roughly O(log n).
Definition
dictionary.h:35
Util::StringAtom
A StringAtom.
Definition
stringatom.h:22
dictionary.h
fixedarray.h
infinitytype.h
CoreAnimation
An animation resource holds a set of animations from a loaded NAX file.
Definition
charactercontext.h:40
Timing::Tick
int Tick
the tick datatype (one tick == 1 millisecond)
Definition
time.h:20
stringatom.h
time.h
Typedefs for the Timing subsystem.
SizeT
int SizeT
Definition
types.h:42
IndexT
int IndexT
Definition
types.h:41
code
render
coreanimation
animclip.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.