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