Last change
on this file since 219 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 |
|
---|
18 | namespace flair {
|
---|
19 | namespace core {
|
---|
20 | class Euler;
|
---|
21 | class Quaternion;
|
---|
22 | class RotationMatrix;
|
---|
23 | }
|
---|
24 | namespace gui {
|
---|
25 | class GroupBox;
|
---|
26 | class ComboBox;
|
---|
27 | class DoubleSpinBox;
|
---|
28 | }
|
---|
29 | }
|
---|
30 |
|
---|
31 | /*! \class OneAxisRotation_impl
|
---|
32 | * \brief Classe définissant une rotation autour d'un axe
|
---|
33 | *
|
---|
34 | */
|
---|
35 | class OneAxisRotation_impl {
|
---|
36 | public:
|
---|
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 |
|
---|
46 | private:
|
---|
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.