KudanAR - Android  1.6.0
ARGyroManager Class Reference

Inherits ARRendererListener.

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

◆ addListener()

void ARGyroManager.addListener ( ARGyroManagerListener  listener)

Add ARGyroManagerListener to ARGyroManager listeners.

Parameters
listener

◆ deinitialise()

void ARGyroManager.deinitialise ( )

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

◆ getInstance()

static ARGyroManager ARGyroManager.getInstance ( )
static

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

Returns
The ARGyroManager singleton.

◆ getWorld()

ARWorld ARGyroManager.getWorld ( )

Return the ARGyroManager's world.

Returns
The ARGyroManager's world node.

◆ initialise()

void ARGyroManager.initialise ( )

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.

◆ notifyListenersGyroStarted()

void ARGyroManager.notifyListenersGyroStarted ( )

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

◆ postRender()

void ARGyroManager.postRender ( )

Method called just after rendering each frame.

Implements ARRendererListener.

◆ preRender()

void ARGyroManager.preRender ( )

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

Implements ARRendererListener.

◆ removeListener()

void ARGyroManager.removeListener ( ARGyroManagerListener  listener)

Remove ARGyroManagerListener from ARGyroManager listeners.

Parameters
listener

◆ rendererDidPause()

void ARGyroManager.rendererDidPause ( )

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

Implements ARRendererListener.

◆ rendererDidResume()

void ARGyroManager.rendererDidResume ( )

Method called when the renderer resumes after being paused.

Implements ARRendererListener.

◆ start()

void ARGyroManager.start ( )

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

◆ stop()

void ARGyroManager.stop ( )

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

◆ updateNode()

synchronized void ARGyroManager.updateNode ( )

Updates the ARGyroManager's world orientation.


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