1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include "nel/3d/track_keyframer.h"
29 void ITrackKeyFramer
<T
>::getKeysInRange(TAnimationTime t1
, TAnimationTime t2
, std::vector
<TAnimationTime
> &result
)
32 typename
TMapTimeCKey::const_iterator it
= _MapKey
.lower_bound(t1
);
33 typename
TMapTimeCKey::const_iterator ub
= _MapKey
.upper_bound(t2
);
37 result
.push_back(it
->first
);
46 // Some compilation check: force Visual to compile to template
47 CTrackKeyFramerTCBFloat ttoto0
;
48 CTrackKeyFramerTCBVector ttoto1
;
49 CTrackKeyFramerTCBQuat ttoto2
;
50 CTrackKeyFramerTCBInt ttoto3
;
51 CTrackKeyFramerTCBRGBA ttoto8
;
54 CTrackKeyFramerBezierFloat ttoto4
;
55 CTrackKeyFramerBezierVector ttoto5
;
56 CTrackKeyFramerBezierQuat ttoto6
;
57 CTrackKeyFramerBezierInt ttoto7
;
58 CTrackKeyFramerBezierRGBA ttoto9
;
61 CTrackKeyFramerLinearFloat lattoto10
;
62 CTrackKeyFramerLinearVector lattoto11
;
63 CTrackKeyFramerLinearQuat lattoto12
;
64 CTrackKeyFramerLinearInt lattoto13
;
65 CTrackKeyFramerLinearRGBA lattoto14
;
68 CTrackKeyFramerConstFloat attoto10
;
69 CTrackKeyFramerConstVector attoto11
;
70 CTrackKeyFramerConstQuat attoto12
;
71 CTrackKeyFramerConstInt attoto13
;
72 CTrackKeyFramerConstRGBA attoto16
;
73 CTrackKeyFramerConstString attoto14
;
74 CTrackKeyFramerConstBool attoto15
;
77 UTrackKeyframer
*UTrackKeyframer::createLinearFloatTrack()
79 return new CTrackKeyFramerLinearFloat
;
81 UTrackKeyframer
*UTrackKeyframer::createBezierFloatTrack()
83 return new CTrackKeyFramerBezierFloat
;
85 UTrackKeyframer
*UTrackKeyframer::createTCBFloatTrack()
87 return new CTrackKeyFramerTCBFloat
;