ucar.nc2.ft2.simpgeometry.Point Maven / Gradle / Ivy
The newest version!
package ucar.nc2.ft2.simpgeometry;
import ucar.ma2.Array;
import ucar.nc2.Variable;
import ucar.nc2.dataset.NetcdfDataset;
/**
* Generic interface for a Simple Geometry Point.
*
* @author [email protected]
*
*/
public interface Point extends SimpleGeometry {
/**
* Get the data associated with this point
*
* @return data
*/
Array getData();
/**
* Return the x coordinate for the point.
*
* @return x of the point
*/
double getX();
/**
* Return the y coordinate for the point
*
* @return y of the point
*/
double getY();
/**
* Retrieves the next point within a multipoint if any
*
* @return next point if it exists, null if not
*/
Point getNext();
/**
* Retrieves the previous point within a multipoint if any
*
* @return previous point if it exists null if not
*/
Point getPrev();
/**
* Sets the data array of the point.
*
* @param arr the array which will be the points new data array
*/
void setData(Array arr);
/**
* Sets the x coordinate of the point.
*
* @param x coordinate of the point
*/
void setX(double x);
/**
* Set the y coordinate of the point.
*
* @param y coordinate of the point
*/
void setY(double y);
/**
* Sets the next point in a multipoint
*/
void setNext(Point next);
/**
* Set the previous point in a multipoint
*/
void setPrev(Point prev);
/**
* Given a dataset, construct a point from the variable which holds points
* and the index as given.
*
* @param dataset Where the point variable resides
* @param variable Which holds point information
* @param index for Indexing within the polygon variable
*
* @return the constructed Point with associated data
*/
Point setupPoint(NetcdfDataset dataset, Variable variable, int index);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy