00001
00004 #ifndef FBXFILESDK_KFBXMATH_KFBXXMATRIX_H
00005 #define FBXFILESDK_KFBXMATH_KFBXXMATRIX_H
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #include <fbxfilesdk/components/kbaselib/kaydaradef_h.h>
00043 #include <fbxfilesdk/components/kbaselib/kaydara.h>
00044
00045 #include <fbxfilesdk/kfbxplugins/kfbxtypes.h>
00046 #include <fbxfilesdk/kfbxmath/kfbxquaternion.h>
00047 #include <fbxfilesdk/kfbxmath/kfbxvector4.h>
00048 #include <fbxfilesdk/kfbxmath/kfbxtransformation.h>
00049
00050 #include <fbxfilesdk/components/kbaselib/kbaselib_forward.h>
00051
00052 #include <fbxfilesdk/fbxfilesdk_nsbegin.h>
00053
00063 class KFBX_DLL KFbxXMatrix : public fbxDouble44
00064 {
00065 public:
00066
00071
00073 KFbxXMatrix();
00074
00078 KFbxXMatrix(const KFbxXMatrix& pXMatrix);
00079
00085 KFbxXMatrix(KFbxVector4& pT,
00086 KFbxVector4& pR,
00087 KFbxVector4& pS);
00088
00090 ~KFbxXMatrix();
00091
00093
00098
00104 double Get(int pY, int pX) const;
00105
00109 KFbxVector4 GetT();
00110
00114 KFbxVector4 GetR();
00115
00119 KFbxQuaternion GetQ();
00120
00124 KFbxVector4 GetS();
00125
00130 KFbxVector4 GetRow(int pY);
00131
00136 KFbxVector4 GetColumn(int pX);
00137
00139 void SetIdentity();
00140
00144 void SetT(KFbxVector4& pT);
00145
00149 void SetR(KFbxVector4& pR);
00150
00154 void SetQ(KFbxQuaternion& pQ);
00155
00159 void SetS(KFbxVector4& pS);
00160
00166 void SetTRS(KFbxVector4& pT,
00167 KFbxVector4& pR,
00168 KFbxVector4& pS);
00169
00175 void SetTQS(KFbxVector4& pT,
00176 KFbxQuaternion& pQ,
00177 KFbxVector4& pS);
00178
00182 KFbxXMatrix& operator=(const KFbxXMatrix& pM);
00183
00185
00190
00199 KFbxXMatrix operator*(double pValue);
00200
00209 KFbxXMatrix operator/(double pValue);
00210
00219 KFbxXMatrix& operator*=(double pValue);
00220
00229 KFbxXMatrix& operator/=(double pValue);
00230
00232
00237
00242 KFbxVector4 MultT(KFbxVector4& pVector4);
00243
00248 KFbxVector4 MultR(KFbxVector4& pVector4);
00249
00254 KFbxQuaternion MultQ(KFbxQuaternion& pQuaternion);
00255
00260 KFbxVector4 MultS(KFbxVector4& pVector4);
00261
00263
00268
00272 KFbxXMatrix operator-();
00273
00278 KFbxXMatrix operator*(KFbxXMatrix& pXMatrix);
00279
00284 KFbxXMatrix& operator*=(KFbxXMatrix& pXMatrix);
00285
00289 KFbxXMatrix Inverse();
00290
00294 KFbxXMatrix Transpose();
00295
00297
00302
00307 bool operator==(KFbxXMatrix& pXMatrix);
00308
00313 bool operator==(KFbxXMatrix const& pXMatrix) const;
00314
00319 bool operator!=(KFbxXMatrix& pXMatrix);
00320
00325 bool operator!=(KFbxXMatrix const& pXMatrix) const;
00326
00328
00333
00335 operator double* ();
00337 typedef const double(kDouble44)[4][4] ;
00339 inline kDouble44 & Double44() const { return *((kDouble44 *)&mData); }
00341
00342
00343
00344
00346
00347
00348
00349
00350
00351
00353
00354 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00355 void CreateKFbxXMatrixRotation(double pX, double pY, double pZ);
00356 void V2M(KFbxXMatrix &pMatrix, KFbxVector4 &pVector, ERotationOrder pRotationOrder);
00357 void M2V(KFbxVector4 &pVector, KFbxXMatrix &pMatrix, ERotationOrder pRotationOrder);
00358
00363
00364 KFbxXMatrix& operator=(const KgeAMatrix& pAMatrix);
00365 operator KgeAMatrix& ();
00366
00368
00369 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00370
00371 };
00372
00373 inline EFbxType FbxTypeOf( KFbxXMatrix const &pItem ) { return eDOUBLE44; }
00374 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00375
00376 #endif // FBXFILESDK_KFBXMATH_KFBXXMATRIX_H
00377