Changeset 15 in flair-src for trunk/lib/FlairCore/src/OneAxisRotation.cpp
- Timestamp:
- 04/08/16 15:40:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/OneAxisRotation.cpp
r2 r15 16 16 /*********************************************************************/ 17 17 18 // this "filter" is in core but it should be in filter19 // filter depends on sensoractuator20 // sensoractuators depends on oneaxisrotation21 // so if oneaxisrotation is in fiter we have a circular dependency22 // TODO: fix this!18 // this "filter" is in core but it should be in filter 19 // filter depends on sensoractuator 20 // sensoractuators depends on oneaxisrotation 21 // so if oneaxisrotation is in fiter we have a circular dependency 22 // TODO: fix this! 23 23 24 24 #include "OneAxisRotation.h" … … 29 29 using std::string; 30 30 31 namespace flair 32 { 33 namespace core 34 { 31 namespace flair { 32 namespace core { 35 33 36 OneAxisRotation::OneAxisRotation(const gui::LayoutPosition* position,string name): gui::GroupBox(position,name) 37 { 38 pimpl_=new OneAxisRotation_impl(this); 34 OneAxisRotation::OneAxisRotation(const gui::LayoutPosition *position, 35 string name) 36 : gui::GroupBox(position, name) { 37 pimpl_ = new OneAxisRotation_impl(this); 39 38 } 40 39 41 OneAxisRotation::~OneAxisRotation() 42 { 43 delete pimpl_; 40 OneAxisRotation::~OneAxisRotation() { delete pimpl_; } 41 42 void OneAxisRotation::ComputeRotation(Vector3D &vector) const { 43 pimpl_->ComputeRotation(vector); 44 44 } 45 45 46 void OneAxisRotation::ComputeRotation(Vector3D& vector) const 47 { 48 pimpl_->ComputeRotation(vector); 46 void OneAxisRotation::ComputeRotation(Euler &euler) const { 47 pimpl_->ComputeRotation(euler); 49 48 } 50 49 51 void OneAxisRotation::ComputeRotation(Euler& euler) const 52 { 53 pimpl_->ComputeRotation(euler); 50 void OneAxisRotation::ComputeRotation(Quaternion &quaternion) const { 51 pimpl_->ComputeRotation(quaternion); 54 52 } 55 53 56 void OneAxisRotation::ComputeRotation(Quaternion& quaternion) const { 57 pimpl_->ComputeRotation(quaternion); 58 } 59 60 void OneAxisRotation::ComputeRotation(RotationMatrix& matrix) const { 61 pimpl_->ComputeRotation(matrix); 54 void OneAxisRotation::ComputeRotation(RotationMatrix &matrix) const { 55 pimpl_->ComputeRotation(matrix); 62 56 } 63 57
Note:
See TracChangeset
for help on using the changeset viewer.