de.monarchy.guideme.view
Class RealityView

java.lang.Object
  extended by AbsoluteLayout
      extended by de.monarchy.guideme.view.RealityView

public class RealityView
extends AbsoluteLayout

This class is a mixed view for camera preview and POIs. It uses an AbsoluteLayout to position its members, which technically makes it deprecated.

Author:
dstuere

Constructor Summary
RealityView(Activity context)
          Creates a new RealityView for the given application context.
 
Method Summary
 void onOrientationChanged(float[] arg)
          Sets a new orientation.
 void onPositionChanged(GeoCoordinate arg, POI[] arg1)
          Sets a new position.
 void onStart()
          Connecting the view at startup.
 void onStop()
          Tidying up after closing the main activity.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealityView

public RealityView(Activity context)
Creates a new RealityView for the given application context.

Parameters:
context - application context
Method Detail

onOrientationChanged

public void onOrientationChanged(float[] arg)
Sets a new orientation. The orientation has to be in degrees, with 0 being north, incrementing clockwise (east 90 degrees, south 180, west 270). The orientation has to be delivered in device coordinates, the rotation of 90 degrees is measured inside the method.

Parameters:
arg - new orientation

onPositionChanged

public void onPositionChanged(GeoCoordinate arg,
                              POI[] arg1)
Sets a new position. Checks for new POIs, deletes those in too great distance and repositions the POIs on screen.

Parameters:
arg - new location
arg1 - list of pois around the location

onStop

public void onStop()
Tidying up after closing the main activity.


onStart

public void onStart()
Connecting the view at startup.