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, setName
addObserver, addObserver, addObservers, beginComplexNotification, clearChanged, clone, countObservers, deleteObserver, deleteObserver, deleteObservers, disableNotifications, enableNotifications, endComplexNotification, hasChanged, inComplex, isEnabledNotifications, notify, notifyObservers, notifyObservers, setChanged
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObserver, deleteObserver, deleteObservers
public boolean isInside(int cellX, int cellY) throws CreateGeometryException, GeometryOperationNotSupportedException, GeometryOperationException
ROI
isInside
in interface ROI
cellX
- X cell of rastercellY
- Y cell of rasterCreateGeometryException
GeometryOperationNotSupportedException
GeometryOperationException
public boolean isInside(Geometry geometry) throws GeometryOperationNotSupportedException, GeometryOperationException
ROI
isInside
in interface ROI
geometry
- Geometry to check if it is inside roiGeometryOperationNotSupportedException
GeometryOperationException
public Envelope getEnvelope() throws GettingEnvelopeException
ROI
getEnvelope
in interface ROI
GettingEnvelopeException
public void addGeometry(Geometry geometry)
VectorROI
addGeometry
in interface VectorROI
public void removeGeometry(int index)
VectorROI
index
selectedremoveGeometry
in interface VectorROI
public java.util.List<Geometry> getGeometries()
getGeometries
in interface VectorROI
public int getGeometryCount()
getGeometryCount
in interface VectorROI