public interface FLyrRaster extends FLayer
METADATA_CRS, METADATA_DEFINITION_DESCRIPTION, METADATA_DEFINITION_NAME, METADATA_NAME
Modifier and Type | Method and Description |
---|---|
void |
addFile(File file)
Adds a new file.
|
Point2D |
adjustWorldRequest(Point2D req)
Ajusta las coordenadas especificadas en el parámetro al área máxima
del raster en píxeles.
|
FLayer |
cloneLayer()
Clones this layer
|
void |
draw(BufferedImage image,
Graphics2D g,
ViewPort vp,
Cancellable cancel,
double scale)
Draws the layer using a buffer.
|
boolean |
existColorTable()
Returns true if a color table exists
|
AffineTransform |
getAffineTransform()
Recupera del raster la matriz de transformación que lo situa en cualquier parte de la vista
|
Historical |
getAffineTransformHistorical()
Obtiene la lista de transformaciones que se han ido aplicando al raster.
|
int |
getAlphaBandNumber()
Gets the position of the alpha band
|
ArrayList<Object> |
getAttributes()
Gets the attribute list
Filename
Filesize
Width
Height
Bands
|
int[] |
getBandCountFromDataset()
Returns the number of bands of each dataset
|
String |
getColorInterpretation(int band,
int dataset)
Gets the color interpretation
|
RasterDataStore |
getDataStore()
Gets the DataStore
|
String |
getFileFormat()
Returs a string with the extension of the first file
|
FLayer |
getFileLayer()
Gets a layer which the source is a file
|
Envelope |
getFullEnvelope()
Returns the full bounding box of this layer
|
Extent |
getFullRasterExtent()
Gets the full extent
|
MapContext |
getMapContext()
Gets the MapContext object
|
double |
getMaxScale()
Returns the maximum scale visible.
|
double |
getMinScale()
Returns the minimum scale visible.
|
String |
getName()
Returns the name of this layer.
|
NoData |
getNoDataValue()
Obtiene el valor NoData asociado al raster.
|
IProjection |
getProjection()
Gets the projection
|
Render |
getRender()
Crea el objeto renderizador de raster
|
List<ROI> |
getRois()
Gets the regions of interest
|
List<File> |
getROIsFiles()
Gets the files which contain the regions of interest.
|
int[] |
getTileSize()
Gets the tile size
|
URI |
getURI()
Gets the uniform resource identifier
|
String |
getWktProjection()
Gets the projection in well known text format
|
boolean |
isGeoreferenced()
Obtiene el flag que dice si la imagen está o no georreferenciada
|
boolean |
isInside(Point2D p)
Metodo que obtiene si un punto cae dentro de los límites de la capa
o fuera de ellos.
|
boolean |
isRemote()
Returns true if this layer is remote
|
boolean |
isRemoveRasterFlag() |
boolean |
isReproyectable()
Devuelve si es reproyectable o no la capa
|
boolean |
isRGB()
Metodo para consultar si una capa puede ser un RGB.
|
boolean |
isTiled()
Returns true if the drawn is going to be tiled
|
IProjection |
readProjection()
Obtiene la proyección del fichero.
|
void |
removeFile(File file)
Removes a file.
|
boolean |
removeLayerListener(LayerListener o)
Borra de la lista de listeners el que se pasa como parámetro.
|
void |
saveGeoToRmf()
Salva la georreferenciación a fichero rmf.
|
void |
setAffineTransform(AffineTransform transf)
Asigna al raster la matriz de transformación para situarlo en cualquier parte de la vista
|
void |
setAffineTransformWithoutHistorical(AffineTransform transf)
Asigna al raster la matriz de transformación para situarlo en cualquier parte de la vista.
|
void |
setLastLegend(ColorTable ct)
Define la ultima leyenda valida de la capa o se pone a null para que la
capa busque una leyenda valida.
|
void |
setLayerInitialized(boolean initialized)
Sets the layer as initialized.
|
void |
setMaxScale(double maxScale)
Sets the maximum scale visible.
|
void |
setMinScale(double minScale)
Sets the minimum scale visible.
|
void |
setNoDataTransparent(boolean t)
When this flag is true then renderice nodata value as transparent
|
void |
setNoDataValue(NoData noDataValue)
Sets the nodata value for this layer
|
void |
setProjection(IProjection proj,
boolean persist)
Sets the layer projection
|
void |
setReadingData(String readingData)
When a process is using information of this layer this variable will contain
the thread ID.
|
void |
setRemoveRasterFlag(boolean removeRasterFlag)
Asigna el valor del flag que dice si destruimos la memoria del raster
al eliminarlo del TOC o no.
|
void |
setRois(List<ROI> rois)
Sets the regions of interest
|
void |
setROIsFiles(List<File> file)
Sets the files which contain the regions of interest.
|
addError, addLayerListener, allowLinks, getCoordTrans, getDrawVersion, getError, getErrors, getFLayerStatus, getInfoString, getLayerListeners, getLink, getLinkProperties, getNumErrors, getParentLayer, getTocImageIcon, getTocStatusImage, isActive, isAvailable, isEditing, isInTOC, isOk, isTemporary, isVisible, isWithinScale, isWritable, load, newComposedLayer, print, reload, setActive, setAvailable, setCoordTrans, setEditing, setError, setFLayerStatus, setInTOC, setName, setParentLayer, setProjection, setTemporary, setVisible, visibleRequired
loadFromState, saveToState
getMetadataChildren, getMetadataID, getMetadataName
clear, delegate, getDynClass, getDynValue, hasDynValue, implement, invokeDynMethod, invokeDynMethod, setDynValue
dispose
getExtendedProperties, getProperty, setProperty
void setLayerInitialized(boolean initialized)
initialized
- URI getURI()
boolean existColorTable()
void setLastLegend(ColorTable ct)
ct
- Render getRender()
MapContext getMapContext()
getMapContext
in interface FLayer
Extent getFullRasterExtent()
RasterDataStore getDataStore()
boolean isRGB()
boolean isTiled()
List<ROI> getRois() throws ROIException
ROIException
void setROIsFiles(List<File> file) throws RmfSerializerException
file
- RmfSerializerException
List<File> getROIsFiles() throws RmfSerializerException
RmfSerializerException
IProjection readProjection() throws RasterDriverException
RasterDriverException
int[] getTileSize()
NoData getNoDataValue()
String getFileFormat()
boolean isGeoreferenced()
int[] getBandCountFromDataset()
String getWktProjection() throws RasterDriverException
RasterDriverException
String getColorInterpretation(int band, int dataset)
band
- dataset
- void setReadingData(String readingData)
readingData
- void setNoDataValue(NoData noDataValue)
noDataValue
- the noDataValue to setvoid setMinScale(double minScale)
setMinScale
in interface FLayer
minScale
- the scale > 0, -1 if not definedgetMinScale()
void setMaxScale(double maxScale)
setMaxScale
in interface FLayer
maxScale
- the scale > 0, -1 if not definedgetMaxScale()
double getMaxScale()
getMaxScale
in interface FLayer
setMaxScale(double)
double getMinScale()
getMinScale
in interface FLayer
setMinScale(double)
boolean isRemoveRasterFlag()
void setRemoveRasterFlag(boolean removeRasterFlag)
removeRasterFlag
- The removeRasterFlag to set.boolean removeLayerListener(LayerListener o)
removeLayerListener
in interface FLayer
o
- LayerListener a borrar.FLayer.addLayerListener(LayerListener)
,
FLayer.getLayerListeners()
void draw(BufferedImage image, Graphics2D g, ViewPort vp, Cancellable cancel, double scale) throws ReadException
FLayer
draw
in interface FLayer
image
- an image used to accelerate the screen drawg
- for rendering 2-dimensional shapes, text and images on the Java(tm) platformvp
- information for drawing this layercancel
- an object thread that implements the Cancellable
interface, and will allow to cancel the drawscale
- value that represents the scaleReadException
ReadDriverException
com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage,
java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort,
com.iver.utiles.swing.threads.Cancellable)
FLayer cloneLayer() throws Exception
cloneLayer
in interface FLayer
Exception
FLayer getFileLayer() throws RasterDriverException
RasterDriverException
int getAlphaBandNumber()
String getName()
FLayer
getName
in interface FLayer
FLayer.setName(String)
IProjection getProjection()
getProjection
in interface Projected
Projected.reProject(ICoordTrans)
boolean isReproyectable()
AffineTransform getAffineTransform()
Historical getAffineTransformHistorical()
void setAffineTransform(AffineTransform transf)
transf
- void setAffineTransformWithoutHistorical(AffineTransform transf)
transf
- void saveGeoToRmf() throws RmfSerializerException
fName
- RmfSerializerException
boolean isInside(Point2D p)
p
- Punto a calcularboolean isRemote()
ArrayList<Object> getAttributes()
Envelope getFullEnvelope()
getFullEnvelope
in interface FLayer
Point2D adjustWorldRequest(Point2D req)
req
- Punto a ajustar dentro del extener del rastervoid addFile(File file) throws InvalidSourceException
file
- InvalidSourceException
void removeFile(File file)
file
- void setNoDataTransparent(boolean t)
t
- void setProjection(IProjection proj, boolean persist) throws RmfSerializerException
proj
- RmfSerializerException