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 |
|---|---|---|---|
| number | ||
| THREE.Quaternion | Helper object for reducing performance impact. | |
| THREE.Vector3[] | Helper for reducing number of objects created at runtime. | |
| ViewRanges | Get minimum view range that is possible to achieve with current evaluator settings. This value will not change after evaluator is constructed. | |
| number | ||
| number |