|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jwo.vfc.hub.XMLProcessor | +--jwo.landserf.gui3d.Route3D
Class for storing 3d routes over a surface. Uses XML as the file format and a DOM for the route structure.
Field Summary |
Fields inherited from class jwo.vfc.hub.XMLProcessor |
errorMessage, errors |
Constructor Summary | |
Route3D()
Creates an empty route. |
|
Route3D(String fileName)
Creates a route based on the given XML file. |
Method Summary | |
void |
addViewpoint(float x,
float y,
float z,
float heading,
float pitch)
Adds a viewpoint to the route. |
JWRectangle |
getBounds()
Reports the bounding rectangle of the route positions. |
float[][] |
getRoute()
Returns the coordinates and viewing directions of the current route. |
String |
getTitle()
Reports the title of the route. |
Methods inherited from class jwo.vfc.hub.XMLProcessor |
createDefault, error, fatalError, getDOM, getErrorMessage, hasErrors, readXML, validateDOM, warning, writeXML, writeXML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Route3D()
public Route3D(String fileName)
fileName
- Name of XML file storing route information.Method Detail |
public void addViewpoint(float x, float y, float z, float heading, float pitch)
x
- X coordinate of viewpoint.y
- Y coordinate of viewpoint.z
- Elevation of viewpoint.heading
- Viewpoint heading (azimuth).pitch
- Viewpoint pitch.public float[][] getRoute()
public JWRectangle getBounds()
public String getTitle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |