Skip to main content

flywave-mapview.tiledataaccessor

Home > @flywave/flywave-mapview > TileDataAccessor

TileDataAccessor class

An accessor for all geometries in a tile.

Signature:

export declare class TileDataAccessor 

Remarks

This class uses a client-provided ITileDataVisitor to visit all objects, based on filtering options specified by both, the TileDataAccessor and the visitor itself.

Constructors

Constructor

Modifiers

Description

(constructor)(tile, visitor, options)

Constructs a TileDataAccessor instance.

Properties

Property

Modifiers

Type

Description

tile

Tile

Methods

Method

Modifiers

Description

getBufferGeometry(object)

protected

Gets the BufferGeometry from the specified object. This function requires the attribute position in BufferGeometry to be set.

getGeometryAccessor(geometryType, object, bufferGeometry)

protected

Obtains an accessor for the nonindexed geometry. This function may return undefined if the accessor is not implemented.

getIndexedGeometryAccessor(geometryType, object, bufferGeometry)

protected

Obtains an accessor for the indexed geometry. This function may return undefined if the accessor is not implemented.

visitAll()

Calls the visitor on all objects in the tile.

visitMesh(meshObject, featureData)

protected

Visit the object.

visitObject(object)

protected

Visits a single object. This function should normally be called during visiting.