GLC_Interpolator : Matrix interpolation class. More...
#include <glc_interpolator.h>
Public Member Functions | |
| GLC_Interpolator () | |
| void | SetInterpolMat (int NbrPas, const GLC_Vector3d &VectDepart, const GLC_Vector3d &VectArrive, INTERPOL_TYPE Interpolation=INTERPOL_LINEAIRE) |
| void | SetType (INTERPOL_TYPE Interpolation) |
| void | SetNbrPas (int NbrPas) |
| void | SetVecteurs (const GLC_Vector3d &VectDepart, const GLC_Vector3d &VectArrive) |
| GLC_Matrix4x4 | GetInterpolMat (void) const |
Private Member Functions | |
| bool | CalcInterpolMat (void) |
| bool | CalcInterpolLineaireMat (void) |
| bool | CalcInterpolAngulaireMat (void) |
Private Attributes | |
| GLC_Vector3d | m_VectDepart |
| GLC_Vector3d | m_VectArrive |
| INTERPOL_TYPE | m_InterpolType |
| int | m_nNbrPas |
| GLC_Matrix4x4 | m_InterpolMat |
GLC_Interpolator : Matrix interpolation class.
An GLC_Interpolator is a class used to interpolate 2 4D matrix
Definition at line 47 of file glc_interpolator.h.
| GLC_Interpolator::GLC_Interpolator | ( | ) |
Definition at line 33 of file glc_interpolator.cpp.
| bool GLC_Interpolator::CalcInterpolAngulaireMat | ( | void | ) | [private] |
Definition at line 154 of file glc_interpolator.cpp.
References m_InterpolMat, m_nNbrPas, m_VectArrive, m_VectDepart, GLC_Matrix4x4::setMatRot(), and GLC_Matrix4x4::setToIdentity().
Referenced by CalcInterpolMat().
| bool GLC_Interpolator::CalcInterpolLineaireMat | ( | void | ) | [private] |
Definition at line 135 of file glc_interpolator.cpp.
References GLC_Vector3d::isNull(), m_InterpolMat, m_nNbrPas, m_VectArrive, m_VectDepart, GLC_Matrix4x4::setMatTranslate(), and GLC_Matrix4x4::setToIdentity().
Referenced by CalcInterpolMat().
| bool GLC_Interpolator::CalcInterpolMat | ( | void | ) | [private] |
Definition at line 105 of file glc_interpolator.cpp.
References CalcInterpolAngulaireMat(), CalcInterpolLineaireMat(), INTERPOL_ANGULAIRE, INTERPOL_HOMOTETIE, INTERPOL_LINEAIRE, m_InterpolType, m_VectArrive, and m_VectDepart.
Referenced by SetInterpolMat(), SetNbrPas(), SetType(), and SetVecteurs().
| GLC_Matrix4x4 GLC_Interpolator::GetInterpolMat | ( | void | ) | const [inline] |
Definition at line 76 of file glc_interpolator.h.
| void GLC_Interpolator::SetInterpolMat | ( | int | NbrPas, | |
| const GLC_Vector3d & | VectDepart, | |||
| const GLC_Vector3d & | VectArrive, | |||
| INTERPOL_TYPE | Interpolation = INTERPOL_LINEAIRE | |||
| ) |
Definition at line 44 of file glc_interpolator.cpp.
References CalcInterpolMat(), m_InterpolType, m_nNbrPas, m_VectArrive, and m_VectDepart.
| void GLC_Interpolator::SetNbrPas | ( | int | NbrPas | ) |
Definition at line 71 of file glc_interpolator.cpp.
References CalcInterpolMat(), and m_nNbrPas.
| void GLC_Interpolator::SetType | ( | INTERPOL_TYPE | Interpolation | ) |
Definition at line 61 of file glc_interpolator.cpp.
References CalcInterpolMat(), and m_InterpolType.
| void GLC_Interpolator::SetVecteurs | ( | const GLC_Vector3d & | VectDepart, | |
| const GLC_Vector3d & | VectArrive | |||
| ) |
Definition at line 87 of file glc_interpolator.cpp.
References CalcInterpolMat(), m_VectArrive, and m_VectDepart.
GLC_Matrix4x4 GLC_Interpolator::m_InterpolMat [private] |
Definition at line 110 of file glc_interpolator.h.
Referenced by CalcInterpolAngulaireMat(), and CalcInterpolLineaireMat().
Definition at line 104 of file glc_interpolator.h.
Referenced by CalcInterpolMat(), SetInterpolMat(), and SetType().
int GLC_Interpolator::m_nNbrPas [private] |
Definition at line 107 of file glc_interpolator.h.
Referenced by CalcInterpolAngulaireMat(), CalcInterpolLineaireMat(), SetInterpolMat(), and SetNbrPas().
GLC_Vector3d GLC_Interpolator::m_VectArrive [private] |
Definition at line 101 of file glc_interpolator.h.
Referenced by CalcInterpolAngulaireMat(), CalcInterpolLineaireMat(), CalcInterpolMat(), SetInterpolMat(), and SetVecteurs().
GLC_Vector3d GLC_Interpolator::m_VectDepart [private] |
Definition at line 99 of file glc_interpolator.h.
Referenced by CalcInterpolAngulaireMat(), CalcInterpolLineaireMat(), CalcInterpolMat(), SetInterpolMat(), and SetVecteurs().