public class SceneGenerator extends Object
Contact: Don Brutzman (web.nps.navy.mil/~brutzman) brutzman@nps.navy.mil
Bathymetry
,
EnvironmentalData
,
MetcastClientMain
,
MetcastTestClient
,
ModelOutputFormatter
,
SeawaterTemp
,
SignificantWaveHeight
,
SonarSource
,
SonarTarget
,
SoundSpeed
,
Windspeed
Modifier and Type | Field and Description |
---|---|
StringBuffer |
xData
data imported from files
|
Constructor and Description |
---|
SceneGenerator()
Creates a new instance of SceneGenerator
|
SceneGenerator(double s,
EnvironmentalData eData,
double lat,
double lon)
Creates a new instance of SceneGenerator
|
Modifier and Type | Method and Description |
---|---|
void |
addExternalX3D(String data)
Add stored external data.
|
String |
addSource()
Adds source directly from xml file - UNDER CONSTRUCTION
|
String |
addSource(double lat,
double depth,
double lon,
double elev,
double azimuth,
int rads,
double beamWidth,
String modelType)
Adds source to scene - NEED TO ADD PROPER LAT/LONG CONVERSION ALGORITHMS
|
String |
addTarget(double lat,
double y,
double lon)
Add target to scene
|
String |
createScene()
Creates contents portion of X3D file.
|
String |
createX3D()
creates X3D version of scene
|
String |
createX3DHeader()
Generates X3D Header
|
String |
generateColorScheme(double[] array)
Generate color scheme for bathymetry.
|
String |
generateWindowDisplay(boolean live)
Temporary method to create Xj3D firendly version
|
double[] |
getBathArray()
Returns bathymetric values array
|
String |
getBathString()
Returns bathymetric values in string
|
EnvironmentalData |
getEnvironmentalData()
Returns environmental data
|
String[] |
getGeneratedOutputFiles()
Returns generated output files
|
double |
getMaxDepth()
Returns deepest points
|
int |
getNumberPoints()
Returns number of points
|
int |
getNumberSources()
Returns number of sources
|
int |
getNumberTargets()
Returns number of targets
|
LinkedList<StringBuffer> |
getSourceRegistry()
Returns source registry
|
double |
getSpacing()
Returns spacing between data points
|
double[][] |
getTargetLocations()
Returns target location - based on index
|
LinkedList<String> |
getTargetRegistry()
Returns target registry.
|
double |
getTranslation()
Returns translation - distance between "0 0 0" and side of area
|
void |
refreshScene()
addExternalX3D
/** Refresh X3D scene
|
void |
registerTarget(double x,
double y,
double z)
Register target
|
void |
reset()
resets parameters to default values
|
void |
setParameters(double s,
EnvironmentalData eData,
double lat,
double lon)
Sets parameters in scene
|
public StringBuffer xData
public SceneGenerator()
public SceneGenerator(double s, EnvironmentalData eData, double lat, double lon)
s
- The size refers to a single side of area in nm.eData
- The container class to hold environmental data.lat
- The latitude of NW corner of area.lon
- The longitude of NW corner of area.public void setParameters(double s, EnvironmentalData eData, double lat, double lon)
s
- The size refers to a single side of area in nm.eData
- The container class to hold environmental data .lat
- The latitude of NW corner of area.lon
- The longitude of NW corner of area.public void reset()
public String createX3D()
public String createX3DHeader()
public String createScene()
public String addSource()
public String addSource(double lat, double depth, double lon, double elev, double azimuth, int rads, double beamWidth, String modelType)
lat
- The latitude of NW corner of area.depth
- The depth in area.lon
- The longitude of NW corner of area.elev
- The vertical angle of "center" beam (in degrees) to creates a new instance of SourceGenerator.azimuth
- The horizontal angle of "center" beam (in degrees from 000) to creates a new instance of SourceGenerator.rads
- The number of radials to creates a new instance of SourceGenerator.beamWidth
- The angle (in degrees) of horizontal sweep area to creates a new instance of SourceGenerator.modelType
- The string describing which model engine to access to creates a new instance of SourceGenerator.public String addTarget(double lat, double y, double lon)
lat
- The latitude of NW corner of area.y
- The y coordinate.lon
- The longitude of NW corner of area.public void registerTarget(double x, double y, double z)
x
- The coordinate point x.y
- The coordinate point y.z
- The coordinate point z.public void addExternalX3D(String data)
data
- The string value of external X3D.public void refreshScene()
public String generateColorScheme(double[] array)
array
- The double array of depth.public String generateWindowDisplay(boolean live)
live
- 'true' do nothing, 'false' set parmeters for Xj3D.public EnvironmentalData getEnvironmentalData()
public int getNumberTargets()
public int getNumberSources()
public int getNumberPoints()
public double getSpacing()
public double getTranslation()
public String getBathString()
public double getMaxDepth()
public double[] getBathArray()
public LinkedList<String> getTargetRegistry()
public LinkedList<StringBuffer> getSourceRegistry()
public double[][] getTargetLocations()
public String[] getGeneratedOutputFiles()