Package ucar.nc2.ft2.simpgeometry
Interface Point
-
- All Superinterfaces:
SimpleGeometry
- All Known Implementing Classes:
CFPoint
public interface Point extends SimpleGeometry
Generic interface for a Simple Geometry Point.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArraygetData()Get the data associated with this pointPointgetNext()Retrieves the next point within a multipoint if anyPointgetPrev()Retrieves the previous point within a multipoint if anydoublegetX()Return the x coordinate for the point.doublegetY()Return the y coordinate for the pointvoidsetData(Array arr)Sets the data array of the point.voidsetNext(Point next)Sets the next point in a multipointvoidsetPrev(Point prev)Set the previous point in a multipointPointsetupPoint(NetcdfDataset dataset, Variable variable, int index)Given a dataset, construct a point from the variable which holds points and the index as given.voidsetX(double x)Sets the x coordinate of the point.voidsetY(double y)Set the y coordinate of the point.-
Methods inherited from interface ucar.nc2.ft2.simpgeometry.SimpleGeometry
getBBLower, getBBUpper
-
-
-
-
Method Detail
-
getData
Array getData()
Get the data associated with this point- Specified by:
getDatain interfaceSimpleGeometry- Returns:
- data
-
getX
double getX()
Return the x coordinate for the point.- Returns:
- x of the point
-
getY
double getY()
Return the y coordinate for the point- Returns:
- y of the point
-
getNext
Point getNext()
Retrieves the next point within a multipoint if any- Returns:
- next point if it exists, null if not
-
getPrev
Point getPrev()
Retrieves the previous point within a multipoint if any- Returns:
- previous point if it exists null if not
-
setData
void setData(Array arr)
Sets the data array of the point.- Specified by:
setDatain interfaceSimpleGeometry- Parameters:
arr- the array which will be the points new data array
-
setX
void setX(double x)
Sets the x coordinate of the point.- Parameters:
x- coordinate of the point
-
setY
void setY(double y)
Set the y coordinate of the point.- Parameters:
y- coordinate of the point
-
setNext
void setNext(Point next)
Sets the next point in a multipoint
-
setPrev
void setPrev(Point prev)
Set the previous point in a multipoint
-
setupPoint
Point setupPoint(NetcdfDataset dataset, Variable variable, int index)
Given a dataset, construct a point from the variable which holds points and the index as given.- Parameters:
dataset- Where the point variable residesvariable- Which holds point informationindex- for Indexing within the polygon variable- Returns:
- the constructed Point with associated data
-
-