|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.unex.sextante.core.OutputFactory
public abstract class OutputFactory
An OutputFactory defines how new data objects (layers and tables) are created. Method in this class are called from geoalgorithms to create output objects
Constructor Summary | |
---|---|
OutputFactory()
|
Method Summary | |
---|---|
abstract java.lang.Object |
getDefaultCRS()
Returns the default CRS for new layers. |
abstract IRasterLayer |
getNewRasterLayer(java.lang.String sName,
int iDataType,
GridExtent extent,
int iBands,
java.lang.String sFilename,
java.lang.Object crs)
Use this method to create a new raster layer as output from the geo-algorithm. |
IRasterLayer |
getNewRasterLayer(java.lang.String sName,
int iDataType,
IRasterLayer layer,
int iBands,
GridExtent outputGridExtent,
java.lang.String sFilename,
java.lang.Object crs)
Use this method to create a new raster layer as output from the geo-algorithm. |
abstract ITable |
getNewTable(java.lang.String sName,
java.lang.Class[] types,
java.lang.String[] sFields,
java.lang.String sFilename)
Use this method to create a new table. |
abstract IVectorLayer |
getNewVectorLayer(java.lang.String sName,
int iShapeType,
java.lang.Class[] types,
java.lang.String[] sFields,
java.lang.String sFilename,
java.lang.Object crs)
Use this method to create a new VectorMemoryDriver that can be used to generate new vector layers as output from the geo-algorithm |
abstract java.lang.String[] |
getRasterLayerOutputExtensions()
Returns the extensions supported by this factory for creating raster layers. |
abstract java.lang.String[] |
getTableOutputExtensions()
Returns the extensions supported by this factory for creating raster layers. |
abstract ITaskMonitor |
getTaskMonitor(java.lang.String sTitle,
boolean bDeterminate,
javax.swing.JDialog parent)
Returns the task monitor that will be used to monitor algorithm execution |
java.lang.String |
getTempFilename(Output out)
|
java.lang.String |
getTempRasterLayerFilename()
|
java.lang.String |
getTempTableFilename()
|
java.lang.String |
getTempVectorLayerFilename()
|
abstract java.lang.String[] |
getVectorLayerOutputExtensions()
Returns the extensions supported by this factory for creating vector layers. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputFactory()
Method Detail |
---|
public abstract IVectorLayer getNewVectorLayer(java.lang.String sName, int iShapeType, java.lang.Class[] types, java.lang.String[] sFields, java.lang.String sFilename, java.lang.Object crs)
sName
- the name of the layeriShapeType
- the type of shapes in the layertypes
- the data type of the fieldssFields
- the name of the fields in the attributes tablesFilename
- the filename associated to the output layercrs
- An object with information to set the CRS of
this layer (i.e. a string with a EPSG code)
public IRasterLayer getNewRasterLayer(java.lang.String sName, int iDataType, IRasterLayer layer, int iBands, GridExtent outputGridExtent, java.lang.String sFilename, java.lang.Object crs)
iDataType
- the type of data in the layerlayer
- a base layer used to define raster layer characteristics.iBands
- the number of bands of the layeroutputGridExtent
- The grid extent of the output layer. This will be adjusted
to fit into the given layersFilename
- the filename associated to the output layercrs
- An object with information to set the CRS of
this layer (i.e. a string with a EPSG code)
public abstract IRasterLayer getNewRasterLayer(java.lang.String sName, int iDataType, GridExtent extent, int iBands, java.lang.String sFilename, java.lang.Object crs)
sName
- the name of the layeriDataType
- the type of data in the layerextent
- the GridExtent to use for the driveriBands
- the number of bands of the new layersFilename
- the filename associated with this layercrs
- An object with information to set the CRS of
this layer (i.e. a string with a EPSG code)
public abstract ITable getNewTable(java.lang.String sName, java.lang.Class[] types, java.lang.String[] sFields, java.lang.String sFilename)
sName
- the name of the tabletypes
- the data type of the fieldssFields
- The names of the fields in the tablesFilename
- the filename associated to the table
public java.lang.String getTempVectorLayerFilename()
public java.lang.String getTempRasterLayerFilename()
public java.lang.String getTempTableFilename()
public java.lang.String getTempFilename(Output out)
out
- an Output object
public abstract java.lang.String[] getRasterLayerOutputExtensions()
public abstract java.lang.String[] getVectorLayerOutputExtensions()
public abstract java.lang.String[] getTableOutputExtensions()
public abstract ITaskMonitor getTaskMonitor(java.lang.String sTitle, boolean bDeterminate, javax.swing.JDialog parent)
sTitle
- a String used to identify the monitor. This will be used, for instance,
as the title string of a progress dialog.bDeterminate
- true if the task monitor will monitor a determinated process (i.e.
number of steps to complete the process is know)
public abstract java.lang.Object getDefaultCRS()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |