# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

track_keyframer.cpp

Go to the documentation of this file.
00001 
00007 /* Copyright, 2001 Nevrax Ltd.
00008  *
00009  * This file is part of NEVRAX NEL.
00010  * NEVRAX NEL is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2, or (at your option)
00013  * any later version.
00014 
00015  * NEVRAX NEL is distributed in the hope that it will be useful, but
00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00018  * General Public License for more details.
00019 
00020  * You should have received a copy of the GNU General Public License
00021  * along with NEVRAX NEL; see the file COPYING. If not, write to the
00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
00023  * MA 02111-1307, USA.
00024  */
00025 
00026 #include "std3d.h"
00027 
00028 #include "3d/track_keyframer.h"
00029 
00030 
00031 namespace NL3D
00032 {
00033 
00034 template <class T>
00035 void ITrackKeyFramer<T>::getKeysInRange(TAnimationTime t1, TAnimationTime t2, std::vector<TAnimationTime> &result)
00036 {
00037         nlassert(t1 <= t2);
00038         TMapTimeCKey::const_iterator it = _MapKey.lower_bound(t1)
00039                                                                 , ub = _MapKey.upper_bound(t2);
00040         result.clear();         
00041         while (it != ub)
00042         {                       
00043                 result.push_back(it->first);
00044                 ++it;
00045         }
00046 }
00047 
00048 
00049 
00050 
00051 
00052 // Some compilation check: force Visual to compile to template
00053 CTrackKeyFramerTCBFloat ttoto0;
00054 CTrackKeyFramerTCBVector ttoto1;
00055 CTrackKeyFramerTCBQuat ttoto2;
00056 CTrackKeyFramerTCBInt ttoto3;
00057 CTrackKeyFramerTCBRGBA ttoto8;
00058 
00059 
00060 CTrackKeyFramerBezierFloat ttoto4;
00061 CTrackKeyFramerBezierVector ttoto5;
00062 CTrackKeyFramerBezierQuat ttoto6;
00063 CTrackKeyFramerBezierInt ttoto7;
00064 CTrackKeyFramerBezierRGBA ttoto9;
00065 
00066 
00067 CTrackKeyFramerLinearFloat      lattoto10;
00068 CTrackKeyFramerLinearVector     lattoto11;
00069 CTrackKeyFramerLinearQuat       lattoto12;
00070 CTrackKeyFramerLinearInt        lattoto13;
00071 CTrackKeyFramerLinearRGBA       lattoto14;
00072 
00073 
00074 CTrackKeyFramerConstFloat       attoto10;
00075 CTrackKeyFramerConstVector      attoto11;
00076 CTrackKeyFramerConstQuat        attoto12;
00077 CTrackKeyFramerConstInt         attoto13;
00078 CTrackKeyFramerConstRGBA        attoto16;
00079 CTrackKeyFramerConstString      attoto14;
00080 CTrackKeyFramerConstBool        attoto15;
00081 
00082 
00083 } // NL3D