Last change
on this file since 348 was 187, checked in by Sanahuja Guillaume, 7 years ago |
changement post/pre rotation
|
File size:
1.3 KB
|
Rev | Line | |
---|
[2] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[2] | 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 |
|
---|
[167] | 16 | #include <Vector3D.h>
|
---|
| 17 |
|
---|
[15] | 18 | namespace flair {
|
---|
| 19 | namespace core {
|
---|
| 20 | class Euler;
|
---|
| 21 | class Quaternion;
|
---|
| 22 | class RotationMatrix;
|
---|
[2] | 23 | }
|
---|
[15] | 24 | namespace gui {
|
---|
| 25 | class GroupBox;
|
---|
| 26 | class ComboBox;
|
---|
| 27 | class DoubleSpinBox;
|
---|
| 28 | }
|
---|
| 29 | }
|
---|
[2] | 30 |
|
---|
| 31 | /*! \class OneAxisRotation_impl
|
---|
| 32 | * \brief Classe définissant une rotation autour d'un axe
|
---|
| 33 | *
|
---|
| 34 | */
|
---|
[15] | 35 | class OneAxisRotation_impl {
|
---|
| 36 | public:
|
---|
[187] | 37 | OneAxisRotation_impl(flair::gui::GroupBox *box,int rotationType);
|
---|
[15] | 38 | ~OneAxisRotation_impl();
|
---|
[167] | 39 | template <typename T> void ComputeRotation(flair::core::Vector3D<T> &point) const;
|
---|
[15] | 40 | void ComputeRotation(flair::core::Quaternion &quat) const;
|
---|
| 41 | void ComputeRotation(flair::core::RotationMatrix &matrix) const;
|
---|
| 42 | void ComputeRotation(flair::core::Euler &euler) const;
|
---|
[144] | 43 | int GetAxis() const;
|
---|
| 44 | float GetAngle() const;
|
---|
| 45 |
|
---|
[15] | 46 | private:
|
---|
| 47 | flair::gui::ComboBox *rot_axe;
|
---|
| 48 | flair::gui::DoubleSpinBox *rot_value;
|
---|
[187] | 49 | int rotationType;
|
---|
[2] | 50 | };
|
---|
| 51 |
|
---|
| 52 | #endif // ONEAXISROTATION_IMPL_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.