|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjwo.landserf.gui3d.View3d
Class for storing 3d views and routes over a surface. Can store, load, and save the state of the 3d view as well as flythrough routes.
Constructor Summary | |
View3d()
Creates an empty route. |
Method Summary | |
void |
addWaypoint(float x,
float y,
float z,
float heading,
float pitch,
float fov)
Adds a waypoint to the route. |
Color |
getFogColour()
Reports the colour of fog to be displayed. |
float |
getFogDensity()
Reports the fog density used in the 3d view. |
int |
getResolution()
Reports the currently stored DEM display resolution. |
Vector |
getRoute()
Reports the currently stored route as a series of waypoints. |
Color |
getSeaColour()
Reports the colour of sea to be displayed. |
Color |
getSkyColour()
Reports the colour of sky to be displayed. |
float |
getVScale()
Reports the vertical scaling of the DEM display in the view. |
Color |
getWallColour()
Reports the colour of walls to be displayed. |
boolean |
isSky()
Reports whether the sea and sky are displayed behind the surface. |
boolean |
isSmooth()
Reports whether the DEM view smooths the drape or not. |
void |
openRoute(String fileName)
Loads a route with the given file name. |
void |
resetRoute()
Resets the currently stored route. |
void |
saveRoute(String fileName)
Saves a route with the given file name. |
void |
setFogColour(Color fogColour)
Stores the colour of fog to be displayed. |
void |
setFogDensity(float fogDensity)
Stores the fog density used in the 3d view. |
void |
setGrid(boolean useGrid)
Stores whether the DEM view displays as a grid or not. |
void |
setResolution(int resolution)
Stores the resolution of the DEM display in the view. |
void |
setSeaColour(Color seaColour)
Stores the colour of sea to be displayed. |
void |
setSkyColour(Color skyColour)
Stores the colour of sky to be displayed. |
void |
setSmooth(boolean isSmooth)
Stores whether the DEM view smooths the drape or not. |
void |
setVScale(float vScale)
Stores the vertical scaling of the DEM display in the view. |
void |
setWallColour(Color wallColour)
Stores the colour of walls to be displayed. |
void |
showSky(boolean showSky)
Stores whether the sea and sky are displayed behind the surface. |
VectorMap |
toVectorMap()
Creates a VectorMap version of this route. |
boolean |
useGrid()
Reports whether the DEM view displays as a grid or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public View3d()
Method Detail |
public void resetRoute()
public void setResolution(int resolution)
resolution
- Resolution of DEM display expressed as sample interval of
highest DEM resolution.public int getResolution()
public void setVScale(float vScale)
vScale
- Vertical scaling of DEM display.public float getVScale()
public void setFogDensity(float fogDensity)
fogDensity
- Fog density (between 0 and 1).public float getFogDensity()
public void setSmooth(boolean isSmooth)
isSmooth
- True if drape is to be smoothed.public void showSky(boolean showSky)
showSky
- True if sea and sky are displayed.public boolean isSky()
public boolean isSmooth()
public void setGrid(boolean useGrid)
useGrid
- True if drape is displayed as a grid.public boolean useGrid()
public void setSkyColour(Color skyColour)
skyColour
- Colour of sky.public Color getSkyColour()
public void setSeaColour(Color seaColour)
seaColour
- Colour of sea.public Color getSeaColour()
public void setFogColour(Color fogColour)
fogColour
- Colour of fog.public Color getFogColour()
public void setWallColour(Color wallColour)
wallColour
- Colour of walls.public Color getWallColour()
public Vector getRoute()
public void openRoute(String fileName)
fileName
- Name of file containing route information.public void saveRoute(String fileName)
fileName
- Name of file to contain route information.public void addWaypoint(float x, float y, float z, float heading, float pitch, float fov)
x
- Easting of waypoint.y
- Northing of waypoint.z
- Elevation of waypoint.heading
- Azimuthal heading (in degrees clockwise from North).pitch
- Pitch of viewing direction (in degrees, -ve points down).fov
- Field of view.public VectorMap toVectorMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |