edu.berkeley.guir.papier_mache.vision
Class VisionPhobCollection

java.lang.Object
  extended by edu.berkeley.guir.papier_mache.Phob
      extended by edu.berkeley.guir.papier_mache.vision.VisionPhob
          extended by edu.berkeley.guir.papier_mache.vision.VisionPhobCollection
All Implemented Interfaces:
edu.berkeley.guir.lib.util.ToShortStringable

public class VisionPhobCollection
extends VisionPhob

Contains a collection of VisionPhobs and provides aggregate information about the entire collection.

Author:
Ray Su ( raysu(AT)cal.berkeley.edu ), Scott Klemmer ( srk(AT)cs.berkeley.edu )

Constructor Summary
VisionPhobCollection(PhobProducer source)
           
 
Method Summary
 boolean addIfClose(VisionPhob phob, int maxDist)
           
 void addPhob(VisionPhob phob)
           
 boolean contains(VisionPhob phob)
           
 boolean equals(java.lang.Object object)
          This method is still buggy.
 int getCollectionSize()
           
 double getTheta()
          Returns the theta (angle of major axis) for phob represented by the VisionPhobCollection
 boolean isPhobInside(VisionPhob phob)
           
 java.util.Iterator iterator()
           
 
Methods inherited from class edu.berkeley.guir.papier_mache.vision.VisionPhob
getAlignedBoundingBox, getBounds, getCenter, getIcon, getImageSize, getLastUpdateTime, getMajorAxisLength, getMeanColorRGB, getMeanIntensity, getMinorAxisLength, getRawImage, getSize, isNew, rotatePointAroundCenter, toShortString, toString
 
Methods inherited from class edu.berkeley.guir.papier_mache.Phob
getCreationTime, getSource
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VisionPhobCollection

public VisionPhobCollection(PhobProducer source)
Method Detail

getTheta

public double getTheta()
Returns the theta (angle of major axis) for phob represented by the VisionPhobCollection

Overrides:
getTheta in class VisionPhob

iterator

public java.util.Iterator iterator()
Returns:
the iterator associated with the Collection

getCollectionSize

public int getCollectionSize()
Returns:
the size of the collection

addPhob

public void addPhob(VisionPhob phob)

contains

public boolean contains(VisionPhob phob)
Returns:
true if this collection contains the specified phob

isPhobInside

public boolean isPhobInside(VisionPhob phob)
Returns:
true if and only if phob is completely contained by this Collection

addIfClose

public boolean addIfClose(VisionPhob phob,
                          int maxDist)

equals

public boolean equals(java.lang.Object object)
This method is still buggy.

Overrides:
equals in class VisionPhob