|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.io.bnaapi.BNAGeometry
A BNA geometry is a point or an ordered sequence of points. Points are stored as GM_Positions. Ordered sequence can be a ring if the last point has the same coords of the first one. If a ring has _bLine = false, then it's a surface, else it's a polygon.
Field Summary | |
private boolean |
_bLine
Tells if it's a polygon or a surface |
private double |
_maxX
|
private double |
_maxY
|
private double |
_minX
|
private double |
_minY
|
private java.util.Vector |
_points
The sequence of points |
Constructor Summary | |
protected |
BNAGeometry()
Construct a surface or a point |
protected |
BNAGeometry(boolean isLine)
Constructor |
Method Summary | |
void |
addPoint(GM_Position point)
Adds a new point and recompute the envelope |
GM_Envelope |
getEnvelope()
|
GM_Position |
getPoint(int index)
|
GM_Position[] |
getPoints()
|
boolean |
isLine()
|
boolean |
isPoint()
|
boolean |
isPoly()
|
boolean |
isSurface()
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Vector _points
private boolean _bLine
private double _maxX
private double _maxY
private double _minX
private double _minY
Constructor Detail |
protected BNAGeometry(boolean isLine)
isLine
- a boolean telling if this is a line or a surface.protected BNAGeometry()
Method Detail |
public int size()
public GM_Position getPoint(int index)
public GM_Position[] getPoints()
public void addPoint(GM_Position point)
public GM_Envelope getEnvelope()
public boolean isSurface()
public boolean isPoint()
public boolean isPoly()
public boolean isLine()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |