#include <VectorInterpolationCompressor.h>
Public Member Functions | |
VectorInterpolationCompressor () | |
コンストラクタ | |
virtual | ~VectorInterpolationCompressor () |
デストラクタ | |
virtual VectorInterpolator * | compress (VectorArrayInterpolator *source, float tolerance) |
圧縮 | |
virtual float | getTolerance () const |
許容誤差の取得 | |
virtual float | getLength () const |
長さの取得 | |
virtual int | getSourceKeyCount () const |
ソースキー数の取得 | |
virtual int | getSourceSize () const |
ソースサイズの取得 | |
virtual int | getCompressedKeyCount () const |
圧縮後キー数の取得 | |
virtual int | getCompressedSize () const |
圧縮後サイズの取得 | |
virtual float | getCompressionRate () const |
圧縮率の取得 | |
virtual String | getResultString () const |
結果文字列の取得 | |
Protected Member Functions | |
virtual void | compressSetup (VectorArrayInterpolator *source, float tolerance) |
圧縮準備 | |
virtual VectorInterpolator * | compressConstant (VectorArrayInterpolator *source) |
定数圧縮 | |
virtual VectorInterpolator * | compressLinear (VectorArrayInterpolator *source) |
線形圧縮 | |
virtual void | recalcLinearError (VectorArrayInterpolator *source, LinearKey &preKey, LinearKey &key, LinearKey &postKey) |
線形圧縮誤差の再計算 | |
virtual void | setCompressedData (int compressedKeyCount, int compressedKeySize) |
圧縮結果の設定 | |
Static Protected Attributes | |
const int | sourceKeySize_ = sizeof(Vector3) |
ソースキーサイズ |
Definition at line 37 of file VectorInterpolationCompressor.h.
|
圧縮
Definition at line 50 of file VectorInterpolationCompressor.cpp. References compressConstant(), compressLinear(), compressSetup(), Lamp::VectorArrayInterpolator::duplicate(), getSourceKeyCount(), NULL, setCompressedData(), and sourceKeySize_. Referenced by Lamp::AnimationCompressor::compressScale(), and Lamp::AnimationCompressor::compressTranslation(). |
|
定数圧縮
Definition at line 85 of file VectorInterpolationCompressor.cpp. References Lamp::AxisAlignedBox::getCenter(), getLength(), Lamp::Vector3::getSquaredLength(), getTolerance(), Lamp::VectorArrayInterpolator::getValue(), Lamp::AxisAlignedBox::merge(), NULL, setCompressedData(), Lamp::VectorConstantInterpolator::setLength(), and Lamp::VectorConstantInterpolator::setValue(). Referenced by compress(). |
|
線形圧縮
Definition at line 111 of file VectorInterpolationCompressor.cpp. References Assert, Lamp::Deque< Type >::getCount(), getLength(), getSourceKeyCount(), getSourceSize(), getTolerance(), Lamp::VectorArrayInterpolator::getValue(), NULL, Lamp::Deque< Type >::pushBack(), recalcLinearError(), setCompressedData(), Lamp::VectorLinearInterpolator::setKey(), Lamp::VectorLinearInterpolator::setKeyCount(), Lamp::VectorInterpolationCompressor::LinearKey::squaredError_, Lamp::VectorInterpolationCompressor::LinearKey::time_, and Lamp::VectorInterpolationCompressor::LinearKey::value_. Referenced by compress(). |
|
圧縮準備
Definition at line 75 of file VectorInterpolationCompressor.cpp. References Assert, Lamp::VectorArrayInterpolator::getLength(), Lamp::VectorArrayInterpolator::getSize(), and NULL. Referenced by compress(). |
|
圧縮後キー数の取得
Definition at line 99 of file VectorInterpolationCompressor.h. Referenced by getCompressedSize(), and getResultString(). |
|
圧縮後サイズの取得
Definition at line 105 of file VectorInterpolationCompressor.h. References getCompressedKeyCount(). Referenced by getCompressionRate(), and getResultString(). |
|
圧縮率の取得
Definition at line 114 of file VectorInterpolationCompressor.h. References getCompressedSize(), and getSourceSize(). Referenced by getResultString(). |
|
長さの取得
Definition at line 77 of file VectorInterpolationCompressor.h. Referenced by compressConstant(), compressLinear(), and getResultString(). |
|
結果文字列の取得
Definition at line 217 of file VectorInterpolationCompressor.cpp. References Lamp::String::format(), getCompressedKeyCount(), getCompressedSize(), getCompressionRate(), getLength(), getSourceKeyCount(), and getSourceSize(). |
|
ソースキー数の取得
Definition at line 84 of file VectorInterpolationCompressor.h. Referenced by compress(), compressLinear(), getResultString(), and getSourceSize(). |
|
ソースサイズの取得
Definition at line 90 of file VectorInterpolationCompressor.h. References getSourceKeyCount(), and sourceKeySize_. Referenced by compressLinear(), getCompressionRate(), and getResultString(). |
|
許容誤差の取得
Definition at line 71 of file VectorInterpolationCompressor.h. Referenced by compressConstant(), and compressLinear(). |
|
線形圧縮誤差の再計算
Definition at line 191 of file VectorInterpolationCompressor.cpp. References Lamp::Vector3::getSquaredLength(), Lamp::VectorArrayInterpolator::getValue(), Lamp::VectorInterpolationCompressor::LinearKey::squaredError_, Lamp::VectorInterpolationCompressor::LinearKey::time_, and Lamp::VectorInterpolationCompressor::LinearKey::value_. Referenced by compressLinear(). |
|
圧縮結果の設定
Definition at line 181 of file VectorInterpolationCompressor.h. Referenced by compress(), compressConstant(), and compressLinear(). |