![]() |
Flair
Framework Libre Air
|
Class defining a rotation around one axis. More...
#include <OneAxisRotation.h>
Inheritance diagram for flair::core::OneAxisRotation:Public Types | |
| enum | RotationType_t { PreRotation, PostRotation } |
| rotation type More... | |
Public Types inherited from flair::core::Object | |
| enum | color_t { Auto = 0, Red = 31, Green = 32, Orange = 33 } |
Public Member Functions | |
| OneAxisRotation (const gui::LayoutPosition *position, std::string name, RotationType_t rotationType) | |
| Constructor. More... | |
| ~OneAxisRotation () | |
| Destructor. More... | |
| template<typename T > | |
| void | ComputeRotation (core::Vector3D< T > &vector) const |
| Compute rotation. More... | |
| void | ComputeRotation (core::Euler &euler) const |
| Compute rotation. More... | |
| void | ComputeRotation (core::Quaternion &quaternion) const |
| Compute rotation. More... | |
| void | ComputeRotation (core::RotationMatrix &matrix) const |
| Compute rotation. More... | |
| float | GetAngle () const |
| Get angle. More... | |
| int | GetAxis () const |
Public Member Functions inherited from flair::gui::GroupBox | |
| GroupBox (const LayoutPosition *position, std::string name) | |
| Constructor. More... | |
| ~GroupBox () | |
| Destructor. More... | |
Public Member Functions inherited from flair::gui::Layout | |
| Layout (const Widget *parent, std::string name, std::string type) | |
| Constructor. More... | |
| ~Layout () | |
| Destructor. More... | |
| LayoutPosition * | LastRowLastCol (void) const |
| Last Row and Col LayoutPosition. More... | |
| LayoutPosition * | NewRow (void) const |
| New Row LayoutPosition. More... | |
| LayoutPosition * | At (uint16_t row, uint16_t col) const |
| LayoutPosition at specified position. More... | |
Public Member Functions inherited from flair::gui::Widget | |
| Widget (const Widget *parent, std::string name, std::string type) | |
| Constructor. More... | |
| virtual | ~Widget () |
| Destructor. More... | |
| void | setEnabled (bool status) |
| Set enabled. More... | |
| bool | isEnabled (void) const |
| Is enabled? More... | |
Public Member Functions inherited from flair::core::Object | |
| Object (const Object *parent=NULL, std::string name="", std::string type="") | |
| Constructor. More... | |
| virtual | ~Object () |
| Destructor. More... | |
| std::string | ObjectName (void) const |
| Name. More... | |
| std::string | ObjectType (void) const |
| Type. More... | |
| const Object * | Parent (void) const |
| Parent. More... | |
| std::vector< const Object * > * | TypeChilds (void) const |
| Childs of the same type. More... | |
| std::vector< const Object * > * | Childs (void) const |
| Childs. More... | |
| void | Information (const char *function, int line, const char *format,...) const |
| Formatted information. More... | |
| void | Warning (const char *function, const char *format,...) const |
| Formatted warning. More... | |
| void | Error (const char *function, const char *format,...) const |
| Formatted error. More... | |
| bool | ErrorOccured (bool recursive=true) const |
| Has an errror occured? More... | |
Additional Inherited Members | |
Protected Member Functions inherited from flair::gui::Widget | |
| template<typename T > | |
| void | SetPersistentXmlProp (std::string prop, T value) |
| Set a persistent xml property. More... | |
| template<typename T > | |
| bool | GetPersistentXmlProp (std::string prop, T &value) |
| Get a persistent xml property. More... | |
| template<typename T > | |
| void | SetVolatileXmlProp (std::string prop, T value, xmlNodePtr node=NULL) |
| Set a volatile xml property. More... | |
| void | SendXml (void) |
| Send xml. More... | |
| virtual void | XmlEvent (void) |
| Xml event. More... | |
| void | UnsetPersistentXmlProp (std::string prop) |
| Unset a persistent xml property. More... | |
Class defining a rotation around one axis.
Axe and value of the rotation are placed in a GroupBox on ground station.
rotation type
| flair::core::OneAxisRotation::OneAxisRotation | ( | const gui::LayoutPosition * | position, |
| std::string | name, | ||
| RotationType_t | rotationType | ||
| ) |
Constructor.
Construct a OneAxisRotation at given position.
| position | position to place the GroupBox |
| name | name |
| flair::core::OneAxisRotation::~OneAxisRotation | ( | ) |
Destructor.
| void flair::core::OneAxisRotation::ComputeRotation | ( | core::Vector3D< T > & | vector | ) | const |
Compute rotation.
| vector | Vector3Df to rotate |
| void flair::core::OneAxisRotation::ComputeRotation | ( | core::Euler & | euler | ) | const |
Compute rotation.
| euler | Euler angle to rotate |
| void flair::core::OneAxisRotation::ComputeRotation | ( | core::Quaternion & | quaternion | ) | const |
Compute rotation.
| quaternion | Quaternion to rotate |
| void flair::core::OneAxisRotation::ComputeRotation | ( | core::RotationMatrix & | matrix | ) | const |
Compute rotation.
| matrix | RotationMatrix to rotate |
| float flair::core::OneAxisRotation::GetAngle | ( | ) | const |
Get angle.