|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.BasicFactory
gov.nasa.worldwind.terrain.BasicElevationModelFactory
public class BasicElevationModelFactory
A factory to create ElevationModels.
| Constructor Summary | |
|---|---|
BasicElevationModelFactory()
|
|
| Method Summary | |
|---|---|
protected CompoundElevationModel |
createCompoundModel(org.w3c.dom.Element[] elements,
AVList params)
Creates a compound elevation model and populates it with a specified list of elevation models. |
java.lang.Object |
createFromConfigSource(java.lang.Object configSource,
AVList params)
Creates an elevation model from a general configuration source. |
java.lang.Object |
createFromDataConfig(DataConfiguration dataConfig,
AVList params)
Creates an elevation model from a data configuration. |
protected ElevationModel |
createNonCompoundModel(org.w3c.dom.Element domElement,
AVList params)
Create a simple elevation model. |
protected ElevationModel |
doCreateFromCapabilities(Capabilities caps,
AVList params)
Implemented by subclasses to perform the actual object creation. |
protected ElevationModel |
doCreateFromDataConfig(DataConfiguration dataConfig,
AVList params)
|
protected ElevationModel |
doCreateFromElement(org.w3c.dom.Element domElement,
AVList params)
Creates an elevation model from an XML description. |
| Methods inherited from class gov.nasa.worldwind.BasicFactory |
|---|
create, createFromCapabilities |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicElevationModelFactory()
| Method Detail |
|---|
protected CompoundElevationModel createCompoundModel(org.w3c.dom.Element[] elements,
AVList params)
elements - the XML elements describing the models in the new elevation model.params - any parameters to apply when creating the elevation models.
createNonCompoundModel(org.w3c.dom.Element, gov.nasa.worldwind.avlist.AVList).
public java.lang.Object createFromConfigSource(java.lang.Object configSource,
AVList params)
URLFileInputStreamElementString holding a file name, a name of a resource on the classpath,
or a string represenation of a URLserviceName attribute of the
ElevationModel/Service element of the XML configuration document to the appropriate elevation-model
type. Service types recognized are:"
createFromConfigSource in interface FactorycreateFromConfigSource in class BasicFactoryconfigSource - the configuration source. See above for supported types.params - properties to associate with the elevation model during creation.
java.lang.IllegalArgumentException - if the configuration file name is null or an empty string.
WWUnrecognizedException - if the source type is unrecognized or the requested elevation-model type is
unrecognized.
WWRuntimeException - if object creation fails for other reasons. The exception identifying the source
of the failure is included as the Throwable.initCause(Throwable).
public java.lang.Object createFromDataConfig(DataConfiguration dataConfig,
AVList params)
ElevationModel/modelType configuration parameter to the appropriate model type. Elevation
model types recognized are: ElevationModel/Service/serviceName configuration property to
the appropriate base elevation model type. Service types recognized are:
createFromDataConfig in interface FactorycreateFromDataConfig in class BasicFactorydataConfig - the configuration information describing the component.params - key-value parameters which override or supplement the information provided in the specified
configuration. A null reference is permitted.
java.lang.IllegalArgumentException - if the data configuration is null.
WWUnrecognizedException - if the service type is unrecognized.
WWRuntimeException - if object creation fails for other reasons. The exception indicating the source
of the failure is included as the Throwable.initCause(Throwable).
protected ElevationModel createNonCompoundModel(org.w3c.dom.Element domElement,
AVList params)
domElement - the XML element describing the elevation model to create. The element must inculde a service
name identifying the type of service to use to retrieve elevation data. Recognized service
types are "Offline", "WWTileService" and "OGC:WMS".params - any parameters to apply when creating the elevation model.
WWUnrecognizedException - if the service type given in the describing element is unrecognized.
protected ElevationModel doCreateFromCapabilities(Capabilities caps,
AVList params)
BasicFactory
doCreateFromCapabilities in class BasicFactorycaps - the capabilities document.params - a list of configuration properties. These properties override any specified in the capabilities
document. The list should contain the AVKey.LAYER_NAMES property for services that define
layers, indicating which named layers described in the capabilities document to create. If this
argumet is null or contains no layers, the first named layer is used.
protected ElevationModel doCreateFromDataConfig(DataConfiguration dataConfig,
AVList params)
throws java.lang.Exception
java.lang.Exception
protected ElevationModel doCreateFromElement(org.w3c.dom.Element domElement,
AVList params)
throws java.lang.Exception
doCreateFromElement in class BasicFactorydomElement - an XML element containing the elevation model description.params - any parameters to apply when creating the elevation models.
java.lang.Exception - if a problem occurs during creation.createNonCompoundModel(org.w3c.dom.Element, gov.nasa.worldwind.avlist.AVList).
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||