|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wts.WTSScene_Impl
The WTSScene_Impl represents the basic class for creation of a 3D terrain model in the sense of the OGC Web Terrain Service specification. A WTS scene is defined by a terrain model and a date determining the light condions. 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.) and additional light placed into the scene (e.g. street lights, spots, lighted windows etc.).
-----------------------------------------------------------------------
Field Summary | |
private java.lang.Object |
background
|
private java.util.Calendar |
calendar
|
private java.util.ArrayList |
conditions
|
private GM_Envelope |
envelope
|
private java.util.ArrayList |
feature
|
private java.util.ArrayList |
lights
|
private java.util.ArrayList |
terrain
|
private ViewPoint |
viewPoint
|
Constructor Summary | |
WTSScene_Impl(Shape3D[] terrain,
Group[] feature,
ViewPoint viewPoint)
Creates a new instance of WTSScene_Impl |
|
WTSScene_Impl(Shape3D[] terrain,
Group[] feature,
ViewPoint viewPoint,
java.util.Calendar calendar)
Creates a new instance of WTSScene_Impl |
|
WTSScene_Impl(Shape3D[] terrain,
Group[] feature,
ViewPoint viewPoint,
java.util.Calendar calendar,
AtmosphericCondition[] conditions)
Creates a new instance of WTSScene_Impl |
|
WTSScene_Impl(Shape3D[] terrain,
Group[] feature,
ViewPoint viewPoint,
java.util.Calendar calendar,
AtmosphericCondition[] conditions,
Light[] lights)
Creates a new instance of WTSScene_Impl |
|
WTSScene_Impl(Shape3D[] terrain,
Group[] feature,
ViewPoint viewPoint,
java.util.Calendar calendar,
AtmosphericCondition[] conditions,
Light[] lights,
java.lang.Object background)
Creates a new instance of WTSScene_Impl |
Method Summary | |
void |
addAtmosphericCondition(AtmosphericCondition condition)
adds a atmospheric condition to the scene. |
void |
addFeature(Group feature)
adds a feature that shall be rendered. the first feature to be set shall be the digital elevation model |
void |
addLight(Light light)
adds a light to the scene. this can be ambient, directional and point light. |
private void |
createDayLight()
creates the light that results from the sun (direct light) and the ambient of the sky. |
AtmosphericCondition[] |
getAtmosphericConditions()
gets the atmospheric conditions for the rendering. |
GM_Position[] |
getBackFrame()
returns the four corner coordinates of farest frame the viewer sees and that contains data |
java.lang.Object |
getBackground()
returns the background object of the scene. this may be a Background, a Shape3D or null if no background is defined. |
java.util.Calendar |
getDate()
get the date and the time for determining time depending the light conditions of the scene |
GM_Envelope |
getEnvelope()
returns the envelope od the scene. |
Group[] |
getFeatures()
returns the <Format> element |
GM_Position[] |
getFrontBorderFrame()
returns the four corner coordinates of frame the viewer sees next to him and that contains data |
Light[] |
getLights()
returns the lights of the scene |
Shape3D[] |
getTerrain()
returns the features that constructs the terrain model of the scene |
ViewPoint |
getViewPoint()
gets the position of the viewer, the directions he looks and his field of view in radians |
void |
setAtmosphericConditions(AtmosphericCondition[] conditions)
sets the atmospheric conditions for the rendering. e.g. if a clear day (maybe summer late morning) is assumed there will be very sharp shadows. if vice versa a cloudy day (let's say autumn late afternoon) with some poor rain and a bit fog is assumed there won't be sharp shadows but some kind of 'gray curtain' over the scene. |
void |
setBackground(Background background)
sets the Background object of the scene |
void |
setDate(java.util.Calendar calendar)
set the date and the time for determining time depending the light conditions of the scene |
void |
setFeatures(Group[] features)
sets the features that shall be rendered. the first feature of the array shall be the digital elevation model |
void |
setLights(Light[] lights)
sets the lights of the scene. this can be ambient, directional and point light. |
void |
setTerrain(Shape3D feature)
sets the terrain of the WTS-Scene as Shape3D object containing an appearence |
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 |
Field Detail |
private java.util.Calendar calendar
private java.util.ArrayList conditions
private java.util.ArrayList feature
private java.util.ArrayList terrain
private java.util.ArrayList lights
private ViewPoint viewPoint
private java.lang.Object background
private GM_Envelope envelope
Constructor Detail |
public WTSScene_Impl(Shape3D[] terrain, Group[] feature, ViewPoint viewPoint)
terrain
- Shape3D object(s) representing the scenes terrain.feature
- feature that shall be published in the sceneviewPoint
- object that describes the viewers position and the point
he looks atpublic WTSScene_Impl(Shape3D[] terrain, Group[] feature, ViewPoint viewPoint, java.util.Calendar calendar)
terrain
- Shape3D object(s) representing the scenes terrain.feature
- feature that shall be published in the sceneviewPoint
- object that describes the viewers position and the point
he looks atcalendar
- describtion of the date and time for which the scene shall
be rendered --> light
conditionspublic WTSScene_Impl(Shape3D[] terrain, Group[] feature, ViewPoint viewPoint, java.util.Calendar calendar, AtmosphericCondition[] conditions)
terrain
- Shape3D object(s) representing the scenes terrain.feature
- feature that shall be published in the sceneviewPoint
- object that describes the viewers position and the point
he looks atcalendar
- describtion of the date and time for which the scene shall
be rendered --> light
conditionsconditions
- atmospheric conditions like fog, dust, rain etc. of the scenepublic WTSScene_Impl(Shape3D[] terrain, Group[] feature, ViewPoint viewPoint, java.util.Calendar calendar, AtmosphericCondition[] conditions, Light[] lights)
terrain
- Shape3D object(s) representing the scenes terrain.feature
- feature that shall be published in the sceneviewPoint
- object that describes the viewers position and the point
he looks atcalendar
- describtion of the date and time for which the scene shall
be rendered --> light conditionsconditions
- atmospheric conditions like fog, dust, rain etc. of the scenelights
- lights in addition to sun and ambient light (e.g. street lights,
spots etc.)public WTSScene_Impl(Shape3D[] terrain, Group[] feature, ViewPoint viewPoint, java.util.Calendar calendar, AtmosphericCondition[] conditions, Light[] lights, java.lang.Object background)
terrain
- Shape3D object(s) representing the scenes terrain.feature
- feature that shall be published in the sceneviewPoint
- object that describes the viewers position and the point
he looks atcalendar
- describtion of the date and time for which the scene shall
be rendered --> light conditionsconditions
- atmospheric conditions like fog, dust, rain etc. of the scenelights
- lights in addition to sun and ambient light (e.g. street lights, spots
etc.)background
- scene background; have to be a Shape3D or a
BackgroundMethod Detail |
private void createDayLight()
public Group[] getFeatures()
getFeatures
in interface WTSScene
public void setFeatures(Group[] features)
setFeatures
in interface WTSScene
features
- features to publish into the scenepublic void addFeature(Group feature)
addFeature
in interface WTSScene
feature
- feature to publish into the scenepublic java.lang.Object getBackground()
getBackground
in interface WTSScene
public void setBackground(Background background)
setBackground
in interface WTSScene
public AtmosphericCondition[] getAtmosphericConditions()
getAtmosphericConditions
in interface WTSScene
public void setAtmosphericConditions(AtmosphericCondition[] conditions)
at the moment it isn't specified how to define atmospheric conditions in a standarized form so just an Object is submitted to the method.
setAtmosphericConditions
in interface WTSScene
conditions
- atmospheric conditions of the scene like fog, rain etc.public void addAtmosphericCondition(AtmosphericCondition condition)
addAtmosphericCondition
in interface WTSScene
condition
- atmospheric conditions of the scene like fog, rain etc.WTSScene.setAtmosphericConditions(AtmosphericCondition[])
public java.util.Calendar getDate()
getDate
in interface WTSScene
public void setDate(java.util.Calendar calendar)
setDate
in interface WTSScene
calendar
- describtion of the date and time for which the scene shall be rendered --> light
conditionspublic void setTerrain(Shape3D feature)
setTerrain
in interface WTSScene
feature
- Shape3D object representing the scenes terrain.public Shape3D[] getTerrain()
getTerrain
in interface WTSScene
public ViewPoint getViewPoint()
getViewPoint
in interface WTSScene
public void setViewPoint(ViewPoint viewPoint)
setViewPoint
in interface WTSScene
viewPoint
- object that describes the viewers position and the point he looks atpublic void addLight(Light light)
addLight
in interface WTSScene
light
- a light in addition to sun and basic ambient light (e.g.
street lights, spots etc.)public Light[] getLights()
getLights
in interface WTSScene
public void setLights(Light[] lights)
setLights
in interface WTSScene
lights
- lights in addition to sun and basic ambient light
(e.g. street lights, spots etc.)public GM_Envelope getEnvelope()
getEnvelope
in interface WTSScene
public GM_Position[] getFrontBorderFrame()
getFrontBorderFrame
in interface WTSScene
public GM_Position[] getBackFrame()
getBackFrame
in interface WTSScene
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |