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, toString
public VectorialROIImpl(RasterDataStore store)
public boolean isInside(double x, double y, double w, double h)
AbstractROI
isInside
in interface ROI
isInside
in class AbstractROI
x
- 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)
AbstractROI
isInsideOfPolygon
in interface ROI
isInsideOfPolygon
in class AbstractROI
x
- X coordinatey
- Y coordinatepublic void addGeometry(Geometry geometry)
addGeometry
in interface VectorialROI
geometry
- public void deleteGeometry(int index)
index
de la ROIdeleteGeometry
in interface VectorialROI
index
- indice de la geometría a eliminarpublic void clear()
public java.util.List<Geometry> getGeometries()
VectorialROI
getGeometries
in interface VectorialROI
public void loadFromState(PersistentState state) throws PersistenceException
loadFromState
in class AbstractROI
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
saveToState
in class AbstractROI
PersistenceException
public static void registerPersistence()