FeatureAppearanceProvider Namespace

Function

Name Description
FeatureAppearanceProvider.chain Chain two FeatureAppearanceProviders together such that first's getFeatureAppearance function is applied before second's.
FeatureAppearanceProvider.supplement Create a provider that obtains each feature's appearance from the source, and if the feature is visible, modifies the appearance.

Defined in

FeatureAppearanceProvider Interface

Interface adopted by an object that can supply the FeatureAppearance supplied by a FeatureAppearanceSource. This is useful for selectively overriding or agumenting a Viewport's symbology overrides. A typical implementation will invoke getAppearance and customize the returned appearance.

@see FeatureAppearanceProvider.chain to chain two providers together.

Methods

Name Description
getFeatureAppearance(source: FeatureAppearanceSource, elemLo: number, elemHi: number, subcatLo: number, subcatHi: number, geomClass: GeometryClass, modelLo: number, modelHi: number, type: BatchType, animationNodeId: number): undefined | FeatureAppearance Supply the desired appearance overrides for the specified Feature, or undefined if the feature should not be drawn.  

Defined in

Last Updated: 17 December, 2024