org.deegree.rendering.r3d.opengl.rendering.model.manager
Class LODSwitcher
java.lang.Object
org.deegree.rendering.r3d.opengl.rendering.model.manager.LODSwitcher
public class LODSwitcher
- extends Object
The LODSwitcher holds (configured) scale values for a WorldRenderableObject with which the
latter can decide which LOD it should use to represent it self. The values are supposed to be units per pixel.
- Version:
- $Revision: 18171 $, $Date: 2009-06-17 16:00:07 +0200 (Mi, 17 Jun 2009) $
- Author:
- Rutger Bezema, last edited by: $Author: mschneider $
|
Method Summary |
int |
calcLevel(RenderContext glRenderContext,
float[] position,
int maxNumberOfLevels,
float sizeInUnits)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LODSwitcher
public LODSwitcher()
- Create a new lod switch containing no levels.
LODSwitcher
public LODSwitcher(List<Pair<Double,Double>> levels)
- Create a new level
- Parameters:
levels -
calcLevel
public int calcLevel(RenderContext glRenderContext,
float[] position,
int maxNumberOfLevels,
float sizeInUnits)
- Parameters:
glRenderContext - position - maxNumberOfLevels - sizeInUnits - of the building (normally the length of the min-max points of the bbox)
- Returns:
- the level of detail calculated from the configured level switches
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>