Class: GraphDataProvider
api.GraphDataProvider
#
Hierarchy↳
GraphDataProvider
#
Constructors#
constructor• new GraphDataProvider(options?
, geometry?
, converter?
, queryCreator?
)
Create a new data provider base instance.
#
ParametersName | Type |
---|---|
options? | GraphDataProviderOptions |
geometry? | IGeometryProvider |
converter? | GraphConverter |
queryCreator? | GraphQueryCreator |
#
Overrides#
Defined inapi/provider/GraphDataProvider.ts:49
#
Events#
on• on(type
, handler
): void
Fired when data has been created in the data provider after initial load.
example
// Initialize the data providerclass MyDataProvider extends DataProviderBase { // implementation}var provider = new MyDataProvider();// Set an event listenerprovider.on("datacreate", function() { console.log("A datacreate event has occurred.");});
#
ParametersName | Type |
---|---|
type | "datacreate" |
handler | (event : ProviderCellEvent ) => void |
#
Returnsvoid
#
Inherited from#
Defined in#
Accessors#
geometry• get
geometry(): IGeometryProvider
Get geometry property.
#
ReturnsGeometry provider instance.
#
Defined in#
Methods#
fireâ–¸ fire(type
, event
): void
Fire when data has been created in the data provider after initial load.
example
// Initialize the data providerclass MyDataProvider extends DataProviderBase { // Class implementation}var provider = new MyDataProvider();// Create the eventvar cellIds = [ // Determine updated cells ];var target = provider;var type = "datacreate";var event = { cellIds, target, type,};// Fire the eventprovider.fire(type, event);
#
ParametersName | Type | Description |
---|---|---|
type | "datacreate" | datacreate |
event | ProviderCellEvent | Provider cell event |
#
Returnsvoid
#
Inherited from#
Defined in../doc/api/DataProviderBase.ts:84
#
getClusterâ–¸ getCluster(url
, abort?
): Promise
<ClusterContract
>
Get a cluster reconstruction.
#
ParametersName | Type |
---|---|
url | string |
abort? | Promise <void > |
#
ReturnsPromise
<ClusterContract
>
Promise to the cluster reconstruction.
#
Overrides#
Defined inapi/provider/GraphDataProvider.ts:66
#
getCoreImagesâ–¸ getCoreImages(cellId
): Promise
<CoreImagesContract
>
Get core images in a geometry cell.
#
ParametersName | Type |
---|---|
cellId | string |
#
ReturnsPromise
<CoreImagesContract
>
Promise to the core images of the requested geometry cell id.
#
OverridesDataProviderBase.getCoreImages
#
Defined inapi/provider/GraphDataProvider.ts:85
#
getImageBufferâ–¸ getImageBuffer(url
, abort?
): Promise
<ArrayBuffer
>
Get an image as an array buffer.
#
ParametersName | Type |
---|---|
url | string |
abort? | Promise <void > |
#
ReturnsPromise
<ArrayBuffer
>
Promise to the array buffer containing the image.
#
OverridesDataProviderBase.getImageBuffer
#
Defined inapi/provider/GraphDataProvider.ts:114
#
getImageTilesâ–¸ getImageTiles(request
): Promise
<ImageTilesContract
>
Get image tiles urls for a tile level.
#
ParametersName | Type |
---|---|
request | ImageTilesRequestContract |
#
ReturnsPromise
<ImageTilesContract
>
Promise to the image tiles response contract
#
OverridesDataProviderBase.getImageTiles
#
Defined inapi/provider/GraphDataProvider.ts:154
#
getImagesâ–¸ getImages(imageIds
): Promise
<ImagesContract
>
Get complete images.
#
ParametersName | Type |
---|---|
imageIds | string [] |
#
ReturnsPromise
<ImagesContract
>
Promise to the images of the requested image ids.
#
Overrides#
Defined inapi/provider/GraphDataProvider.ts:121
#
getMeshâ–¸ getMesh(url
, abort?
): Promise
<MeshContract
>
Get a mesh.
#
ParametersName | Type |
---|---|
url | string |
abort? | Promise <void > |
#
ReturnsPromise
<MeshContract
>
Promise to the mesh.
#
Overrides#
Defined inapi/provider/GraphDataProvider.ts:179
#
getSequenceâ–¸ getSequence(sequenceId
): Promise
<SequenceEnt
>
Get sequence.
#
ParametersName | Type |
---|---|
sequenceId | string |
#
ReturnsPromise
<SequenceEnt
>
Promise to the sequences of the requested image ids.
#
Overrides#
Defined inapi/provider/GraphDataProvider.ts:190
#
getSpatialImagesâ–¸ getSpatialImages(imageIds
): Promise
<SpatialImagesContract
>
Get spatial images.
#
ParametersName | Type |
---|---|
imageIds | string [] |
#
ReturnsPromise
<SpatialImagesContract
>
Promise to the spatial images of the requested image ids.
#
OverridesDataProviderBase.getSpatialImages
#
Defined inapi/provider/GraphDataProvider.ts:211
#
offâ–¸ off(type
, handler
): void
Unsubscribe from an event by its name.
#
ParametersName | Type |
---|---|
type | "datacreate" |
handler | (event : ProviderCellEvent ) => void |
#
Returnsvoid
#
Inherited from#
Defined in../doc/api/DataProviderBase.ts:224
#
setAccessTokenâ–¸ setAccessToken(accessToken
): void
Set an access token for authenticated API requests of protected resources.
#
ParametersName | Type |
---|---|
accessToken | string |
#
Returnsvoid
#
OverridesDataProviderBase.setAccessToken