org.placelab.demo.mapview
Class ParticleFilterOverlay

java.lang.Object
  extended byorg.placelab.demo.mapview.MapViewOverlay
      extended byorg.placelab.demo.mapview.ParticleFilterOverlay

public class ParticleFilterOverlay
extends MapViewOverlay


Field Summary
protected  ParticleFilterVisualizer[] pfVisualizers
           
protected  Tracker tracker
           
 
Fields inherited from class org.placelab.demo.mapview.MapViewOverlay
FILTER_TIME, glyphs, holder, isVisible, view
 
Constructor Summary
ParticleFilterOverlay(MapView view, PlacelabWithProxy daemon)
           
ParticleFilterOverlay(MapView view, Tracker _tracker)
           
 
Method Summary
 void addParticleFilterVisualizer(Tracker t)
           
 void createParticleFilterVisualizers()
           
 void estimateUpdated(Tracker t, Estimate e, Measurement m)
           
 java.lang.String getName()
          Returns the name that is displayed in menus and so forth referring to this overlay.
 Glyph getTopGlyph()
          Returns the top glyph in this overlay
 void mapChanged(MapBacking newMap)
          When the mapview has its maps switched, this callback is given to allow the overlay to update its data for the new map.
 void setDaemon(PlacelabWithProxy daemon)
           
 void setTracker(Tracker _tracker)
           
 void setVisible(boolean flag)
          Sets whether or not the overlay ought to be shown on the mapview.
 
Methods inherited from class org.placelab.demo.mapview.MapViewOverlay
dispose, getSuggestedArea, isVisible, mapZoomed, moveAbove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pfVisualizers

protected ParticleFilterVisualizer[] pfVisualizers

tracker

protected Tracker tracker
Constructor Detail

ParticleFilterOverlay

public ParticleFilterOverlay(MapView view,
                             PlacelabWithProxy daemon)

ParticleFilterOverlay

public ParticleFilterOverlay(MapView view,
                             Tracker _tracker)
Method Detail

setDaemon

public void setDaemon(PlacelabWithProxy daemon)

setTracker

public void setTracker(Tracker _tracker)

mapChanged

public void mapChanged(MapBacking newMap)
Description copied from class: MapViewOverlay
When the mapview has its maps switched, this callback is given to allow the overlay to update its data for the new map.

Specified by:
mapChanged in class MapViewOverlay

getTopGlyph

public Glyph getTopGlyph()
Description copied from class: MapViewOverlay
Returns the top glyph in this overlay

Specified by:
getTopGlyph in class MapViewOverlay

getName

public java.lang.String getName()
Description copied from class: MapViewOverlay
Returns the name that is displayed in menus and so forth referring to this overlay. In this way, applications using mapviews can build menus that allow toggling of overlays in a generic fashion.

Specified by:
getName in class MapViewOverlay

setVisible

public void setVisible(boolean flag)
Description copied from class: MapViewOverlay
Sets whether or not the overlay ought to be shown on the mapview.

Overrides:
setVisible in class MapViewOverlay

estimateUpdated

public void estimateUpdated(Tracker t,
                            Estimate e,
                            Measurement m)

addParticleFilterVisualizer

public void addParticleFilterVisualizer(Tracker t)

createParticleFilterVisualizers

public void createParticleFilterVisualizers()