KudanAR - Android
ARGyroManager Class Reference
+ Inheritance diagram for ARGyroManager:
+ Collaboration diagram for ARGyroManager:

Public Member Functions

void initialise ()
 
void deinitialise ()
 
void start ()
 
void stop ()
 
synchronized void updateNode ()
 
ARWorld getWorld ()
 
void preRender ()
 
void postRender ()
 
void rendererDidPause ()
 
void rendererDidResume ()
 
void notifyListenersGyroStarted ()
 
void addListener (ARGyroManagerListener listener)
 
void removeListener (ARGyroManagerListener listener)
 

Static Public Member Functions

static ARGyroManager getInstance ()
 

Detailed Description

A manager class representing the device's gyro. This class is resposible for using IMU data to transform AR content with device rotations.

Member Function Documentation

void addListener ( ARGyroManagerListener  listener)
inline

Add ARGyroManagerListener to ARGyroManager listeners.

Parameters
listener
void deinitialise ( )
inline

Deinitialises the ARGyroManager singleton and dereferences the HeadTracker. The ARGyroManager's world is reset with a new ARWorld at this time.

static ARGyroManager getInstance ( )
inlinestatic

Return the ARGyroManager singleton. The first time this is called, a new ARGyroManager singleton is initialised.

Returns
The ARGyroManager singleton.
ARWorld getWorld ( )
inline

Return the ARGyroManager's world.

Returns
The ARGyroManager's world node.
void initialise ( )
inline

Initialises the ARGyroManager singleton and the cardboard HeadTracker. The ARGyroManager's world is created at this time. By default, the HeadTracker starts up with a rotation of -90 degrees in the device's local X-axis.

void notifyListenersGyroStarted ( )
inline

Notifies listeners that ARGyroManager has started and is receiving the device's gyro values.

void postRender ( )
inline

Method called just after rendering each frame.

Implements ARRendererListener.

void preRender ( )
inline

ARRenderListener interface method. Called prior to renderer each frame updates the gyros world.

Implements ARRendererListener.

void removeListener ( ARGyroManagerListener  listener)
inline

Remove ARGyroManagerListener from ARGyroManager listeners.

Parameters
listener
void rendererDidPause ( )
inline

Method called when the renderer has been paused. This can be used to shut down other subsystems.

Implements ARRendererListener.

void rendererDidResume ( )
inline

Method called when the renderer resumes after being paused.

Implements ARRendererListener.

void start ( )
inline

Starts device motion updates and adds the ARGyroManager to the list of the ARRenderer's listeners.

void stop ( )
inline

Stops device motion updates and removes the ARGyroManager from the list of the ARRenderer's listeners.

synchronized void updateNode ( )
inline

Updates the ARGyroManager's world orientation.


The documentation for this class was generated from the following file: