GLC_lib  2.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
glc_interpolator.h
Go to the documentation of this file.
1 /****************************************************************************
2 
3  This file is part of the GLC-lib library.
4  Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
5  http://glc-lib.sourceforge.net
6 
7  GLC-lib is free software; you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation; either version 3 of the License, or
10  (at your option) any later version.
11 
12  GLC-lib is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with GLC-lib; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 
21 *****************************************************************************/
22 
24 
25 #ifndef GLC_INTERPOLATOR_H_
26 #define GLC_INTERPOLATOR_H_
27 
28 #include "glc_vector3d.h"
29 #include "glc_matrix4x4.h"
30 
31 #include "../glc_config.h"
32 
33 // Types d'interpolation
35 {
39 };
40 
43 
46 
48 {
49 
50 public:
53 
55 // Set Function
57 public:
59  void SetInterpolMat(int NbrPas, const GLC_Vector3d &VectDepart, const GLC_Vector3d &VectArrive
60  , INTERPOL_TYPE Interpolation = INTERPOL_LINEAIRE);
61 
63  void SetType(INTERPOL_TYPE Interpolation);
64 
65  // Number of step
66  void SetNbrPas(int NbrPas);
67 
69  void SetVecteurs(const GLC_Vector3d &VectDepart, const GLC_Vector3d &VectArrive);
70 
72 // Get Function
74 public:
76  inline GLC_Matrix4x4 GetInterpolMat(void) const
77  {return m_InterpolMat;}
78 
80 // Private services functions
82 private:
84  bool CalcInterpolMat(void);
85 
87  bool CalcInterpolLineaireMat(void);
88 
90  bool CalcInterpolAngulaireMat(void);
91 
93 // Membres privés
95 private:
98 
101 
104 
107 
110 };
111 
112 #endif /*GLC_INTERPOLATOR_H_*/

©2005-2013 Laurent Ribon