KudanAR - iOS
ARGyroPlaceManager Class Reference

#import <ARGyroPlaceManager.h>

+ Inheritance diagram for ARGyroPlaceManager:
+ Collaboration diagram for ARGyroPlaceManager:

Instance Methods

(void) - initialise
 
(void) - deinitialise
 
- Instance Methods inherited from <ARRendererDelegate>
(void) - rendererPreRender
 
(void) - rendererPostRender
 
(void) - rendererDidPause
 
(void) - rendererDidResume
 

Class Methods

(ARGyroPlaceManager *) + getInstance
 

Properties

float floorDepth
 
ARWorldworld
 
CGPoint screenCentre
 

Detailed Description

Gyro place is a sensor-only tracker that places content on a virtual floor plane where the device is aimed.

Method Documentation

- (void) deinitialise

Deinitialise the Gyro Place Manager.

Example of use:

+ (ARGyroPlaceManager *) getInstance

Get the Gyro Place Manager singleton.

Example of use:

Returns
The Gyro Place Manager singleton.
- (void) initialise

Initialise the Gyro Place Manager. Sometimes, while the manager first initialises, the device's gyroscope will report incorrect values, causing the orientation of the target node to appear incorrect. This will correct itself after a number of frames.

Example of use:

Property Documentation

- (float) floorDepth
readwritenonatomicassign

The distance between the floor and the camera. The units are arbitrary but can have real-world meaning to achieve realistic scale for placed content. Eg. if you estimate the device to be 100cm above the floor, set floorDepth to -100. Content rendered using this same space will look approximately the correct scale. The default value is -150;

- (CGPoint) screenCentre
readwritenonatomicassign

The centre of the screen in viewport coordinates. This is automatically set but can be overridden if you with a different part of the screen to act as the target.

- (ARWorld*) world
readwritenonatomicassign

The world node that is controlled by this tracker. The world is placed where the camera normal intersects the floor plane.


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