@cognite/reveal 4.19.1-dev.20241025 → 4.19.1-dev.20241028
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-entry-points/core.d.ts +3 -3
- package/dist/index.js +199 -163
- package/dist/index.js.map +1 -1
- package/dist/packages/360-images/src/Image360Facade.d.ts +10 -9
- package/dist/packages/360-images/src/annotation/Image360Annotation.d.ts +3 -3
- package/dist/packages/360-images/src/annotation/ImageAnnotationObject.d.ts +3 -3
- package/dist/packages/360-images/src/cache/Image360LoadingCache.d.ts +9 -8
- package/dist/packages/360-images/src/collection/DefaultImage360Collection.d.ts +6 -6
- package/dist/packages/360-images/src/collection/Image360Collection.d.ts +7 -7
- package/dist/packages/360-images/src/collection/Image360CollectionFactory.d.ts +4 -3
- package/dist/packages/360-images/src/entity/Image360.d.ts +4 -3
- package/dist/packages/360-images/src/entity/Image360Entity.d.ts +8 -8
- package/dist/packages/360-images/src/entity/Image360Revision.d.ts +3 -2
- package/dist/packages/360-images/src/entity/Image360RevisionEntity.d.ts +4 -4
- package/dist/packages/360-images/src/entity/Image360VisualizationBox.d.ts +2 -2
- package/dist/packages/api/src/api-helpers/Image360ApiHelper.d.ts +9 -9
- package/dist/packages/api/src/public/RevealManager.d.ts +4 -3
- package/dist/packages/api/src/public/migration/Cognite3DViewer.d.ts +20 -19
- package/dist/packages/api/src/public/migration/types.d.ts +14 -9
- package/dist/packages/api/src/public/types.d.ts +5 -4
- package/dist/packages/api/src/storage/RevealManagerHelper.d.ts +5 -4
- package/dist/packages/api/src/utilities/ViewStateHelper.d.ts +3 -2
- package/dist/packages/api/src/utilities/utils.d.ts +11 -0
- package/dist/packages/data-providers/index.d.ts +8 -2
- package/dist/packages/data-providers/src/DataSourceType.d.ts +127 -0
- package/dist/packages/data-providers/src/ModelIdentifier.d.ts +2 -0
- package/dist/packages/data-providers/src/PointCloudStylableObjectProvider.d.ts +3 -3
- package/dist/packages/data-providers/src/model-identifiers/DMModelIdentifier.d.ts +12 -0
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/CdfPointCloudStylableObjectProvider.d.ts +3 -3
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/DummyPointCloudStylableObjectProvider.d.ts +3 -3
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/cdfAnnotationsToObjects.d.ts +2 -1
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/CdfPointCloudDMStylableObjectProvider.d.ts +12 -0
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/DummyPointCloudDMStylableObjectProvider.d.ts +9 -0
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/getDMPointCloudObjects.d.ts +4 -0
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/getDMPointCloudVolumeCollectionQuery.d.ts +81 -0
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/types.d.ts +32 -0
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/pointcloud-volume-data-providers/utils.d.ts +6 -0
- package/dist/packages/data-providers/src/pointcloud-stylable-object-providers/types.d.ts +25 -22
- package/dist/packages/data-providers/src/requests/fetchDMModelIdFromRevisionId.d.ts +8 -0
- package/dist/packages/data-providers/src/utilities/constants.d.ts +29 -0
- package/dist/packages/data-providers/src/utilities/internalAddModelOptions.d.ts +23 -0
- package/dist/packages/data-providers/src/utilities/utils.d.ts +32 -0
- package/dist/packages/pointcloud-styling/index.d.ts +4 -2
- package/dist/packages/pointcloud-styling/src/AnnotationIdPointCloudObjectCollection.d.ts +3 -3
- package/dist/packages/pointcloud-styling/src/PointCloudDMVolumeCollection.d.ts +19 -0
- package/dist/packages/pointcloud-styling/src/PointCloudObjectCollection.d.ts +15 -3
- package/dist/packages/pointcloud-styling/src/StyledPointCloudVolumeCollection.d.ts +41 -0
- package/dist/packages/pointcloud-styling/src/utils.d.ts +7 -0
- package/dist/packages/pointclouds/index.d.ts +1 -0
- package/dist/packages/pointclouds/src/CognitePointCloudModel.d.ts +33 -9
- package/dist/packages/pointclouds/src/PointCloudFactory.d.ts +5 -3
- package/dist/packages/pointclouds/src/PointCloudIntersection.d.ts +12 -2
- package/dist/packages/pointclouds/src/PointCloudLoadingStateHandler.d.ts +2 -1
- package/dist/packages/pointclouds/src/PointCloudManager.d.ts +3 -3
- package/dist/packages/pointclouds/src/PointCloudNode.d.ts +8 -7
- package/dist/packages/pointclouds/src/PointCloudPickingHandler.d.ts +3 -32
- package/dist/packages/pointclouds/src/createPointCloudManager.d.ts +2 -2
- package/dist/packages/pointclouds/src/potree-three-loader/Potree.d.ts +2 -2
- package/dist/packages/pointclouds/src/potree-three-loader/loading/EptLoader.d.ts +2 -2
- package/dist/packages/pointclouds/src/potree-three-loader/types/IPotree.d.ts +2 -2
- package/dist/packages/pointclouds/src/potree-three-loader/utils/createObjectIdMaps.d.ts +2 -2
- package/dist/packages/pointclouds/src/typeGuards.d.ts +17 -0
- package/dist/packages/pointclouds/src/types.d.ts +29 -0
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts +4 -3
- package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectIdMaps.d.ts +3 -2
- package/dist/packages/tools/src/AxisGizmo/AxisGizmoTool.d.ts +2 -1
- package/dist/packages/tools/src/DebugCameraTool.d.ts +2 -1
- package/dist/packages/tools/src/HtmlOverlay/HtmlOverlayTool.d.ts +2 -1
- package/dist/packages/tools/src/Measurement/MeasurementTool.d.ts +2 -1
- package/package.json +1 -1
- package/dist/packages/pointcloud-styling/src/StyledPointCloudObjectCollection.d.ts +0 -13
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { GeometryFilter } from '../../../cad-model';
|
|
5
|
+
import { ClassicModelIdentifierType, InternalDataSourceType, LocalModelIdentifierType } from '../DataSourceType';
|
|
6
|
+
/**
|
|
7
|
+
* Model options common to all model types.
|
|
8
|
+
*/
|
|
9
|
+
export type CommonModelOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* An optional local file which will be used to load the data.
|
|
12
|
+
*/
|
|
13
|
+
localPath?: string;
|
|
14
|
+
/**
|
|
15
|
+
* An optional geometryFilter which will be applied to loading model.
|
|
16
|
+
*/
|
|
17
|
+
geometryFilter?: GeometryFilter;
|
|
18
|
+
};
|
|
19
|
+
export type LocalAddModelOptions = CommonModelOptions & LocalModelIdentifierType;
|
|
20
|
+
export type InternalAddModelOptions<T extends InternalDataSourceType> = CommonModelOptions & T['modelIdentifier'];
|
|
21
|
+
export type AddModelOptionsWithModelRevisionId<T extends InternalDataSourceType> = InternalAddModelOptions<T> & {
|
|
22
|
+
classicModelRevisionId: ClassicModelIdentifierType;
|
|
23
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { TableExpressionEqualsFilterV3 } from '@cognite/sdk/dist/src';
|
|
5
|
+
import { PointCloudObject } from '../pointcloud-stylable-object-providers/types';
|
|
6
|
+
import { ClassicDataSourceType, DMDataSourceType, DataSourceType } from '../DataSourceType';
|
|
7
|
+
/**
|
|
8
|
+
* Type guard to check if a point cloud object contains data type DMDataSourceType
|
|
9
|
+
* @param pointCloudObject - The object to check
|
|
10
|
+
* @returns True if the object is of type `PointCloudObject<DMDataSourceType>`, false otherwise
|
|
11
|
+
*/
|
|
12
|
+
export declare function isDMPointCloudVolumeObject(pointCloudObject: PointCloudObject<DataSourceType>): pointCloudObject is PointCloudObject<DMDataSourceType>;
|
|
13
|
+
/**
|
|
14
|
+
* Type guard to check if a point cloud object contains data type ClassicDataSourceType
|
|
15
|
+
* @param pointCloudObject - The object to check
|
|
16
|
+
* @returns True if the object is of type `PointCloudObject<ClassicDataSourceType>`, false otherwise
|
|
17
|
+
*/
|
|
18
|
+
export declare function isClassicPointCloudVolumeObject(pointCloudObject: PointCloudObject<DataSourceType>): pointCloudObject is PointCloudObject<ClassicDataSourceType>;
|
|
19
|
+
/**
|
|
20
|
+
* Type guard to check if the point cloud metadata is of type DMDataSourceType
|
|
21
|
+
* @param pointCloudMetadata - The metadata object to check
|
|
22
|
+
* @returns True if the object is of type `PointCloudObjectMetadata<DMDataSourceType>`, false otherwise
|
|
23
|
+
*/
|
|
24
|
+
export declare function isDMPointCloudVolume(pointCloudMetadata: DataSourceType['pointCloudVolumeMetadata']): pointCloudMetadata is DMDataSourceType['pointCloudVolumeMetadata'];
|
|
25
|
+
/**
|
|
26
|
+
* Type guard to check if the point cloud metadata is of type ClassicDataSourceType
|
|
27
|
+
* @param pointCloudMetadata - The metadata object to check
|
|
28
|
+
* @returns True if the object is of type `PointCloudObjectMetadata<ClassicDataSourceType>`, false otherwise
|
|
29
|
+
*/
|
|
30
|
+
export declare function isClassicPointCloudVolume(pointCloudMetadata: DataSourceType['pointCloudVolumeMetadata']): pointCloudMetadata is ClassicDataSourceType['pointCloudVolumeMetadata'];
|
|
31
|
+
export declare function getNodeExternalIdEqualsFilter<T extends string>(externalId: T): TableExpressionEqualsFilterV3;
|
|
32
|
+
export declare function getNodeSpaceEqualsFilter<T extends string>(space: T): TableExpressionEqualsFilterV3;
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
export { CompletePointCloudAppearance, PointCloudAppearance, DefaultPointCloudAppearance, applyDefaultsToPointCloudAppearance } from './src/PointCloudAppearance';
|
|
5
|
-
export { StyledPointCloudObjectCollection } from './src/
|
|
6
|
-
export { PointCloudObjectCollection } from './src/PointCloudObjectCollection';
|
|
5
|
+
export { StyledPointCloudObjectCollection, StyledPointCloudVolumeCollection } from './src/StyledPointCloudVolumeCollection';
|
|
6
|
+
export { PointCloudObjectCollection, PointCloudAnnotationVolumeCollection } from './src/PointCloudObjectCollection';
|
|
7
7
|
export { AnnotationIdPointCloudObjectCollection } from './src/AnnotationIdPointCloudObjectCollection';
|
|
8
|
+
export { PointCloudDMVolumeCollection } from './src/PointCloudDMVolumeCollection';
|
|
9
|
+
export { isPointCloudObjectCollection, isDMInstanceRefPointCloudObjectCollection } from './src/utils';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { PointCloudAnnotationVolumeCollection } from './PointCloudObjectCollection';
|
|
5
5
|
/**
|
|
6
|
-
* A simple
|
|
6
|
+
* A simple PointCloudAnnotationVolumeCollection that consists of an explicitly provided list of annotation IDs
|
|
7
7
|
*/
|
|
8
|
-
export declare class AnnotationIdPointCloudObjectCollection extends
|
|
8
|
+
export declare class AnnotationIdPointCloudObjectCollection extends PointCloudAnnotationVolumeCollection {
|
|
9
9
|
private readonly _annotationIds;
|
|
10
10
|
constructor(ids: Iterable<number>);
|
|
11
11
|
getAnnotationIds(): Iterable<number>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { DMInstanceRef } from '../../data-providers';
|
|
5
|
+
/**
|
|
6
|
+
* A simple PointCloudDMVolumeCollection that consists of an explicitly provided list of data model instance.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PointCloudDMVolumeCollection {
|
|
9
|
+
private readonly _dataModelInstanceRef;
|
|
10
|
+
constructor(ids: Iterable<DMInstanceRef>);
|
|
11
|
+
/**
|
|
12
|
+
* Gets data model external IDs for the objects represented by this PointCloudDMVolumeCollection instance
|
|
13
|
+
*/
|
|
14
|
+
getDataModelInstanceRefs(): Iterable<DMInstanceRef>;
|
|
15
|
+
/**
|
|
16
|
+
* Is the collection is still loading data in the background i.e. not yet ready for use
|
|
17
|
+
*/
|
|
18
|
+
get isLoading(): false;
|
|
19
|
+
}
|
|
@@ -4,20 +4,32 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Base class for collections of point cloud objects intended for styling operations
|
|
6
6
|
*/
|
|
7
|
-
export declare abstract class
|
|
7
|
+
export declare abstract class PointCloudAnnotationVolumeCollection {
|
|
8
8
|
private readonly _changedEvent;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* annotation IDs of the annotations for the objects represented by this PointCloudObjectCollection instance
|
|
11
11
|
*/
|
|
12
12
|
abstract getAnnotationIds(): Iterable<number>;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Whether the collection is still loading data in the background i.e. not yet ready for use
|
|
15
15
|
*/
|
|
16
16
|
abstract get isLoading(): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Register an event listener on this collection
|
|
19
|
+
*/
|
|
17
20
|
on(event: 'changed', listener: () => void): void;
|
|
21
|
+
/**
|
|
22
|
+
* Unregister an event listener on this collection
|
|
23
|
+
*/
|
|
18
24
|
off(event: 'changed', listener: () => void): void;
|
|
19
25
|
/**
|
|
20
26
|
* Triggers the changed-event.
|
|
21
27
|
*/
|
|
22
28
|
protected notifyChanged(): void;
|
|
23
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Alias for PointCloudAnnotationVolumeCollection
|
|
32
|
+
* @deprecated Use {@link PointCloudAnnotationVolumeCollection} instead
|
|
33
|
+
*/
|
|
34
|
+
export declare abstract class PointCloudObjectCollection extends PointCloudAnnotationVolumeCollection {
|
|
35
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { CompletePointCloudAppearance } from './PointCloudAppearance';
|
|
5
|
+
import { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
6
|
+
/**
|
|
7
|
+
* Represents either an PointCloudAnnotationVolumeCollection or PointCloudDMVolumeCollection
|
|
8
|
+
* that is associated with an appearance.
|
|
9
|
+
*/
|
|
10
|
+
export declare class StyledPointCloudVolumeCollection<T extends DataSourceType> {
|
|
11
|
+
/**
|
|
12
|
+
* The volume collection this StyledPointCloudVolumeCollection represents
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
objectCollection: T['pointCloudCollectionType'];
|
|
16
|
+
/**
|
|
17
|
+
* The appearance applied by the current StyledPointCloudVolumeCollection
|
|
18
|
+
*/
|
|
19
|
+
style: CompletePointCloudAppearance;
|
|
20
|
+
/**
|
|
21
|
+
* Get the volume collection for this StyledPointCloudVolumeCollection
|
|
22
|
+
*/
|
|
23
|
+
get volumeCollection(): T['pointCloudCollectionType'];
|
|
24
|
+
constructor(
|
|
25
|
+
/**
|
|
26
|
+
* The volume collection this StyledPointCloudVolumeCollection represents
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
29
|
+
objectCollection: T['pointCloudCollectionType'],
|
|
30
|
+
/**
|
|
31
|
+
* The appearance applied by the current StyledPointCloudVolumeCollection
|
|
32
|
+
*/
|
|
33
|
+
style: CompletePointCloudAppearance);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Represents either an PointCloudAnnotationVolumeCollection or PointCloudDMVolumeCollection
|
|
37
|
+
* that is associated with an appearance.
|
|
38
|
+
* @deprecated USe StyledPointCoudVolumeCollection instead
|
|
39
|
+
*/
|
|
40
|
+
export declare class StyledPointCloudObjectCollection extends StyledPointCloudVolumeCollection<ClassicDataSourceType> {
|
|
41
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { PointCloudDMVolumeCollection } from './PointCloudDMVolumeCollection';
|
|
5
|
+
import { PointCloudAnnotationVolumeCollection } from './PointCloudObjectCollection';
|
|
6
|
+
export declare function isPointCloudObjectCollection(collection: PointCloudAnnotationVolumeCollection | PointCloudDMVolumeCollection): collection is PointCloudAnnotationVolumeCollection;
|
|
7
|
+
export declare function isDMInstanceRefPointCloudObjectCollection(collection: PointCloudAnnotationVolumeCollection | PointCloudDMVolumeCollection): collection is PointCloudDMVolumeCollection;
|
|
@@ -9,6 +9,7 @@ export { createPointCloudManager } from './src/createPointCloudManager';
|
|
|
9
9
|
export { PointCloudBudget } from './src/PointCloudBudget';
|
|
10
10
|
export { PointCloudIntersection } from './src/PointCloudIntersection';
|
|
11
11
|
export { CognitePointCloudModel } from './src/CognitePointCloudModel';
|
|
12
|
+
export { isDMPointCloudModel, isClassicPointCloudModel } from './src/typeGuards';
|
|
12
13
|
export { PointCloudLoadingStateHandler } from './src/PointCloudLoadingStateHandler';
|
|
13
14
|
export { PointCloudFactory } from './src/PointCloudFactory';
|
|
14
15
|
export { IPointClassificationsProvider } from './src/classificationsProviders/IPointClassificationsProvider';
|
|
@@ -6,21 +6,30 @@ import { CameraConfiguration } from '../../utilities';
|
|
|
6
6
|
import { WellKnownAsprsPointClassCodes } from './types';
|
|
7
7
|
import { PointColorType, PointShape, PointSizeType } from '../../rendering';
|
|
8
8
|
import { SupportedModelTypes } from '../../model-base';
|
|
9
|
-
import { PointCloudObjectMetadata } from '../../data-providers';
|
|
10
|
-
import {
|
|
9
|
+
import { ClassicDataSourceType, DataSourceType, PointCloudObjectMetadata } from '../../data-providers';
|
|
10
|
+
import { PointCloudAppearance, StyledPointCloudVolumeCollection } from '../../pointcloud-styling';
|
|
11
11
|
/**
|
|
12
12
|
* Represents a point clouds model loaded from CDF.
|
|
13
13
|
* @noInheritDoc
|
|
14
14
|
* @module @cognite/reveal
|
|
15
15
|
*/
|
|
16
|
-
export declare class CognitePointCloudModel {
|
|
16
|
+
export declare class CognitePointCloudModel<T extends DataSourceType = ClassicDataSourceType> {
|
|
17
17
|
readonly type: SupportedModelTypes;
|
|
18
|
+
/**
|
|
19
|
+
* The modelId of the point cloud model in Cognite Data Fusion. 0 if not applicable
|
|
20
|
+
* @deprecated Use modelIdentifier instead
|
|
21
|
+
*/
|
|
18
22
|
readonly modelId: number;
|
|
19
23
|
/**
|
|
20
|
-
* The
|
|
24
|
+
* The revisionId of the specific model revision in Cognite Data Fusion. 0 if not applicable
|
|
25
|
+
* @deprecated Use modelIdentifier instead
|
|
21
26
|
*/
|
|
22
27
|
readonly revisionId: number;
|
|
23
|
-
|
|
28
|
+
/**
|
|
29
|
+
* The identifier of this model
|
|
30
|
+
*/
|
|
31
|
+
readonly modelIdentifier: T['modelIdentifier'];
|
|
32
|
+
private readonly _styledVolumeCollections;
|
|
24
33
|
/**
|
|
25
34
|
* Used to clean up memory.
|
|
26
35
|
*/
|
|
@@ -190,19 +199,33 @@ export declare class CognitePointCloudModel {
|
|
|
190
199
|
* Gets the object collections that have been assigned a style
|
|
191
200
|
* @returns All object collections and their associated style
|
|
192
201
|
*/
|
|
193
|
-
get styledCollections():
|
|
202
|
+
get styledCollections(): StyledPointCloudVolumeCollection<T>[];
|
|
203
|
+
/**
|
|
204
|
+
* Gets array of stylable objects for the point cloud model.
|
|
205
|
+
* @returns All stylable objects for this model
|
|
206
|
+
* * @example
|
|
207
|
+
* ```js
|
|
208
|
+
* model.stylableObjects.forEach(pointCloudMetadata => console.log(pointCloudMetadata.annotationId));
|
|
209
|
+
* // or
|
|
210
|
+
* model.stylableObjects.forEach(pointCloudMetadata => {
|
|
211
|
+
* if (isDMPointCloudVolume(pointCloudMetadata))
|
|
212
|
+
* console.log(pointCloudMetadata.volumeInstanceRef);
|
|
213
|
+
* });
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
get stylableObjects(): PointCloudObjectMetadata<T>[];
|
|
194
217
|
/**
|
|
195
218
|
* Assign a style to a collection of objects. If the object collection has been assigned
|
|
196
219
|
* a style previously, the previous style will be replaced by the new one.
|
|
197
220
|
* @param objectCollection The object collection to assign a style to
|
|
198
221
|
* @param appearance The style to assign to the object collection
|
|
199
222
|
*/
|
|
200
|
-
assignStyledObjectCollection(objectCollection:
|
|
223
|
+
assignStyledObjectCollection(objectCollection: T['pointCloudCollectionType'], appearance: PointCloudAppearance): void;
|
|
201
224
|
/**
|
|
202
225
|
* Unassign style from an already styled object collection.
|
|
203
226
|
* @param objectCollection The object collection from which to remove the style
|
|
204
227
|
*/
|
|
205
|
-
unassignStyledObjectCollection(objectCollection:
|
|
228
|
+
unassignStyledObjectCollection(objectCollection: T['pointCloudCollectionType']): void;
|
|
206
229
|
/**
|
|
207
230
|
* Removes styling on all object collections in this model
|
|
208
231
|
*/
|
|
@@ -212,6 +235,7 @@ export declare class CognitePointCloudModel {
|
|
|
212
235
|
*/
|
|
213
236
|
get stylableObjectCount(): number;
|
|
214
237
|
/**
|
|
238
|
+
* @deprecated Use {@link CognitePointCloudModel.stylableObjects}
|
|
215
239
|
* Iterates through all stylable objects for this model
|
|
216
240
|
* @example
|
|
217
241
|
* ```js
|
|
@@ -220,5 +244,5 @@ export declare class CognitePointCloudModel {
|
|
|
220
244
|
* );
|
|
221
245
|
* ```
|
|
222
246
|
*/
|
|
223
|
-
traverseStylableObjects(callback: (annotationMetadata: PointCloudObjectMetadata) => void): void;
|
|
247
|
+
traverseStylableObjects(callback: (annotationMetadata: PointCloudObjectMetadata<T>) => void): void;
|
|
224
248
|
}
|
|
@@ -4,15 +4,17 @@
|
|
|
4
4
|
import { PointCloudNode } from './PointCloudNode';
|
|
5
5
|
import { PointCloudMetadata } from './PointCloudMetadata';
|
|
6
6
|
import { Potree } from './potree-three-loader';
|
|
7
|
-
import { PointCloudStylableObjectProvider } from '../../data-providers';
|
|
7
|
+
import { DMDataSourceType, DataSourceType, PointCloudStylableObjectProvider } from '../../data-providers';
|
|
8
8
|
import { IPointClassificationsProvider } from './classificationsProviders/IPointClassificationsProvider';
|
|
9
9
|
import { PointCloudMaterialManager } from '../../rendering';
|
|
10
|
+
import { ModelIdentifier } from '../../data-providers/src/ModelIdentifier';
|
|
10
11
|
export declare class PointCloudFactory {
|
|
11
12
|
private readonly _potreeInstance;
|
|
12
13
|
private readonly _pointCloudObjectProvider;
|
|
14
|
+
private readonly _pointCloudDMProvider;
|
|
13
15
|
private readonly _classificationsProvider;
|
|
14
16
|
private readonly _pointCloudMaterialManager;
|
|
15
|
-
constructor(potreeInstance: Potree, pointCloudObjectProvider: PointCloudStylableObjectProvider, classificationsProvider: IPointClassificationsProvider, pointCloudMaterialManager: PointCloudMaterialManager);
|
|
17
|
+
constructor(potreeInstance: Potree, pointCloudObjectProvider: PointCloudStylableObjectProvider, pointCloudDMProvider: PointCloudStylableObjectProvider<DMDataSourceType>, classificationsProvider: IPointClassificationsProvider, pointCloudMaterialManager: PointCloudMaterialManager);
|
|
16
18
|
dispose(): void;
|
|
17
|
-
createModel(modelMetadata: PointCloudMetadata): Promise<PointCloudNode
|
|
19
|
+
createModel<T extends DataSourceType>(identifier: T['modelIdentifier'], modelIdentifier: ModelIdentifier, modelMetadata: PointCloudMetadata): Promise<PointCloudNode<T>>;
|
|
18
20
|
}
|
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
import { AnnotationsAssetRef } from '@cognite/sdk';
|
|
5
5
|
import { CognitePointCloudModel } from './CognitePointCloudModel';
|
|
6
6
|
import type { Vector3 } from 'three';
|
|
7
|
-
|
|
7
|
+
import { ClassicDataSourceType, DataSourceType } from '../../data-providers';
|
|
8
|
+
/**
|
|
9
|
+
* An intersection with a point cloud model. Contains metadata of the first intersected volume, if any
|
|
10
|
+
*/
|
|
11
|
+
export type PointCloudIntersection<T extends DataSourceType = ClassicDataSourceType> = {
|
|
8
12
|
/**
|
|
9
13
|
* The intersection type.
|
|
10
14
|
*/
|
|
@@ -12,7 +16,7 @@ export type PointCloudIntersection = {
|
|
|
12
16
|
/**
|
|
13
17
|
* The model that was intersected.
|
|
14
18
|
*/
|
|
15
|
-
model: CognitePointCloudModel
|
|
19
|
+
model: CognitePointCloudModel<T>;
|
|
16
20
|
/**
|
|
17
21
|
* Coordinate of the intersection.
|
|
18
22
|
*/
|
|
@@ -27,10 +31,16 @@ export type PointCloudIntersection = {
|
|
|
27
31
|
distanceToCamera: number;
|
|
28
32
|
/**
|
|
29
33
|
* Annotation Id of the intersected object within a pointcloud. (0 if not applicable)
|
|
34
|
+
* @deprecated Use `volumeMetadata` instead
|
|
30
35
|
*/
|
|
31
36
|
annotationId: number;
|
|
32
37
|
/**
|
|
33
38
|
* Reference to the asset associated to the intersected point cloud object, if any.
|
|
39
|
+
* @deprecated use `volumeMetadata` instead
|
|
34
40
|
*/
|
|
35
41
|
assetRef?: AnnotationsAssetRef;
|
|
42
|
+
/**
|
|
43
|
+
* Point cloud volume reference associated with the intersected point cloud volume, if any.
|
|
44
|
+
*/
|
|
45
|
+
volumeMetadata?: T['pointCloudVolumeMetadata'];
|
|
36
46
|
};
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { LoadingState } from '../../model-base';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { PointCloudNode } from './PointCloudNode';
|
|
7
|
+
import { DataSourceType } from '../../data-providers';
|
|
7
8
|
/**
|
|
8
9
|
* Wrapper around Potree.Group with type information and
|
|
9
10
|
* basic functionality.
|
|
@@ -24,7 +25,7 @@ export declare class PointCloudLoadingStateHandler {
|
|
|
24
25
|
onModelRemoved(): void;
|
|
25
26
|
resetFrameStats(): void;
|
|
26
27
|
private createLoadingStateObservable;
|
|
27
|
-
updatePointBuffersHash(pointCloudNodes: PointCloudNode[]): void;
|
|
28
|
+
updatePointBuffersHash(pointCloudNodes: PointCloudNode<DataSourceType>[]): void;
|
|
28
29
|
/**
|
|
29
30
|
* Generates a hash for the current loaded points to allow determining if we have
|
|
30
31
|
* loaded data since last redraw.
|
|
@@ -8,7 +8,7 @@ import { PointCloudNode } from './PointCloudNode';
|
|
|
8
8
|
import { PointCloudMetadataRepository } from './PointCloudMetadataRepository';
|
|
9
9
|
import { Potree } from './potree-three-loader';
|
|
10
10
|
import { Observable } from 'rxjs';
|
|
11
|
-
import { ModelIdentifier } from '../../data-providers';
|
|
11
|
+
import { ModelIdentifier, AddModelOptionsWithModelRevisionId, DataSourceType } from '../../data-providers';
|
|
12
12
|
import { PointCloudMaterialManager } from '../../rendering';
|
|
13
13
|
import { Mesh } from 'three';
|
|
14
14
|
export declare class PointCloudManager {
|
|
@@ -34,8 +34,8 @@ export declare class PointCloudManager {
|
|
|
34
34
|
getLoadingStateObserver(): Observable<LoadingState>;
|
|
35
35
|
updatePointClouds(camera: THREE.PerspectiveCamera): void;
|
|
36
36
|
updateCamera(camera: THREE.PerspectiveCamera): void;
|
|
37
|
-
addModel(modelIdentifier: ModelIdentifier): Promise<PointCloudNode
|
|
38
|
-
removeModel(node: PointCloudNode): void;
|
|
37
|
+
addModel<T extends DataSourceType>(identifier: AddModelOptionsWithModelRevisionId<T>, modelIdentifier: ModelIdentifier): Promise<PointCloudNode<T>>;
|
|
38
|
+
removeModel<T extends DataSourceType>(node: PointCloudNode<T>): void;
|
|
39
39
|
dispose(): void;
|
|
40
40
|
private loadedModelsObservable;
|
|
41
41
|
createDrawResetTrigger(): Mesh;
|
|
@@ -5,10 +5,11 @@ import { CameraConfiguration } from '../../utilities';
|
|
|
5
5
|
import { ClassificationInfo, PointCloudOctree, PickPoint } from './potree-three-loader';
|
|
6
6
|
import { WellKnownAsprsPointClassCodes } from './types';
|
|
7
7
|
import { PointColorType, PointShape, PointSizeType } from '../../rendering';
|
|
8
|
-
import {
|
|
9
|
-
import { CompletePointCloudAppearance
|
|
8
|
+
import { DataSourceType, PointCloudObject, PointCloudObjectMetadata } from '../../data-providers';
|
|
9
|
+
import { CompletePointCloudAppearance } from '../../pointcloud-styling';
|
|
10
10
|
import { Matrix4, Group, Box3, Color, type Camera, type Plane, type Ray, type WebGLRenderer } from 'three';
|
|
11
|
-
|
|
11
|
+
import { StyledPointCloudVolumeCollection } from '../../pointcloud-styling';
|
|
12
|
+
export declare class PointCloudNode<T extends DataSourceType = DataSourceType> extends Group {
|
|
12
13
|
private readonly _cameraConfiguration?;
|
|
13
14
|
private readonly _octree;
|
|
14
15
|
private readonly _objectIdToAnnotationsMap;
|
|
@@ -18,7 +19,7 @@ export declare class PointCloudNode extends Group {
|
|
|
18
19
|
private readonly _modelIdentifier;
|
|
19
20
|
private readonly _sourceTransform;
|
|
20
21
|
private readonly _customTransform;
|
|
21
|
-
constructor(modelIdentifier: symbol, sourceTransform: Matrix4, octree: PointCloudOctree, annotations: PointCloudObject[], classificationInfo: ClassificationInfo, cameraConfiguration?: CameraConfiguration);
|
|
22
|
+
constructor(modelIdentifier: symbol, sourceTransform: Matrix4, octree: PointCloudOctree, annotations: PointCloudObject<T>[], classificationInfo: ClassificationInfo, cameraConfiguration?: CameraConfiguration);
|
|
22
23
|
get modelIdentifier(): symbol;
|
|
23
24
|
get octree(): PointCloudOctree;
|
|
24
25
|
get needsRedraw(): boolean;
|
|
@@ -78,13 +79,13 @@ export declare class PointCloudNode extends Group {
|
|
|
78
79
|
setModelTransformation(matrix: Matrix4): void;
|
|
79
80
|
getModelTransformation(out?: Matrix4): Matrix4;
|
|
80
81
|
getCdfToDefaultModelTransformation(out?: Matrix4): Matrix4;
|
|
81
|
-
get
|
|
82
|
-
getStylableObjectMetadata(objectId: number): PointCloudObjectMetadata | undefined;
|
|
82
|
+
get stylableVolumeMetadata(): Iterable<PointCloudObjectMetadata<T>>;
|
|
83
|
+
getStylableObjectMetadata(objectId: number): PointCloudObjectMetadata<T> | undefined;
|
|
83
84
|
get stylableObjectCount(): number;
|
|
84
85
|
get defaultAppearance(): CompletePointCloudAppearance;
|
|
85
86
|
set defaultAppearance(appearance: CompletePointCloudAppearance);
|
|
86
87
|
set clippingPlanes(clippingPlanes: Plane[]);
|
|
87
|
-
assignStyledPointCloudObjectCollection(styledCollection:
|
|
88
|
+
assignStyledPointCloudObjectCollection(styledCollection: StyledPointCloudVolumeCollection<T>): void;
|
|
88
89
|
removeAllStyledPointCloudObjects(): void;
|
|
89
90
|
dispose(): void;
|
|
90
91
|
}
|
|
@@ -4,37 +4,8 @@
|
|
|
4
4
|
import * as THREE from 'three';
|
|
5
5
|
import { IntersectInput } from '../../model-base';
|
|
6
6
|
import { PointCloudNode } from './PointCloudNode';
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Distance from camera to intersected point.
|
|
11
|
-
*/
|
|
12
|
-
distance: number;
|
|
13
|
-
/**
|
|
14
|
-
* Coordinate of the intersected point.
|
|
15
|
-
*/
|
|
16
|
-
point: THREE.Vector3;
|
|
17
|
-
/**
|
|
18
|
-
* Point index in the point cloud of the intersected point.
|
|
19
|
-
*/
|
|
20
|
-
pointIndex: number;
|
|
21
|
-
/**
|
|
22
|
-
* Point cloud node defining what model the point is a part of.
|
|
23
|
-
*/
|
|
24
|
-
pointCloudNode: PointCloudNode;
|
|
25
|
-
/**
|
|
26
|
-
* The geometry object that was intersected.
|
|
27
|
-
*/
|
|
28
|
-
object: THREE.Object3D;
|
|
29
|
-
/**
|
|
30
|
-
* annotationId of the clicked object within a pointcloud.
|
|
31
|
-
*/
|
|
32
|
-
annotationId: number;
|
|
33
|
-
/**
|
|
34
|
-
* asset reference of the clicked object in the pointcloud, if any.
|
|
35
|
-
*/
|
|
36
|
-
assetRef?: AnnotationsAssetRef;
|
|
37
|
-
}
|
|
7
|
+
import { DataSourceType } from '../../data-providers';
|
|
8
|
+
import { IntersectPointCloudNodeResult } from './types';
|
|
38
9
|
export declare class PointCloudPickingHandler {
|
|
39
10
|
private readonly _normalized;
|
|
40
11
|
private readonly _raycaster;
|
|
@@ -42,5 +13,5 @@ export declare class PointCloudPickingHandler {
|
|
|
42
13
|
private static readonly PickingWindowSize;
|
|
43
14
|
constructor(renderer: THREE.WebGLRenderer);
|
|
44
15
|
dispose(): void;
|
|
45
|
-
intersectPointClouds(nodes: PointCloudNode[], input: IntersectInput): IntersectPointCloudNodeResult[];
|
|
16
|
+
intersectPointClouds(nodes: PointCloudNode<DataSourceType>[], input: IntersectInput): IntersectPointCloudNodeResult<DataSourceType>[];
|
|
46
17
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { PointCloudManager } from './PointCloudManager';
|
|
5
5
|
import * as THREE from 'three';
|
|
6
|
-
import { ModelDataProvider, ModelMetadataProvider, PointCloudStylableObjectProvider } from '../../data-providers';
|
|
6
|
+
import { DMDataSourceType, ModelDataProvider, ModelMetadataProvider, PointCloudStylableObjectProvider } from '../../data-providers';
|
|
7
7
|
import { IPointClassificationsProvider } from './classificationsProviders/IPointClassificationsProvider';
|
|
8
8
|
import { PointCloudMaterialManager } from '../../rendering';
|
|
9
|
-
export declare function createPointCloudManager(modelMetadataProvider: ModelMetadataProvider, modelDataProvider: ModelDataProvider, pointCloudStylableObjectProvider: PointCloudStylableObjectProvider, classificationsProvider: IPointClassificationsProvider, pointCloudMaterialManager: PointCloudMaterialManager, scene: THREE.Scene, renderer: THREE.WebGLRenderer): PointCloudManager;
|
|
9
|
+
export declare function createPointCloudManager(modelMetadataProvider: ModelMetadataProvider, modelDataProvider: ModelDataProvider, pointCloudStylableObjectProvider: PointCloudStylableObjectProvider, classificationsProvider: IPointClassificationsProvider, pointCloudDMProvider: PointCloudStylableObjectProvider<DMDataSourceType>, pointCloudMaterialManager: PointCloudMaterialManager, scene: THREE.Scene, renderer: THREE.WebGLRenderer): PointCloudManager;
|
|
@@ -4,7 +4,7 @@ import { PointCloudOctree } from './tree/PointCloudOctree';
|
|
|
4
4
|
import { IPotree } from './types/IPotree';
|
|
5
5
|
import { IPointCloudTreeNodeBase } from './tree/IPointCloudTreeNodeBase';
|
|
6
6
|
import { LRU } from './utils/lru';
|
|
7
|
-
import { ModelDataProvider,
|
|
7
|
+
import { ModelDataProvider, StylableObject } from '../../../data-providers';
|
|
8
8
|
export declare class QueueItem {
|
|
9
9
|
pointCloudIndex: number;
|
|
10
10
|
weight: number;
|
|
@@ -23,7 +23,7 @@ export declare class Potree implements IPotree {
|
|
|
23
23
|
lru: LRU;
|
|
24
24
|
constructor(modelDataProvider: ModelDataProvider, pointCloudMaterialManager: PointCloudMaterialManager);
|
|
25
25
|
reset(): void;
|
|
26
|
-
loadPointCloud(baseUrl: string, fileName: string,
|
|
26
|
+
loadPointCloud(baseUrl: string, fileName: string, stylableObject: StylableObject[], modelIdentifier: symbol): Promise<PointCloudOctree>;
|
|
27
27
|
updatePointClouds(pointClouds: PointCloudOctree[], camera: Camera, renderer: WebGLRenderer): void;
|
|
28
28
|
set shouldLoad(value: boolean);
|
|
29
29
|
private innerUpdatePointClouds;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModelDataProvider,
|
|
1
|
+
import { ModelDataProvider, StylableObject } from '../../../../data-providers';
|
|
2
2
|
import { PointCloudEptGeometry } from '../geometry/PointCloudEptGeometry';
|
|
3
3
|
export declare class EptLoader {
|
|
4
|
-
static load(baseUrl: string, fileName: string, modelDataProvider: ModelDataProvider,
|
|
4
|
+
static load(baseUrl: string, fileName: string, modelDataProvider: ModelDataProvider, stylableObjects: StylableObject[]): Promise<PointCloudEptGeometry>;
|
|
5
5
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Camera, WebGLRenderer } from 'three';
|
|
2
2
|
import { LRU } from '../utils/lru';
|
|
3
3
|
import { PointCloudOctree } from '../tree/PointCloudOctree';
|
|
4
|
-
import {
|
|
4
|
+
import { StylableObject } from '../../../../data-providers';
|
|
5
5
|
export interface IPotree {
|
|
6
6
|
pointBudget: number;
|
|
7
7
|
maxNumNodesLoading: number;
|
|
8
8
|
lru: LRU;
|
|
9
|
-
loadPointCloud(baseUrl: string, fileName: string,
|
|
9
|
+
loadPointCloud(baseUrl: string, fileName: string, stylableObject: StylableObject[], modelIdentifier: symbol): Promise<PointCloudOctree>;
|
|
10
10
|
updatePointClouds(pointClouds: PointCloudOctree[], camera: Camera, renderer: WebGLRenderer): void;
|
|
11
11
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
-
import { PointCloudObject } from '../../../../data-providers';
|
|
4
|
+
import { PointCloudObject, DataSourceType } from '../../../../data-providers';
|
|
5
5
|
import { PointCloudObjectIdMaps } from '../../../../rendering';
|
|
6
|
-
export declare function createObjectIdMaps(objects: PointCloudObject[]): PointCloudObjectIdMaps;
|
|
6
|
+
export declare function createObjectIdMaps<T extends DataSourceType>(objects: PointCloudObject<T>[]): PointCloudObjectIdMaps;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 Cognite AS
|
|
3
|
+
*/
|
|
4
|
+
import { ClassicDataSourceType, DataSourceType, DMDataSourceType } from '../../data-providers';
|
|
5
|
+
import { CognitePointCloudModel } from './CognitePointCloudModel';
|
|
6
|
+
/**
|
|
7
|
+
* Type guard to check if a point cloud model is DMDataSourceType type.
|
|
8
|
+
* @param model - The object to check.
|
|
9
|
+
* @returns True if the object is of type `CognitePointCloudModel<DMDataSourceType>`, false otherwise.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isDMPointCloudModel(model: CognitePointCloudModel<DataSourceType>): model is CognitePointCloudModel<DMDataSourceType>;
|
|
12
|
+
/**
|
|
13
|
+
* Type guard to check if a point cloud model is ClassicDataSourceType type.
|
|
14
|
+
* @param model - The object to check.
|
|
15
|
+
* @returns True if the object is of type `CognitePointCloudModel<ClassicDataSourceType>`, false otherwise.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isClassicPointCloudModel(model: CognitePointCloudModel<DataSourceType>): model is CognitePointCloudModel<ClassicDataSourceType>;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2021 Cognite AS
|
|
3
3
|
*/
|
|
4
|
+
import { Object3D, Vector3 } from 'three';
|
|
5
|
+
import { PointCloudNode } from './PointCloudNode';
|
|
6
|
+
import { DataSourceType } from '../../data-providers';
|
|
4
7
|
/**
|
|
5
8
|
* ASPRS well known point class types.
|
|
6
9
|
* @see {@link http://www.asprs.org/wp-content/uploads/2019/03/LAS_1_4_r14.pdf} (page 30)
|
|
@@ -77,3 +80,29 @@ export declare enum WellKnownAsprsPointClassCodes {
|
|
|
77
80
|
*/
|
|
78
81
|
TemporalExclusion = 22
|
|
79
82
|
}
|
|
83
|
+
export type IntersectPointCloudNodeResult<T extends DataSourceType> = {
|
|
84
|
+
/**
|
|
85
|
+
* Distance from camera to intersected point.
|
|
86
|
+
*/
|
|
87
|
+
distance: number;
|
|
88
|
+
/**
|
|
89
|
+
* Coordinate of the intersected point.
|
|
90
|
+
*/
|
|
91
|
+
point: Vector3;
|
|
92
|
+
/**
|
|
93
|
+
* Point index in the point cloud of the intersected point.
|
|
94
|
+
*/
|
|
95
|
+
pointIndex: number;
|
|
96
|
+
/**
|
|
97
|
+
* Point cloud node defining what model the point is a part of.
|
|
98
|
+
*/
|
|
99
|
+
pointCloudNode: PointCloudNode<T>;
|
|
100
|
+
/**
|
|
101
|
+
* The geometry object that was intersected.
|
|
102
|
+
*/
|
|
103
|
+
object: Object3D;
|
|
104
|
+
/**
|
|
105
|
+
* Volume metadata, e.g. asset reference
|
|
106
|
+
*/
|
|
107
|
+
volumeMetadata?: T['pointCloudVolumeMetadata'];
|
|
108
|
+
};
|
package/dist/packages/rendering/src/pointcloud-rendering/PointCloudObjectAppearanceTexture.d.ts
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
4
|
import * as THREE from 'three';
|
|
5
|
-
import {
|
|
5
|
+
import { PointCloudAnnotationVolumeCollection, CompletePointCloudAppearance, StyledPointCloudVolumeCollection } from '../../../pointcloud-styling';
|
|
6
6
|
import { PointCloudObjectIdMaps } from './PointCloudObjectIdMaps';
|
|
7
|
+
import { DataSourceType } from '../../../data-providers';
|
|
7
8
|
export declare class PointCloudObjectAppearanceTexture {
|
|
8
9
|
private readonly _objectStyleTexture;
|
|
9
10
|
private _needsReconstruction;
|
|
@@ -19,8 +20,8 @@ export declare class PointCloudObjectAppearanceTexture {
|
|
|
19
20
|
private setObjectCollectionStyle;
|
|
20
21
|
private resetTexture;
|
|
21
22
|
onBeforeRender(): void;
|
|
22
|
-
assignStyledObjectSet(styledCollection:
|
|
23
|
-
removeStyledObjectSet(collection:
|
|
23
|
+
assignStyledObjectSet(styledCollection: StyledPointCloudVolumeCollection<DataSourceType>): void;
|
|
24
|
+
removeStyledObjectSet(collection: PointCloudAnnotationVolumeCollection): void;
|
|
24
25
|
removeAllStyledObjectSets(): void;
|
|
25
26
|
set defaultAppearance(appearance: CompletePointCloudAppearance);
|
|
26
27
|
get defaultAppearance(): CompletePointCloudAppearance;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Copyright 2022 Cognite AS
|
|
3
3
|
*/
|
|
4
|
+
import { DMInstanceRef } from '../../../data-providers';
|
|
4
5
|
export type PointCloudObjectIdMaps = {
|
|
5
|
-
annotationToObjectIds: Map<number, number>;
|
|
6
|
-
objectToAnnotationIds: Map<number, number>;
|
|
6
|
+
annotationToObjectIds: Map<number | DMInstanceRef, number>;
|
|
7
|
+
objectToAnnotationIds: Map<number, number | DMInstanceRef>;
|
|
7
8
|
};
|