import PointCloudClassBreaksRenderer from "@arcgis/core/renderers/PointCloudClassBreaksRenderer.js";const PointCloudClassBreaksRenderer = await $arcgis.import("@arcgis/core/renderers/PointCloudClassBreaksRenderer.js");- Inheritance:
- PointCloudClassBreaksRenderer→
PointCloudRenderer→ Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.2
This class defines the color of each point in a PointCloudLayer based on the value of a numeric attribute. Colors are assigned based on classes or ranges of data. Each point is assigned a symbol based on the class break in which the value of the attribute falls.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
ColorClassBreakInfo[] | null | undefined | | |
colorModulation inherited | ||
declaredClass readonly inherited | ||
| | ||
| | ||
| | ||
pointSizeAlgorithm inherited | ||
pointsPerInch inherited | ||
type readonly | "point-cloud-class-breaks" | |
colorClassBreakInfos
- Type
- ColorClassBreakInfo[] | null | undefined
Each element in the array is an object that provides information about a class break associated with the renderer. Each object has the following specification:
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.
fieldTransformType
- Type
- FieldTransformType | null | undefined
A transform that is applied to the field value before evaluating the renderer.
legendOptions
- Type
- RendererLegendOptions | null | undefined
- Since
- ArcGIS Maps SDK for JavaScript 4.6
An object providing options for displaying the renderer in the Legend.
Example
renderer.legendOptions = { title: "Density", order: "descending-values",}; 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 (): PointCloudClassBreaksRenderer
Creates a deep clone of the renderer.
- Returns
- PointCloudClassBreaksRenderer
A deep clone of the object that invoked this method.
Example
// Creates a deep clone of the first layer's rendererlet renderer = view.map.layers.at(0).renderer.clone(); 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.