|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CTrackSampledVector Class ReferenceThis track is supposed to be Lighter in memory than CTrackKeyFramerTCBVector, and also is maybe faster.
More...
#include <track_sampled_vector.h>
Inheritance diagram for NL3D::CTrackSampledVector:
List of all members.
Detailed Description
This track is supposed to be Lighter in memory than CTrackKeyFramerTCBVector, and also is maybe faster.
The track is an oversampled version of CTrackKeyFramerTCBVector (or any vector interpolator), to 30 fps for example, but each key is 13 bytes in memory, instead of 96. Only linear interpolation is performed between 2 keys. And Keys are precomputed
13 bytes per key is achieved by encoding this way: 1 byte for the length/key time, measured in samples, and not in second (hence we can skip at max 255 keys). 12 byte for the position. May be compressed in future to 6 bytes.
-
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2002
Definition at line 53 of file track_sampled_vector.h.
Constructor & Destructor Documentation
NL3D::CTrackSampledVector::CTrackSampledVector |
( |
|
) |
|
|
NL3D::CTrackSampledVector::~CTrackSampledVector |
( |
|
) |
[virtual] |
|
Member Function Documentation
void NL3D::CTrackSampledVector::build |
( |
const std::vector< uint16 > & |
timeList, |
|
|
const std::vector< CVector > & |
keyList, |
|
|
float |
beginTime, |
|
|
float |
endTime |
|
) |
|
|
void NL3D::CTrackSampledVector::eval |
( |
const TAnimationTime & |
date |
) |
[virtual] |
|
|
Evaluation of the value of the track for this time.
The result is internaly stored to simplify access at the polymorphic values. To get the value, call ITrack::getValue().
Implements NL3D::ITrack.
Definition at line 107 of file track_sampled_vector.cpp.
References _Keys, _Value, NL3D::CTrackSampledCommon::EvalDiscard, NL3D::CTrackSampledCommon::EvalInterpolate, NL3D::CTrackSampledCommon::EvalKey0, NL3D::CTrackSampledCommon::evalTime, nlstop, NLMISC::CObjectVector< CVector, false >::size, NL3D::TAnimationTime, and NL3D::CTrackSampledCommon::TEvalType. |
const IAnimatedValue & NL3D::CTrackSampledVector::getValue |
( |
|
) |
const [virtual] |
|
NL3D::CTrackSampledVector::NLMISC_DECLARE_CLASS |
( |
CTrackSampledVector |
|
) |
|
|
Member Data Documentation
The documentation for this class was generated from the following files:
|
|