Class: Cognite3DViewer<DataSourceT>
Type Parameters
• DataSourceT extends DataSourceType
= ClassicDataSourceType
Constructors
new Cognite3DViewer()
new Cognite3DViewer<
DataSourceT
>(options
):Cognite3DViewer
<DataSourceT
>
Parameters
• options: Cognite3DViewerOptions
Returns
Cognite3DViewer
<DataSourceT
>
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:266
Accessors
cadBudget
Get Signature
get cadBudget():
CadModelBudget
Gets the current budget for downloading geometry for CAD models. Note that this budget is shared between all added CAD models and not a per-model budget.
Returns
Set Signature
set cadBudget(
budget
):void
Sets the current budget for downloading geometry for CAD models. Note that this budget is shared between all added CAD models and not a per-model budget.
Parameters
• budget: CadModelBudget
Returns
void
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:220
cameraManager
Get Signature
get cameraManager():
CameraManager
Returns
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:672
canvas
Get Signature
get canvas():
HTMLCanvasElement
Returns the rendering canvas, the DOM element where the renderer draws its output.
Returns
HTMLCanvasElement
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:132
domElement
Get Signature
get domElement():
HTMLElement
The DOM element the viewer will insert its rendering canvas into. The DOM element can be specified in the options when the viewer is created. If not specified, the DOM element will be created automatically. The DOM element cannot be changed after the viewer has been created.
Returns
HTMLElement
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:142
models
Get Signature
get models():
CogniteModel
<DataSourceT
>[]
Gets a list of models currently added to the viewer.
Returns
CogniteModel
<DataSourceT
>[]
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:255
pointCloudBudget
Get Signature
get pointCloudBudget():
PointCloudBudget
Returns the point cloud budget. The budget is shared between all loaded point cloud models.
Returns
Set Signature
set pointCloudBudget(
budget
):void
Sets the point cloud budget. The budget is shared between all loaded point cloud models.
Parameters
• budget: PointCloudBudget
Returns
void
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:240
renderParameters
Get Signature
get renderParameters():
RenderParameters
Returns parameters of THREE.WebGLRenderer used by the viewer.
Returns
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:149
Methods
add360ImageSet()
add360ImageSet(datasource, dataModelIdentifier)
add360ImageSet(
datasource
,dataModelIdentifier
):Promise
<Image360Collection
<DataSourceT
&ClassicDataSourceType
>>
Adds a set of 360 images to the scene from the /datamodels API in Cognite Data Fusion.
Parameters
• datasource: "datamodels"
The data data source which holds the references to the 360 image sets.
• dataModelIdentifier: Image360DataModelIdentifier
The search parameters to apply when querying Cognite Datamodels that contains the 360 images.
Returns
Promise
<Image360Collection
<DataSourceT
& ClassicDataSourceType
>>