![]() |
KudanAR - Android
1.6.0
|
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 () |
A manager class representing the device's gyro. This class is resposible for using IMU data to transform AR content with device rotations.
| void ARGyroManager.addListener | ( | ARGyroManagerListener | listener | ) |
Add ARGyroManagerListener to ARGyroManager listeners.
| listener |
| void ARGyroManager.deinitialise | ( | ) |
Deinitialises the ARGyroManager singleton and dereferences the HeadTracker. The ARGyroManager's world is reset with a new ARWorld at this time.
|
static |
Return the ARGyroManager singleton. The first time this is called, a new ARGyroManager singleton is initialised.
| ARWorld ARGyroManager.getWorld | ( | ) |
Return the ARGyroManager's world.
| 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.
| void ARGyroManager.notifyListenersGyroStarted | ( | ) |
Notifies listeners that ARGyroManager has started and is receiving the device's gyro values.
| void ARGyroManager.postRender | ( | ) |
Method called just after rendering each frame.
Implements ARRendererListener.
| void ARGyroManager.preRender | ( | ) |
ARRenderListener interface method. Called prior to renderer each frame updates the gyros world.
Implements ARRendererListener.
| void ARGyroManager.removeListener | ( | ARGyroManagerListener | listener | ) |
Remove ARGyroManagerListener from ARGyroManager listeners.
| listener |
| void ARGyroManager.rendererDidPause | ( | ) |
Method called when the renderer has been paused. This can be used to shut down other subsystems.
Implements ARRendererListener.
| void ARGyroManager.rendererDidResume | ( | ) |
Method called when the renderer resumes after being paused.
Implements ARRendererListener.
| void ARGyroManager.start | ( | ) |
Starts device motion updates and adds the ARGyroManager to the list of the ARRenderer's listeners.
| void ARGyroManager.stop | ( | ) |
Stops device motion updates and removes the ARGyroManager from the list of the ARRenderer's listeners.
| synchronized void ARGyroManager.updateNode | ( | ) |
Updates the ARGyroManager's world orientation.