Murl::Input::IGyroscopeDevice Interface Referenceabstract

The IGyroscopeDevice interface. More...

#include "murl_input_i_gyroscope_device.h"

Inheritance diagram for Murl::Input::IGyroscopeDevice:

Public Member Functions

virtual Real GetAngularVelocityX () const =0
 Get the gyroscope angular velocity around the x-axis. More...
 
virtual Real GetAngularVelocityY () const =0
 Get the gyroscope angular velocity around the y-axis. More...
 
virtual Real GetAngularVelocityZ () const =0
 Get the gyroscope angular velocity around the z-axis. More...
 
virtual AngularVelocityVector GetAngularVelocity () const =0
 Get the gyroscope angular velocity axes. More...
 
virtual AngularVelocityVector GetRawAngularVelocity () const =0
 Get the raw gyroscope angular velocity axes. More...
 
- Public Member Functions inherited from Murl::Input::IDevice
virtual const StringGetName () const =0
 Get the device name. More...
 
virtual UInt32 GetId () const =0
 Get the unique device identifier. More...
 
virtual Bool HasUpdate () const =0
 Check if the device has received new data since the last Update(). More...
 
virtual void LogicUpdate ()=0
 Is executed in the logic thread context each logic tick.
 
virtual void ConfigChanged (const IAppConfiguration *appConfig)=0
 Notification of changed configuration. More...
 

Detailed Description

The IGyroscopeDevice interface.

To receive data the device must be activated by IAppConfiguration::SetGyroscopeActive().

Member Function Documentation

◆ GetAngularVelocityX()

virtual Real Murl::Input::IGyroscopeDevice::GetAngularVelocityX ( ) const
pure virtual

Get the gyroscope angular velocity around the x-axis.

Returns
The angular velocity around the x-axis in radians per second.

◆ GetAngularVelocityY()

virtual Real Murl::Input::IGyroscopeDevice::GetAngularVelocityY ( ) const
pure virtual

Get the gyroscope angular velocity around the y-axis.

Returns
The angular velocity around the y-axis in radians per second.

◆ GetAngularVelocityZ()

virtual Real Murl::Input::IGyroscopeDevice::GetAngularVelocityZ ( ) const
pure virtual

Get the gyroscope angular velocity around the z-axis.

Returns
The angular velocity around the z-axis in radians per second.

◆ GetAngularVelocity()

virtual AngularVelocityVector Murl::Input::IGyroscopeDevice::GetAngularVelocity ( ) const
pure virtual

Get the gyroscope angular velocity axes.

Returns
The angular velocity axes in radians per second.

◆ GetRawAngularVelocity()

virtual AngularVelocityVector Murl::Input::IGyroscopeDevice::GetRawAngularVelocity ( ) const
pure virtual

Get the raw gyroscope angular velocity axes.

This method is useful to evaluate the absolute device orientation. All other methods reports the values relative to the current screen axis orientation.

Returns
The angular velocity axes in radians per second.

The documentation for this interface was generated from the following file:
  • murl_input_i_gyroscope_device.h


Copyright © 2011-2018 Spraylight GmbH.