|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object coordinates.area.Area
The abstract class for an area in the three dimensional room. Provides a factory method to create new area objects.
Field Summary | |
protected WGS84 |
origin
|
Constructor Summary | |
Area()
|
Method Summary | |
java.lang.Object |
clone()
The clone function. |
abstract boolean |
contains(Cartesian point)
check if the given vector lies within this area. |
abstract boolean |
contains(WGS84 point)
check if this area contains the given point. |
abstract void |
expand(Area area)
expand the area to additionally cover the given room. |
WGS84 |
getOrigin()
|
abstract long |
getVolume()
get the volume of the area. |
abstract Area |
intersect(Area with)
intersect two areas. |
abstract boolean |
isEmpty()
check if the area does not cover any room. |
abstract boolean |
isSubsetOf(Area area)
check if this area is a subset of the given one. |
abstract boolean |
isSupersetOf(Area area)
check if this area is a superset of the given one. |
abstract java.util.Iterator |
iterator()
return an iterator over the area. |
abstract void |
move(WGS84 newOrigin)
move the origin of the area. |
static Area |
newArea(WGS84 origin,
java.util.Vector params)
factory for new area objects. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected WGS84 origin
Constructor Detail |
public Area()
Method Detail |
public static Area newArea(WGS84 origin, java.util.Vector params)
origin
- the origin of the areaparams
- a Vector of params. They are interpreted by the constructor of the concrete area class.
Usually this are the corners given in Cartesian coordinates.public WGS84 getOrigin()
public java.lang.Object clone()
public abstract java.util.Iterator iterator()
public abstract void move(WGS84 newOrigin)
public abstract void expand(Area area)
public abstract Area intersect(Area with)
public abstract long getVolume()
public abstract boolean isEmpty()
public abstract boolean isSubsetOf(Area area)
public abstract boolean isSupersetOf(Area area)
public abstract boolean contains(WGS84 point)
public abstract boolean contains(Cartesian point)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |