source: flair-src/trunk/lib/FlairCore/src/unexported/OneAxisRotation_impl.h @ 167

Last change on this file since 167 was 167, checked in by Sanahuja Guillaume, 4 years ago

modifs pour template vectors

File size: 1.2 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5/*!
6 * \file OneAxisRotation_impl.h
7 * \brief Classe définissant une rotation autour d'un axe
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2013/04/17
10 * \version 4.0
11 */
12
13#ifndef ONEAXISROTATION_IMPL_H
14#define ONEAXISROTATION_IMPL_H
15
16#include <Vector3D.h>
17
18namespace flair {
19namespace core {
20class Euler;
21class Quaternion;
22class RotationMatrix;
23}
24namespace gui {
25class GroupBox;
26class ComboBox;
27class DoubleSpinBox;
28}
29}
30
31/*! \class OneAxisRotation_impl
32* \brief Classe définissant une rotation autour d'un axe
33*
34*/
35class OneAxisRotation_impl {
36public:
37  OneAxisRotation_impl(flair::gui::GroupBox *box);
38  ~OneAxisRotation_impl();
39  template <typename T> void ComputeRotation(flair::core::Vector3D<T> &point) const;
40  void ComputeRotation(flair::core::Quaternion &quat) const;
41  void ComputeRotation(flair::core::RotationMatrix &matrix) const;
42  void ComputeRotation(flair::core::Euler &euler) const;
43  int GetAxis() const;
44  float GetAngle() const;
45 
46private:
47  flair::gui::ComboBox *rot_axe;
48  flair::gui::DoubleSpinBox *rot_value;
49};
50
51#endif // ONEAXISROTATION_IMPL_H
Note: See TracBrowser for help on using the repository browser.