KudanAR - Android  1.6.0
ARGyroPlaceManager Class Reference

Inherits ARRendererListener.

Public Member Functions

void initialise ()
 
void deinitialise ()
 
void preRender ()
 
float getFloorDepth ()
 
void setFloorDepth (float floorDepth)
 
ARNode getWorld ()
 
void postRender ()
 
void rendererDidPause ()
 
void rendererDidResume ()
 

Static Public Member Functions

static ARGyroPlaceManager getInstance ()
 

Detailed Description

ARGyroPlaceManager is a sensor-only tracker that places content on a virtual floor plane where the device is aimed. Used predominantly when positioning nodes for markerless tracking.

Member Function Documentation

◆ deinitialise()

void ARGyroPlaceManager.deinitialise ( )

Deinitialise the ARGyroPlaceManager.

◆ getFloorDepth()

float ARGyroPlaceManager.getFloorDepth ( )

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;

Returns
The ARGyroPlaceMangers floor depth.

◆ getInstance()

static ARGyroPlaceManager ARGyroPlaceManager.getInstance ( )
static

Return the ARGyroPlaceManager singleton.

Returns
The Gyro Place Manager singleton.

◆ getWorld()

ARNode ARGyroPlaceManager.getWorld ( )

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

Returns
The Gyro Place Manager's world node.

◆ initialise()

void ARGyroPlaceManager.initialise ( )

Initialise the ARGyroPlaceManager. 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.

◆ postRender()

void ARGyroPlaceManager.postRender ( )

Method called just after rendering each frame.

Implements ARRendererListener.

◆ preRender()

void ARGyroPlaceManager.preRender ( )

ARRendererListener interface method called before each frame is rendered and updates the ARGyroPlaceMangers world.

Implements ARRendererListener.

◆ rendererDidPause()

void ARGyroPlaceManager.rendererDidPause ( )

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

Implements ARRendererListener.

◆ rendererDidResume()

void ARGyroPlaceManager.rendererDidResume ( )

Method called when the renderer resumes after being paused.

Implements ARRendererListener.

◆ setFloorDepth()

void ARGyroPlaceManager.setFloorDepth ( float  floorDepth)

Sets 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;

Parameters
floorDepthFloor depths units are arbitrary.

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