Class: Cognite3DViewer
Constructors
new Cognite3DViewer()
new Cognite3DViewer(
options
):Cognite3DViewer
Parameters
• options: Cognite3DViewerOptions
Returns
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:259
Accessors
cadBudget
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.
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
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:213
cameraManager
get
cameraManager():CameraManager
Returns
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:664
canvas
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:125
domElement
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:135
models
get
models():CogniteModel
[]
Gets a list of models currently added to the viewer.
Returns
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:248
pointCloudBudget
get
pointCloudBudget():PointCloudBudget
Returns the point cloud budget. The budget is shared between all loaded point cloud models.
set
pointCloudBudget(budget
):void
Sets the point cloud budget. The budget is shared between all loaded point cloud models.
Parameters
• budget: PointCloudBudget
Returns
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:233
renderParameters
get
renderParameters():RenderParameters
Returns parameters of THREE.WebGLRenderer used by the viewer.
Returns
Defined in
packages/api/src/public/migration/Cognite3DViewer.ts:142
Methods
add360ImageSet()
add360ImageSet(datasource, dataModelIdentifier)
add360ImageSet(
datasource
,dataModelIdentifier
):Promise
<Image360Collection
>
Adds a set of 360 images to the scene from the /datamodels API in Cognite Data Fusion.