public class DefaultVectorROI extends AbstractROI implements VectorROI
ROI_CHANGED| Constructor and Description |
|---|
DefaultVectorROI()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGeometry(Geometry geometry)
Adds a geometry
|
Envelope |
getEnvelope()
Gets the bounding box of this ROI
|
java.util.List<Geometry> |
getGeometries() |
int |
getGeometryCount() |
boolean |
isInside(Geometry geometry)
Checks if the geometry is inside of this region of interest
|
boolean |
isInside(int cellX,
int cellY)
Checks if a point in pixel coordinates is inside of this region of
interest
|
void |
removeGeometry(int index)
Removes a geometry with the
index selected |
getID, getName, setID, setNameaddObserver, addObserver, addObservers, beginComplexNotification, clearChanged, clone, countObservers, deleteObserver, deleteObserver, deleteObservers, disableNotifications, enableNotifications, endComplexNotification, hasChanged, inComplex, isEnabledNotifications, notify, notifyObservers, notifyObservers, setChangedequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddObserver, deleteObserver, deleteObserverspublic boolean isInside(int cellX,
int cellY)
throws CreateGeometryException,
GeometryOperationNotSupportedException,
GeometryOperationException
ROIisInside in interface ROIcellX - X cell of rastercellY - Y cell of rasterCreateGeometryExceptionGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic boolean isInside(Geometry geometry) throws GeometryOperationNotSupportedException, GeometryOperationException
ROIisInside in interface ROIgeometry - Geometry to check if it is inside roiGeometryOperationNotSupportedExceptionGeometryOperationExceptionpublic Envelope getEnvelope() throws GettingEnvelopeException
ROIgetEnvelope in interface ROIGettingEnvelopeExceptionpublic void addGeometry(Geometry geometry)
VectorROIaddGeometry in interface VectorROIpublic void removeGeometry(int index)
VectorROIindex selectedremoveGeometry in interface VectorROIpublic java.util.List<Geometry> getGeometries()
getGeometries in interface VectorROIpublic int getGeometryCount()
getGeometryCount in interface VectorROI