SliceAnalysisView3D

AMD: require(["esri/views/3d/analysis/SliceAnalysisView3D"], (SliceAnalysisView3D) => { /* code goes here */ });
ESM: import SliceAnalysisView3D from "@arcgis/core/views/3d/analysis/SliceAnalysisView3D.js";
Class: esri/views/3d/analysis/SliceAnalysisView3D

Represents the analysis view of a SliceAnalysis after it has been added to SceneView.analyses.

The SliceAnalysisView3D is responsible for rendering a SliceAnalysis using custom visualizations. While multiple SliceAnalysis can be added to SceneView.analyses, only one SliceAnalysis can be actively slicing the scene. The SliceAnalysis which is currently actively slicing the scene can be controlled by setting the active property on its analysis view to true.

The view for an analysis can be retrieved using SceneView.whenAnalysisView similar to how layer views are retrieved for layers using SceneView.whenLayerView.

// retrieve analysis view for analysis
const analysis = new SliceAnalysis();
sceneView.analyses.add(analysis); // add to the scene view
const analysisView = await view.whenAnalysisView(analysis);

Property Overview

Name Type Summary Class

Only one SliceAnalysis at a time can be active in a SceneView.

SliceAnalysisView3D

The direct line measurement analysis object associated with the analysis view.

SliceAnalysisView3D

Set to true to enable interactivity for the associated SliceAnalysis.

SliceAnalysisView3D
For SliceAnalysisView3D the type is always "slice-view-3d". SliceAnalysisView3D

When true, the analysis is visualized in the view.

SliceAnalysisView3D

Property Details

active

Property
active Boolean

Only one SliceAnalysis at a time can be active in a SceneView. When a slice view is activated by setting this property to true, all other slice views are automatically deactivated.

Default Value:true

analysis

Property
analysis SliceAnalysisreadonly

The direct line measurement analysis object associated with the analysis view.

interactive

Property
interactive Boolean

Set to true to enable interactivity for the associated SliceAnalysis. If the analysis has a valid shape defined, then manipulators will be shown which the user can click and drag in order to edit the analysis.

This property will be overridden to true while the analysis is assigned to a SliceViewModel.

Default Value:false

type

Property
type Stringreadonly

For SliceAnalysisView3D the type is always "slice-view-3d".

visible

Property
visible Boolean

When true, the analysis is visualized in the view.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.