public class VectorialROIImpl extends AbstractROI implements VectorialROI
PERSISTENT_DESCRIPTION, PERSISTENT_NAME, roiExtent, statistic, xOffset, yOffset| Constructor and Description |
|---|
VectorialROIImpl(RasterDataStore store) |
| Modifier and Type | Method and Description |
|---|---|
void |
addGeometry(Geometry geometry)
Añade una geometría a la ROI
|
void |
clear()
Elimina todas las geometrías que definen la ROI.
|
void |
deleteGeometry(int index)
Eliminar la geometría con índice
index de la ROI |
java.util.List<Geometry> |
getGeometries()
Gets the list of geometries of this ROI
|
boolean |
isInside(double x,
double y,
double w,
double h)
Checks if a rectangle in pixel coordinates intersects with some geometry of this ROI
|
boolean |
isInsideOfPolygon(int x,
int y)
Checks if a point in pixel coordinates which is inside the grid, belongs to
a geometry
|
void |
loadFromState(PersistentState state)
Deprecated.
The regions of interest should not be persisted
|
static void |
registerPersistence()
Deprecated.
The regions of interest should not be persisted
|
void |
saveToState(PersistentState state)
Deprecated.
The regions of interest should not be persisted
|
add, clearBandsSubset, exclusiveOr, getBandCount, getBandsSubset, getCellSize, getColor, getID, getLayerHeight, getLayerWidth, getMaxValue, getMeanValue, getMinValue, getName, getNoDataValue, getROIExtent, getROIPxHeight, getROIPxWidth, getROIsMaximunExtent, getStatistic, getStore, getStoreExtent, getValues, getVarCovMatrix, getVariance, intersect, setBandsSubset, setColor, setID, setName, subtract, toStringpublic VectorialROIImpl(RasterDataStore store)
public boolean isInside(double x,
double y,
double w,
double h)
AbstractROIisInside in interface ROIisInside in class AbstractROIx - X upper left coordinatey - Y upper left coordinatew - Width of the area in pixelsh - Height of the area in pixelspublic boolean isInsideOfPolygon(int x,
int y)
AbstractROIisInsideOfPolygon in interface ROIisInsideOfPolygon in class AbstractROIx - X coordinatey - Y coordinatepublic void addGeometry(Geometry geometry)
addGeometry in interface VectorialROIgeometry - public void deleteGeometry(int index)
index de la ROIdeleteGeometry in interface VectorialROIindex - indice de la geometría a eliminarpublic void clear()
public java.util.List<Geometry> getGeometries()
VectorialROIgetGeometries in interface VectorialROIpublic void loadFromState(PersistentState state) throws PersistenceException
loadFromState in class AbstractROIPersistenceExceptionpublic void saveToState(PersistentState state) throws PersistenceException
saveToState in class AbstractROIPersistenceExceptionpublic static void registerPersistence()