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

Last change on this file was 187, checked in by Sanahuja Guillaume, 7 years ago

changement post/pre rotation

File size: 1.3 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,int rotationType);
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 int rotationType;
50};
51
52#endif // ONEAXISROTATION_IMPL_H
Note: See TracBrowser for help on using the repository browser.