de.lmu.ifi.dbs.elki.data.spatial
Class PolygonsObject

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.spatial.PolygonsObject
All Implemented Interfaces:
SpatialComparable

public class PolygonsObject
extends Object
implements SpatialComparable

Object representation consisting of (multiple) polygons.


Field Summary
private  Collection<Polygon> polygons
          The polygons
static PolygonsObject PROTOTYPE
          Static (empty) prototype
 
Constructor Summary
PolygonsObject(Collection<Polygon> polygons)
          Constructor.
 
Method Summary
 void appendToBuffer(StringBuffer buf)
          Append polygons to the buffer.
 int getDimensionality()
          Returns the dimensionality of the object.
 double getMax(int dimension)
          Returns the maximum coordinate at the specified dimension.
 double getMin(int dimension)
          Returns the minimum coordinate at the specified dimension.
 Collection<Polygon> getPolygons()
          Access the polygon data.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final PolygonsObject PROTOTYPE
Static (empty) prototype


polygons

private Collection<Polygon> polygons
The polygons

Constructor Detail

PolygonsObject

public PolygonsObject(Collection<Polygon> polygons)
Constructor.

Parameters:
polygons - Polygons
Method Detail

getPolygons

public Collection<Polygon> getPolygons()
Access the polygon data.

Returns:
Polygon collection

toString

public String toString()
Overrides:
toString in class Object

appendToBuffer

public void appendToBuffer(StringBuffer buf)
Append polygons to the buffer.

Parameters:
buf - Buffer to append to

getDimensionality

public int getDimensionality()
Description copied from interface: SpatialComparable
Returns the dimensionality of the object.

Specified by:
getDimensionality in interface SpatialComparable
Returns:
the dimensionality

getMin

public double getMin(int dimension)
Description copied from interface: SpatialComparable
Returns the minimum coordinate at the specified dimension.

Specified by:
getMin in interface SpatialComparable
Parameters:
dimension - the dimension for which the coordinate should be returned, where 1 ≤ dimension ≤ getDimensionality()
Returns:
the minimum coordinate at the specified dimension

getMax

public double getMax(int dimension)
Description copied from interface: SpatialComparable
Returns the maximum coordinate at the specified dimension.

Specified by:
getMax in interface SpatialComparable
Parameters:
dimension - the dimension for which the coordinate should be returned, where 1 ≤ dimension ≤ getDimensionality()
Returns:
the maximum coordinate at the specified dimension

Release 0.4.0 (2011-09-20_1324)