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

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

public class ViewFrustumCrit
extends Object
implements LODCriterion

LODCriterion for specifying LODs that are optimized for perspective rendering.

Version:
$Revision: 29127 $
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
ViewFrustumCrit(ViewParams viewParams, float maxPixelError, float zScale, int maxTextureSize, TextureManager[] textureManagers, float maxProjectedTexelSize)
          Creates a new ViewFrustumCrit instance.
 
Method Summary
 boolean needsRefinement(Arc arc)
          Returns true, iff the region associated with the arc is inside the view frustum volume and the estimated screen projection error is greater than the maximum tolerable error.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewFrustumCrit

public ViewFrustumCrit(ViewParams viewParams,
                       float maxPixelError,
                       float zScale,
                       int maxTextureSize,
                       TextureManager[] textureManagers,
                       float maxProjectedTexelSize)
Creates a new ViewFrustumCrit instance.

Parameters:
viewParams - specifies the visible space volume (viewer position, view direction, etc.)
maxPixelError - maximum tolerable screen space error in pixels (in the rendered image)
zScale - scaling factor applied to z values of the mesh geometry (and bounding boxes)
maxTextureSize - maximum texture size (all fragments of the extracted LOD must have a size that is small enough, so they can be textured regarding this value and the finestTextureResolution parameter
textureManagers - texture managers that will be used to provide the textures
maxProjectedTexelSize -
Method Detail

needsRefinement

public boolean needsRefinement(Arc arc)
Returns true, iff the region associated with the arc is inside the view frustum volume and the estimated screen projection error 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 region is inside the view frustum and the estimated screen projection error is greater than the maximum tolerable error

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.