public class FLyrRasterIRasterLayer
extends es.unex.sextante.dataObjects.AbstractRasterLayer
INTERPOLATION_BicubicSpline, INTERPOLATION_Bilinear, INTERPOLATION_BSpline, INTERPOLATION_InverseDistance, INTERPOLATION_NearestNeighbour, RASTER_DATA_TYPE_BYTE, RASTER_DATA_TYPE_DOUBLE, RASTER_DATA_TYPE_FLOAT, RASTER_DATA_TYPE_INT, RASTER_DATA_TYPE_SHORT| Constructor and Description | 
|---|
FLyrRasterIRasterLayer()  | 
FLyrRasterIRasterLayer(java.lang.String fName)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
This method closes the data object, which was opened using the open() method. 
 | 
void | 
create(FLyrRaster lyr)  | 
void | 
free()
This method deallocates memory used by the data object. 
 | 
int | 
getBandsCount()
Returns the number of bands of the layer 
 | 
java.lang.Object | 
getBaseDataObject()
Returns the base data object (i.e. the object that this class wraps, which contains the data itself) 
 | 
double | 
getCellValueInLayerCoords(int x,
                         int y,
                         int iBand)
Returns the value of a cell in the original image coords, that is, not using the query window. 
 | 
java.lang.Object | 
getCRS()
Returns an object with information about the CRS associated to this layer. 
 | 
int | 
getDataType()
Returns the data type of the layer 
 | 
java.awt.geom.Rectangle2D | 
getFullExtent()
Returns the extent covered by the layer 
 | 
double | 
getLayerCellSize()
Return the original cellsize of the layer. 
 | 
es.unex.sextante.core.AnalysisExtent | 
getLayerGridExtent()
Returns the extent of the whole layer 
 | 
java.lang.String | 
getName()
Returns the name of this data object 
 | 
double | 
getNoDataValue()
Gets the no-data value of the layer 
 | 
es.unex.sextante.outputs.IOutputChannel | 
getOutputChannel()
Returns the channel associated to this data object. 
 | 
void | 
open()
This methods initialize the data object, so it is ready to be accessed 
 | 
void | 
postProcess()
This method post-processes the object after it has been created. 
 | 
void | 
setBaseDataObject(FLyrRaster lyr)  | 
void | 
setBaseDataObject(RasterDataStore store)  | 
void | 
setBaseDataObject(java.lang.String fileName)  | 
void | 
setCellValue(int x,
            int y,
            int iBand,
            double dValue)
Sets the value at a cell 
 | 
void | 
setName(java.lang.String name)
Sets a new name for this object 
 | 
void | 
setNoData(int x,
         int y)
Set the value of a cell in the first band of a layer to the no-data value 
 | 
void | 
setNoDataValue(double dNoDataValue)
Sets the no-data value of the layer 
 | 
void | 
setWindowExtent(es.unex.sextante.core.AnalysisExtent extent)
Sets a new query window extent 
 | 
add, addToCellValue, addToCellValue, assign, assign, assignNoData, calculateHistogram, calculateStatistics, getAccumulatedHistogram, getAccumulatedHistogram, getAspect, getCellValueAsByte, getCellValueAsByte, getCellValueAsDouble, getCellValueAsDouble, getCellValueAsFloat, getCellValueAsFloat, getCellValueAsInt, getCellValueAsInt, getCellValueAsShort, getCellValueAsShort, getContextName, getDirToNextDownslopeCell, getDirToNextDownslopeCell, getDistToNeighborInDir, getHistogram, getHistogram, getMaxValue, getMaxValue, getMeanValue, getMeanValue, getMinValue, getMinValue, getNX, getNY, getSlope, getSubMatrix3x3, getUnitDistToNeighborInDir, getValueAt, getValueAt, getVariance, getVariance, getWindowCellSize, getWindowGridExtent, isInWindow, isNoDataValue, multiply, setCellValue, setConstants, setFullExtent, setInterpolationMethod, setNoData, setStatisticsHaveToBeCalculated, setViewName, setWindowExtent, toStringpublic FLyrRasterIRasterLayer()
public FLyrRasterIRasterLayer(java.lang.String fName)
public void create(FLyrRaster lyr)
public int getDataType()
es.unex.sextante.dataObjects.IRasterLayerpublic void setCellValue(int x,
                         int y,
                         int iBand,
                         double dValue)
es.unex.sextante.dataObjects.IRasterLayerx - the x coordinate (cols)y - the y coordinate (rows)iBand - the band (zero-based)dValue - the new valuepublic void setNoDataValue(double dNoDataValue)
es.unex.sextante.dataObjects.IRasterLayerdNoDataValue - the new no-data valuepublic void setNoData(int x,
                      int y)
es.unex.sextante.dataObjects.IRasterLayersetNoData in interface es.unex.sextante.dataObjects.IRasterLayersetNoData in class es.unex.sextante.dataObjects.AbstractRasterLayerx - the x coordinate(col) of the cell to set to no-datay - the y coordinate(row) of the cell to set to no-datapublic double getNoDataValue()
es.unex.sextante.dataObjects.IRasterLayerpublic double getCellValueInLayerCoords(int x,
                                        int y,
                                        int iBand)
es.unex.sextante.dataObjects.IRasterLayerx - the x coordinate(col) of the celly - the y coordinate(row) of the celliBand - the band to be queriedpublic int getBandsCount()
es.unex.sextante.dataObjects.IRasterLayerpublic java.lang.String getName()
es.unex.sextante.dataObjects.IDataObjectpublic void postProcess()
es.unex.sextante.dataObjects.IDataObjectpublic void open()
es.unex.sextante.dataObjects.IDataObjectpublic void close()
es.unex.sextante.dataObjects.IDataObjectpublic java.awt.geom.Rectangle2D getFullExtent()
es.unex.sextante.dataObjects.ILayerpublic es.unex.sextante.core.AnalysisExtent getLayerGridExtent()
es.unex.sextante.dataObjects.IRasterLayerpublic void setWindowExtent(es.unex.sextante.core.AnalysisExtent extent)
es.unex.sextante.dataObjects.IRasterLayersetWindowExtent in interface es.unex.sextante.dataObjects.IRasterLayersetWindowExtent in class es.unex.sextante.dataObjects.AbstractRasterLayerextent - the new grid extent to set fro this layerpublic double getLayerCellSize()
es.unex.sextante.dataObjects.IRasterLayerpublic java.lang.Object getCRS()
es.unex.sextante.dataObjects.ILayerpublic void setName(java.lang.String name)
es.unex.sextante.dataObjects.IDataObjectname - the new namepublic void free()
es.unex.sextante.dataObjects.IDataObjectpublic java.lang.Object getBaseDataObject()
es.unex.sextante.dataObjects.IDataObjectpublic void setBaseDataObject(FLyrRaster lyr)
public void setBaseDataObject(RasterDataStore store)
public void setBaseDataObject(java.lang.String fileName)
public es.unex.sextante.outputs.IOutputChannel getOutputChannel()
es.unex.sextante.dataObjects.IDataObject