deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.rendering.r3d.opengl.rendering.model.manager
Class LODSwitcher

java.lang.Object
  extended by 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 $

Constructor Summary
LODSwitcher()
          Create a new lod switch containing no levels.
LODSwitcher(List<Pair<Double,Double>> levels)
          Create a new level
 
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
 

Constructor Detail

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 -
Method Detail

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

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>