#include <RotationInterpolationCompressor.h>
Public Member Functions | |
| RotationInterpolationCompressor () | |
| コンストラクタ | |
| virtual | ~RotationInterpolationCompressor () |
| デストラクタ | |
| virtual RotationInterpolator * | compress (EulerArrayInterpolator *source, float tolerance) |
| 圧縮 | |
| virtual RotationInterpolator * | compress (QuaternionArrayInterpolator *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 (QuaternionArrayInterpolator *source, float tolerance) |
| 圧縮準備 | |
| virtual RotationInterpolator * | compressConstant (QuaternionArrayInterpolator *source) |
| 定数圧縮 | |
| virtual RotationInterpolator * | compressLinear (QuaternionArrayInterpolator *source) |
| 線形圧縮 | |
| virtual void | recalcLinearError (QuaternionArrayInterpolator *source, LinearKey &preKey, LinearKey &key, LinearKey &postKey) |
| 線形圧縮誤差の再計算 | |
| virtual void | setCompressedData (int compressedKeyCount, int compressedKeySize) |
| 圧縮結果の設定 | |
Static Protected Attributes | |
| const int | sourceKeySize_ = sizeof(Quaternion) |
| ソースキーサイズ | |
Definition at line 38 of file RotationInterpolationCompressor.h.
|
||||||||||||
|
圧縮
Definition at line 62 of file RotationInterpolationCompressor.cpp. References compressConstant(), compressLinear(), compressSetup(), Lamp::QuaternionArrayInterpolator::duplicate(), getSourceKeyCount(), NULL, setCompressedData(), and sourceKeySize_. |
|
||||||||||||
|
圧縮
Definition at line 51 of file RotationInterpolationCompressor.cpp. References Lamp::EulerArrayInterpolator::convertQuaternionArrayInterpolator(). Referenced by Lamp::AnimationCompressor::compressRotation(). |
|
|
定数圧縮
Definition at line 98 of file RotationInterpolationCompressor.cpp. References Assert, Lamp::Quaternion::dotProduct(), getLength(), getTolerance(), Lamp::QuaternionArrayInterpolator::getValue(), Lamp::Quaternion::isUnit(), NULL, setCompressedData(), Lamp::RotationConstantInterpolator::setLength(), and Lamp::RotationConstantInterpolator::setQuaternion(). Referenced by compress(). |
|
|
線形圧縮
Definition at line 122 of file RotationInterpolationCompressor.cpp. References Assert, Lamp::Quaternion::dotProduct(), Lamp::RotationInterpolationCompressor::LinearKey::errorCos_, Lamp::Deque< Type >::getCount(), getLength(), getSourceKeyCount(), getSourceSize(), getTolerance(), Lamp::QuaternionArrayInterpolator::getValue(), NULL, Lamp::Deque< Type >::pushBack(), recalcLinearError(), Lamp::Deque< Type >::remove(), setCompressedData(), Lamp::QuaternionLinearInterpolator::setKey(), Lamp::QuaternionLinearInterpolator::setKeyCount(), Lamp::RotationInterpolationCompressor::LinearKey::time_, and Lamp::RotationInterpolationCompressor::LinearKey::value_. Referenced by compress(). |
|
||||||||||||
|
圧縮準備
Definition at line 87 of file RotationInterpolationCompressor.cpp. References Assert, Lamp::QuaternionArrayInterpolator::getLength(), Lamp::QuaternionArrayInterpolator::getSize(), and NULL. Referenced by compress(). |
|
|
圧縮後キー数の取得
Definition at line 110 of file RotationInterpolationCompressor.h. Referenced by getCompressedSize(), and getResultString(). |
|
|
圧縮後サイズの取得
Definition at line 116 of file RotationInterpolationCompressor.h. References getCompressedKeyCount(). Referenced by getCompressionRate(), and getResultString(). |
|
|
圧縮率の取得
Definition at line 125 of file RotationInterpolationCompressor.h. References getCompressedSize(), and getSourceSize(). Referenced by getResultString(). |
|
|
長さの取得
Definition at line 88 of file RotationInterpolationCompressor.h. Referenced by compressConstant(), compressLinear(), and getResultString(). |
|
|
結果文字列の取得
Definition at line 235 of file RotationInterpolationCompressor.cpp. References Lamp::String::format(), getCompressedKeyCount(), getCompressedSize(), getCompressionRate(), getLength(), getSourceKeyCount(), and getSourceSize(). |
|
|
ソースキー数の取得
Definition at line 95 of file RotationInterpolationCompressor.h. Referenced by compress(), compressLinear(), getResultString(), and getSourceSize(). |
|
|
ソースサイズの取得
Definition at line 101 of file RotationInterpolationCompressor.h. References getSourceKeyCount(), and sourceKeySize_. Referenced by compressLinear(), getCompressionRate(), and getResultString(). |
|
|
許容誤差の取得
Definition at line 82 of file RotationInterpolationCompressor.h. Referenced by compressConstant(), and compressLinear(). |
|
||||||||||||||||||||
|
線形圧縮誤差の再計算
Definition at line 210 of file RotationInterpolationCompressor.cpp. References Lamp::Quaternion::dotProduct(), Lamp::RotationInterpolationCompressor::LinearKey::errorCos_, Lamp::QuaternionArrayInterpolator::getValue(), Lamp::RotationInterpolationCompressor::LinearKey::time_, and Lamp::RotationInterpolationCompressor::LinearKey::value_. Referenced by compressLinear(). |
|
||||||||||||
|
圧縮結果の設定
Definition at line 192 of file RotationInterpolationCompressor.h. Referenced by compress(), compressConstant(), and compressLinear(). |
1.3.2