|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcwebservices.wpvs.j3d.WPVSScene
public class WPVSScene
This class represents the basic class for creation of a 3D perspective views as specified in the OGC Web Perpective View Service specification. A WPVS scene is defined by a scene model and a date determining the light conditions. Additional elements are 3D or 2.5D-features that are placed into the scene, atmospheric conditions influencing the light and visibility (e.g. fog, rain etc., but currently not implemented) and additional light placed into the scene (e.g. street lights, spots, lighted windows etc.).
-----------------------------------------------------------------------
Constructor Summary | |
---|---|
WPVSScene(javax.media.j3d.OrderedGroup scene,
ViewPoint viewPoint,
java.util.Calendar calendar,
java.util.List<javax.media.j3d.Light> lights,
javax.media.j3d.Node background)
Creates a new instance of WPVScene |
Method Summary | |
---|---|
void |
addLight(javax.media.j3d.Light light)
adds a light to the scene. this can be ambient, directional and point light. |
javax.media.j3d.Node |
getBackground()
|
java.util.Calendar |
getDate()
get the date and the time for determining time depending the light conditions of the scene |
javax.media.j3d.Light[] |
getLights()
returns the lights of the scene |
javax.media.j3d.OrderedGroup |
getScene()
|
ViewPoint |
getViewPoint()
gets the position of the viewer, the directions he looks and his field of view in radians |
void |
setBackground(javax.media.j3d.Node background)
|
void |
setDate(java.util.Calendar calendar)
set the date and the time for determining time depending the light conditions of the scene |
void |
setLights(javax.media.j3d.Light[] lights)
sets the lights of the scene. this can be ambient, directional and point light. |
void |
setViewPoint(ViewPoint viewPoint)
defines the position of the viewer and the point he looks at. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WPVSScene(javax.media.j3d.OrderedGroup scene, ViewPoint viewPoint, java.util.Calendar calendar, java.util.List<javax.media.j3d.Light> lights, javax.media.j3d.Node background)
scene
- java3D representation of the scene.viewPoint
- object that describes the viewers position and the looking directioncalendar
- describtion of the date and time for which the scene shall be rendered --> light
conditionslights
- lights in addition to sun and ambient light (e.g. street lights, spots etc.)background
- scene background; have to be a Shape3D
or a Background
Method Detail |
---|
public javax.media.j3d.Node getBackground()
public void setBackground(javax.media.j3d.Node background)
background
- sets the Background
object of the scenepublic java.util.Calendar getDate()
public void setDate(java.util.Calendar calendar)
calendar
- describtion of the date and time for which the scene shall be rendered --> light
conditionspublic javax.media.j3d.OrderedGroup getScene()
public ViewPoint getViewPoint()
public void setViewPoint(ViewPoint viewPoint)
viewPoint
- object that describes the viewers position and the point he looks atpublic void addLight(javax.media.j3d.Light light)
light
- a light in addition to sun and basic ambient light (e.g. street lights, spots
etc.)public javax.media.j3d.Light[] getLights()
public void setLights(javax.media.j3d.Light[] lights)
lights
- lights in addition to sun and basic ambient light (e.g. street lights, spots etc.)
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org