require(["esri/views/3d/analysis/SliceAnalysisView3D"], (SliceAnalysisView3D) => { /* code goes here */ });
import SliceAnalysisView3D from "@arcgis/core/views/3d/analysis/SliceAnalysisView3D.js";
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 sliceAnalysis = new SliceAnalysis();
view.analyses.add(sliceAnalysis); // add to the scene view
const sliceAnalysisView = await view.whenAnalysisView(sliceAnalysis);
Property Overview
Name | Type | Summary | Class |
---|---|---|---|
Only one SliceAnalysis at a time can be active in a SceneView. | SliceAnalysisView3D | ||
The slice analysis object associated with the analysis view. | SliceAnalysisView3D | ||
Set to | SliceAnalysisView3D | ||
For SliceAnalysisView3D the type is always "slice-view-3d". | SliceAnalysisView3D | ||
When | SliceAnalysisView3D |
Property Details
-
active
active Boolean
-
Only one SliceAnalysis at a time can be active in a SceneView. When a slice analysis view is activated by setting this property to
true
, all other slice analysis views are automatically deactivated.- Default Value:true
-
analysis
analysis SliceAnalysisreadonly
-
The slice analysis object associated with the analysis view.
-
interactive
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
type Stringreadonly
-
For SliceAnalysisView3D the type is always "slice-view-3d".
-
visible
visible Boolean
-
When
true
, the analysis is visualized in the view.