public abstract class PositionOrientationProvider
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<OriginUpdateListener> |
originUpdateListeners
Threadsafe list of origin update listeners
|
| Constructor and Description |
|---|
PositionOrientationProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOriginUpdateListener(OriginUpdateListener l)
Add an origin update listener
|
protected void |
callOriginUpdateListeners(OriginData origin)
Call all origin update listeners
|
abstract android.location.Location |
getLocation()
Get the current position of the device
|
abstract float[] |
getTransformationMatrix()
Get the current rotation of the device in the rotation matrix format
|
void |
removeOriginUpdateListener(OriginUpdateListener l)
Remove an origin update listener
|
abstract void |
reset()
Initialize everything (when Tango initializes with a new origin)
|
protected java.util.List<OriginUpdateListener> originUpdateListeners
public abstract void reset()
public abstract float[] getTransformationMatrix()
public abstract android.location.Location getLocation()
public void addOriginUpdateListener(OriginUpdateListener l)
l - public void removeOriginUpdateListener(OriginUpdateListener l)
l - protected void callOriginUpdateListeners(OriginData origin)
origin -