Home | Trees | Indices | Help |
---|
|
object --+ | oxm.geom.Box --+ | Bounds --+ | object --+ | | | oxm.geom.Point --+ | Cluster
Keeps track of a cluster of points and the bounding box surrounding them.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Point |
center Point denoting center of the box |
||
int
|
index index of this Cluster |
||
int
|
point_count how many points this box encompasses |
||
Inherited from Inherited from |
|
|||
Inherited from |
|
The bounding box starts out as just a single point.
|
Expand the bounding box to include the given point, and include the new point in the point count.
|
How far away from the center of this box is the given point? |
Adjust the size of the cluster's bounding box and update it's center point to reflect this. A Cluster's bounding box size is simply half the width and half the height of the overall desired width and height. This is because clustered points are drawn as simple PNGs that should fit four on a page in a grid, and half width and half height yield a quarter of the area of the full page.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sat May 1 23:03:30 2010 | http://epydoc.sourceforge.net |