import PointCloudRenderer from "@arcgis/core/renderers/PointCloudRenderer.js";const PointCloudRenderer = await $arcgis.import("@arcgis/core/renderers/PointCloudRenderer.js");- Inheritance:
- PointCloudRenderer→
Accessor
- Subclasses:
- PointCloudClassBreaksRenderer, PointCloudRGBRenderer, PointCloudStretchRenderer, PointCloudUniqueValueRenderer
- Since
- ArcGIS Maps SDK for JavaScript 4.2
A PointCloudRenderer allows you to specify how points in a PointCloudLayer are rendered. Because PointCloudLayers are designed to render millions of points, the point cloud renderers are much simpler than other Renderer classes.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
| | ||
declaredClass readonly inherited | ||
| | ||
| | ||
type readonly | |
colorModulation
- Type
- ColorModulation
- Since
- ArcGIS Maps SDK for JavaScript 4.4
Reduces the brightness of the point's color, based on the value of another field, usually intensity.
High values leave the color unchanged, while low values darken the color of the point. This helps to
display the scanned surface in a more realistic way.
pointSizeAlgorithm
Specifies how the size of the points in the point cloud is computed for rendering.
The splat algorithm automatically computes a size based on the density, which varies with the Level of Detail that is currently displayed.
The fixed size algorithm displays all points with the same size, either in screen space or real world units.
When pointSizeAlgorithm is not set, the default is splat.
pointsPerInch
- Type
- number
The number of points to draw per display inch. This property determines the level of detail in the visualization.
- Default value
- 10
Methods
fromJSON
- Signature
-
fromJSON (json: any): any
Creates a new instance of this class and initializes it with values from a JSON object
generated from an ArcGIS product. The object passed into the input json
parameter often comes from a response to a query operation in the REST API or a
toJSON()
method from another ArcGIS product. See the Using fromJSON()
topic in the Guide for details and examples of when and how to use this function.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| json | A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects. | |
- Returns
- any
Returns a new instance of this class.
clone
- Signature
-
clone (): PointCloudRenderer
Creates a deep clone of the renderer.
- Returns
- PointCloudRenderer
A deep clone of the object that invoked this method.
toJSON
- Signature
-
toJSON (): any
Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.
- Returns
- any
The ArcGIS portal JSON representation of an instance of this class.