Package org.gvsig.raster.lib.buffer.api
Interface ROI
- All Superinterfaces:
org.gvsig.tools.observer.Observable
- All Known Subinterfaces:
VectorROI
public interface ROI
extends org.gvsig.tools.observer.Observable
- Author:
- fdiaz
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.geom.primitive.EnvelopeGets the bounding box of this ROIlonggetID()getName()booleanisInside(int cellX, int cellY) Checks if a point in pixel coordinates is inside of this region of interestbooleanisInside(org.gvsig.fmap.geom.Geometry geometry) Checks if the geometry is inside of this region of interestvoidsetID(long id) voidMethods inherited from interface org.gvsig.tools.observer.Observable
addObserver, deleteObserver, deleteObservers
-
Field Details
-
ROI_CHANGED
- See Also:
-
-
Method Details
-
isInside
boolean isInside(int cellX, int cellY) throws org.gvsig.fmap.geom.exception.CreateGeometryException, org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException Checks if a point in pixel coordinates is inside of this region of interest- Parameters:
cellX- X cell of rastercellY- Y cell of raster- Returns:
- true whether the point is inside
- Throws:
org.gvsig.fmap.geom.exception.CreateGeometryExceptionorg.gvsig.fmap.geom.operation.GeometryOperationExceptionorg.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
-
isInside
boolean isInside(org.gvsig.fmap.geom.Geometry geometry) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException Checks if the geometry is inside of this region of interest- Parameters:
geometry- Geometry to check if it is inside roi- Returns:
- true whether the point is inside
- Throws:
org.gvsig.fmap.geom.operation.GeometryOperationExceptionorg.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
-
getEnvelope
Gets the bounding box of this ROI- Returns:
- the envelope
- Throws:
GettingEnvelopeExceptionCloneNotSupportedException
-
getName
String getName()- Returns:
- the name
-
setName
- Parameters:
name-
-
getID
long getID()- Returns:
- the identifier
-
setID
void setID(long id) - Parameters:
id-
-