Interface: PointsDataProvider<TPointsDataSource, TPointsData, TNormalizedPointsDataSource>
Defined in: storage/points.ts:40
Data provider for point clouds
Extends
AnnotatedDataProvider<TPointsDataSource,TPointsData,TNormalizedPointsDataSource>
Type Parameters
TPointsDataSource
TPointsDataSource extends PointsDataSource
The data source type this data provider opens
TPointsData
TPointsData extends PointsData
The PointsData type produced by this data provider
TNormalizedPointsDataSource
TNormalizedPointsDataSource extends TPointsDataSource = TPointsDataSource
The normalized data source type
produced by normalize and accepted by load
Properties
name
readonlyname:string
Defined in: storage/base.ts:134
The name of the data provider
Inherited from
schema
readonlyschema:JsonSchema
Defined in: storage/base.ts:137
The JSON schema for the data source
Inherited from
uischema
readonlyuischema:UISchemaElement
Defined in: storage/base.ts:140
The JSON Forms UI schema for the data source
Inherited from
AnnotatedDataProvider.uischema
Methods
load()
load(
normalizedDataSource,options?):Promise<TPointsData>
Defined in: storage/base.ts:222
Opens a data source and returns the loaded data accessor
The data source has to have been normalized by DataProvider.normalize beforehand.
Parameters
normalizedDataSource
TNormalizedPointsDataSource
The normalized data source to open
options?
AnnotatedDataProviderLoadOptions
See AnnotatedDataProviderLoadOptions
Returns
Promise<TPointsData>
A promise that resolves to the loaded data accessor
Inherited from
normalize()
normalize(
dataSource,projectUrl):TNormalizedPointsDataSource
Defined in: storage/base.ts:159
Returns the data source with all of this data provider's defaults applied and all of its relative URLs resolved
Data sources that normalize to the same value are considered equal, and their data is loaded only once and shared between all referencing objects. Normalization has to be idempotent: normalizing an already normalized data source must return the same value again.
Relative URLs are resolved against the URL the project was loaded from, and against the document base URL for projects without one.
Parameters
dataSource
TPointsDataSource
The data source to normalize
projectUrl
string | null
The absolute URL of the project, or null for projects
that were not loaded from a URL
Returns
TNormalizedPointsDataSource
The normalized data source