Skip to main content

flywave-mapview.topviewclipplanesevaluator

Home > @flywave/flywave-mapview > TopViewClipPlanesEvaluator

TopViewClipPlanesEvaluator class

Warning: This API is now obsolete.

Default evaluator TiltViewClipPlanesEvaluator supports top-down views.

Top view, clip planes evaluator that computes view ranges based on ground distance and elevation.

Signature:

export declare class TopViewClipPlanesEvaluator extends ElevationBasedClipPlanesEvaluator 

Extends: ElevationBasedClipPlanesEvaluator

Remarks

This evaluator supports both planar and spherical projections, although it behavior is slightly different in each case. General algorithm sets near plane and far plane close to ground level, but taking into account maximum and minimum elevation of features on the ground.

This evaluator supports only cameras which are always looking down the ground surface (top-down view) along surface normal and does not preserve correct clip planes when modifying camera pitch (tilt) angle. In simple words it is suitable only for top view camera settings.

Constructors

Constructor

Modifiers

Description

(constructor)(maxElevation, minElevation, nearMin, nearFarMarginRatio, farMaxRatio)

Allows to setup near/far offsets (margins), rendered geometry elevation relative to sea level as also minimum near plane and maximum far plane distance constraints.

Properties

Property

Modifiers

Type

Description

farMaxRatio

readonly

number

m_tmpQuaternion

protected

THREE.Quaternion

Helper object for reducing performance impact.

m_tmpVectors

protected

THREE.Vector3[]

Helper for reducing number of objects created at runtime.

minimumViewRange

protected

readonly

ViewRanges

Get minimum view range that is possible to achieve with current evaluator settings. This value will not change after evaluator is constructed.

nearFarMarginRatio

readonly

number

nearMin

readonly

number

Methods

Method

Modifiers

Description

evaluateClipPlanes(camera, projection, elevationProvider, useLogarithmicDepth)

evaluateDistancePlanarProj(camera, projection, elevationProvider, useLogarithmicDepth)

protected

evaluateDistanceSphericalProj(camera, projection, elevationProvider, useLogarithmicDepth)

protected

getFovBasedFarPlane(camera, d, r, fovAngle, projection)

protected