org.deegree.rendering.r3d.multiresolution.crit
Class ViewFrustumCrit
java.lang.Object
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 $
|
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()
|
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 parametertextureManagers - texture managers that will be used to provide the texturesmaxProjectedTexelSize -
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.