org.deegree.rendering.r3d.multiresolution.crit
Class MaxError

java.lang.Object
  extended by org.deegree.rendering.r3d.multiresolution.crit.MaxError
All Implemented Interfaces:
LODCriterion

public class MaxError
extends Object
implements LODCriterion

LODCriterion that requests the smallest LOD in a MultiresolutionMesh with an approximation error that does not exceed a given bound.

Version:
$Revision: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
Author:
Markus Schneider, last edited by: $Author: aschmitz $

Field Summary
 
Fields inherited from interface org.deegree.rendering.r3d.multiresolution.crit.LODCriterion
COARSEST, FINEST
 
Constructor Summary
MaxError(float maxTolerableError)
          Creates a new MaxError instance.
 
Method Summary
 boolean needsRefinement(Arc arc)
          Returns true, iff the geometric error associated with the arc is greater than the maximum tolerable error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxError

public MaxError(float maxTolerableError)
Creates a new MaxError instance.

Parameters:
maxTolerableError - the maximum tolerable error for the LOD (in world units)
Method Detail

needsRefinement

public boolean needsRefinement(Arc arc)
Returns true, iff the geometric error associated with the arc is greater than the maximum tolerable error.

Specified by:
needsRefinement in interface LODCriterion
Parameters:
arc - arc to be checked
Returns:
true, iff the arc's geometric error is greater than the maximum tolerable error


Copyright © 2011. All Rights Reserved.