From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/classNL3D_1_1CTrackSampledCommon.html | 747 +++++++++++++++++++++ 1 file changed, 747 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CTrackSampledCommon.html (limited to 'docs/doxygen/nel/classNL3D_1_1CTrackSampledCommon.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CTrackSampledCommon.html b/docs/doxygen/nel/classNL3D_1_1CTrackSampledCommon.html new file mode 100644 index 00000000..54e5013c --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CTrackSampledCommon.html @@ -0,0 +1,747 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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  
+

NL3D::CTrackSampledCommon Class Reference

Abstract Base class for CTrackSampledQuat and CTrackSampledVector. +More... +

+#include <track_sampled_common.h> +

+

Inheritance diagram for NL3D::CTrackSampledCommon: +

+ +NL3D::ITrack +NLMISC::IStreamable +NL3D::UTrack +NLMISC::IClassable +NL3D::CTrackSampledQuat +NL3D::CTrackSampledVector + +List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

 CTrackSampledCommon ()
 Constructor. More...

virtual ~CTrackSampledCommon ()
void setLoopMode (bool mode)
 Change the loop mode. true default. More...

virtual bool getLoopMode () const
 get LoopMode. More...

virtual TAnimationTime getBeginTime () const
 Get the begin time of the track. More...

virtual TAnimationTime getEndTime () const
 Get the end time of the track. More...


Protected Types

enum  TEvalType { EvalDiscard, +EvalKey0, +EvalInterpolate + }

Protected Methods

TEvalType evalTime (const TAnimationTime &date, uint numKeys, uint &keyId0, uint &keyId1, float &interpValue)
void serialCommon (NLMISC::IStream &f)
void buildCommon (const std::vector< uint16 > &timeList, float beginTime, float endTime)
 Build the track time from a list of Keys. More...


Protected Attributes

bool _LoopMode
float _BeginTime
float _EndTime
float _TotalRange
float _OOTotalRange
float _DeltaTime
float _OODeltaTime
NLMISC::CObjectVector< CTimeBlock_TimeBlocks
+

Detailed Description

+Abstract Base class for CTrackSampledQuat and CTrackSampledVector. +

+

+Author:
+Lionel Berenguier , Nevrax France
+Date:
+2002
+

+ +

+Definition at line 45 of file track_sampled_common.h.


Member Enumeration Documentation

+

+ + + + +
+ + +
enum NL3D::CTrackSampledCommon::TEvalType [protected] +
+
+ + + + + +
+   + + +

+

+Enumeration values:
+ + + + +
EvalDiscard  +
EvalKey0  +
EvalInterpolate  +
+
+ +

+Definition at line 103 of file track_sampled_common.h. +

+Referenced by NL3D::CTrackSampledVector::eval, and NL3D::CTrackSampledQuat::eval.

+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NL3D::CTrackSampledCommon::CTrackSampledCommon  
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 50 of file track_sampled_common.cpp. +

+References _LoopMode.

+

+ + + + +
+ + + + + + + + + +
NL3D::CTrackSampledCommon::~CTrackSampledCommon   [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 56 of file track_sampled_common.cpp.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NL3D::CTrackSampledCommon::buildCommon const std::vector< uint16 > &   timeList,
float   beginTime,
float   endTime
[protected]
+
+ + + + + +
+   + + +

+Build the track time from a list of Keys. +

+

+Parameters:
+ + + + +
timeList  +the list of key time. First must be ==0. nlassert if difference between 2 keys is > 255
beginTime  +map to the timeList[0] time.
endTime  +map to the timeList[size-1] time.
+
+

+Definition at line 106 of file track_sampled_common.cpp. +

+References _BeginTime, _DeltaTime, _EndTime, _OODeltaTime, _OOTotalRange, _TimeBlocks, _TotalRange, NLMISC::CObjectVector< CTimeBlock >::clear, nlassert, and NLMISC::CObjectVector< CTimeBlock >::resize.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CTrackSampledCommon::TEvalType NL3D::CTrackSampledCommon::evalTime const TAnimationTime  date,
uint   numKeys,
uint  keyId0,
uint  keyId1,
float &   interpValue
[protected]
+
+ + + + + +
+   + + +

+ +

+Definition at line 211 of file track_sampled_common.cpp. +

+References _BeginTime, _DeltaTime, _OODeltaTime, _OOTotalRange, _TimeBlocks, _TotalRange, NLMISC::clamp, EvalDiscard, EvalInterpolate, EvalKey0, NLMISC::CObjectVector< CTimeBlock >::getPtr, nlassert, NLMISC::CObjectVector< CTimeBlock >::size, t, and NL3D::TAnimationTime. +

+Referenced by NL3D::CTrackSampledVector::eval, and NL3D::CTrackSampledQuat::eval.

+

+ + + + +
+ + + + + + + + + +
TAnimationTime NL3D::CTrackSampledCommon::getBeginTime   const [virtual]
+
+ + + + + +
+   + + +

+Get the begin time of the track. +

+ +

+Implements NL3D::UTrack. +

+Definition at line 67 of file track_sampled_common.cpp. +

+References _BeginTime, and NL3D::TAnimationTime.

+

+ + + + +
+ + + + + + + + + +
TAnimationTime NL3D::CTrackSampledCommon::getEndTime   const [virtual]
+
+ + + + + +
+   + + +

+Get the end time of the track. +

+ +

+Implements NL3D::UTrack. +

+Definition at line 73 of file track_sampled_common.cpp. +

+References _EndTime, and NL3D::TAnimationTime.

+

+ + + + +
+ + + + + + + + + +
bool NL3D::CTrackSampledCommon::getLoopMode   const [virtual]
+
+ + + + + +
+   + + +

+get LoopMode. +

+2 mode only: "constant" (<=>false), and "loop" (<=> true). NB: same mode if time < getBeginTIme() and if time > getEndTime() +

+Implements NL3D::ITrack. +

+Definition at line 61 of file track_sampled_common.cpp. +

+References _LoopMode.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CTrackSampledCommon::serialCommon NLMISC::IStream  f [protected]
+
+ + + + + +
+   + + +

+ +

+Definition at line 90 of file track_sampled_common.cpp. +

+References _BeginTime, _DeltaTime, _EndTime, _LoopMode, _OODeltaTime, _OOTotalRange, _TimeBlocks, _TotalRange, NLMISC::IStream::serial, and NLMISC::IStream::serialVersion.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CTrackSampledCommon::setLoopMode bool   mode
+
+ + + + + +
+   + + +

+Change the loop mode. true default. +

+ +

+Definition at line 204 of file track_sampled_common.cpp. +

+References _LoopMode.

+


Member Data Documentation

+

+ + + + +
+ + +
float NL3D::CTrackSampledCommon::_BeginTime [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 68 of file track_sampled_common.h. +

+Referenced by buildCommon, evalTime, getBeginTime, NL3D::CTrackSampledQuat::serial, and serialCommon.

+

+ + + + +
+ + +
float NL3D::CTrackSampledCommon::_DeltaTime [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 73 of file track_sampled_common.h. +

+Referenced by buildCommon, evalTime, NL3D::CTrackSampledQuat::serial, and serialCommon.

+

+ + + + +
+ + +
float NL3D::CTrackSampledCommon::_EndTime [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 69 of file track_sampled_common.h. +

+Referenced by buildCommon, getEndTime, NL3D::CTrackSampledQuat::serial, and serialCommon.

+

+ + + + +
+ + +
bool NL3D::CTrackSampledCommon::_LoopMode [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 67 of file track_sampled_common.h. +

+Referenced by CTrackSampledCommon, getLoopMode, NL3D::CTrackSampledQuat::serial, serialCommon, and setLoopMode.

+

+ + + + +
+ + +
float NL3D::CTrackSampledCommon::_OODeltaTime [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 74 of file track_sampled_common.h. +

+Referenced by buildCommon, evalTime, NL3D::CTrackSampledQuat::serial, and serialCommon.

+

+ + + + +
+ + +
float NL3D::CTrackSampledCommon::_OOTotalRange [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 71 of file track_sampled_common.h. +

+Referenced by buildCommon, evalTime, NL3D::CTrackSampledQuat::serial, and serialCommon.

+

+ + + + +
+ + +
NLMISC::CObjectVector<CTimeBlock> NL3D::CTrackSampledCommon::_TimeBlocks [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 98 of file track_sampled_common.h. +

+Referenced by NL3D::CTrackSampledVector::build, NL3D::CTrackSampledQuat::build, buildCommon, evalTime, NL3D::CTrackSampledQuat::serial, and serialCommon.

+

+ + + + +
+ + +
float NL3D::CTrackSampledCommon::_TotalRange [protected] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 70 of file track_sampled_common.h. +

+Referenced by buildCommon, evalTime, NL3D::CTrackSampledQuat::serial, and serialCommon.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1