Changeset 144 in flair-src for trunk/lib/FlairCore


Ignore:
Timestamp:
Feb 27, 2017, 10:59:54 AM (8 years ago)
Author:
Bayard Gildas
Message:

Go!

Location:
trunk/lib/FlairCore/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/OneAxisRotation.cpp

    r15 r144  
    5656}
    5757
     58float OneAxisRotation::GetAngle() const {
     59  return pimpl_->GetAngle();
     60}
     61
     62int OneAxisRotation::GetAxis() const {
     63  return pimpl_->GetAxis();
     64}
     65
    5866} // end namespace core
    5967} // end namespace flair
  • trunk/lib/FlairCore/src/OneAxisRotation.h

    r15 r144  
    8282  void ComputeRotation(core::RotationMatrix &matrix) const;
    8383
     84  float GetAngle() const;
     85  int GetAxis() const;
     86
    8487private:
    8588  const class OneAxisRotation_impl *pimpl_;
  • trunk/lib/FlairCore/src/OneAxisRotation_impl.cpp

    r103 r144  
    7474  quat.ToEuler(euler);
    7575}
     76
     77int OneAxisRotation_impl::GetAxis() const {
     78  return rot_axe->CurrentIndex();
     79}
     80
     81float OneAxisRotation_impl::GetAngle() const {
     82  return rot_value->Value();
     83}
     84
  • trunk/lib/FlairCore/src/unexported/OneAxisRotation_impl.h

    r15 r144  
    4040  void ComputeRotation(flair::core::RotationMatrix &matrix) const;
    4141  void ComputeRotation(flair::core::Euler &euler) const;
    42 
     42  int GetAxis() const;
     43  float GetAngle() const;
     44 
    4345private:
    4446  flair::gui::ComboBox *rot_axe;
Note: See TracChangeset for help on using the changeset viewer.