Skip To ContentArcGIS for DevelopersSign In Dashboard

SceneModifications

require(["esri/layers/support/SceneModifications"], function(SceneModifications) { /* code goes here */ });
Class: esri/layers/support/SceneModifications
Inheritance: SceneModifications Accessor
Since: ArcGIS API for JavaScript 4.16

A collection of SceneModification with polygons and types to apply client-side modifications. The SceneModifications could be applied to the IntegratedMeshLayer.modifications property.

See also:

Constructors

new SceneModifications(properties)
Parameter:
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
NameTypeSummaryClass
String

The name of the class.

more details
more detailsAccessor

Property Details

declaredClass Stringreadonly inherited

The name of the class. The declared class name is formatted as esri.folder.className.

Method Overview

NameReturn TypeSummaryClass
SceneModifications

Creates a clone of this object.

more details
more detailsSceneModifications
*

Creates a new instance of this class and initializes it with values from a JSON object generated from a product in the ArcGIS platform.

more details
more detailsSceneModifications
Boolean

Determines whether the passed value is a Collection.

more details
more detailsSceneModifications
Object

Creates a subclass of Collection containing a typed object.

more details
more detailsSceneModifications
Object

Converts an instance of this class to its ArcGIS portal JSON representation.

more details
more detailsSceneModifications

Method Details

Creates a clone of this object.

Returns:
TypeDescription
SceneModificationsA clone of the SceneModifications instance that invoked this method.
fromJSON(json){*}static

Creates a new instance of this class and initializes it with values from a JSON object generated from a product in the ArcGIS platform. 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.

Parameter:
json Object

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:
TypeDescription
*Returns a new instance of this class.
isCollection(value){Boolean}

Determines whether the passed value is a Collection.

Parameter:
value *

The value to be checked.

Returns:
TypeDescription
Booleantrue if the test passes, false otherwise.
ofType(type){Object}

Creates a subclass of Collection containing a typed object.

Parameter:
type Object

The type to assign the Collection.

Returns:
TypeDescription
ObjectThe typed collection.
Example:
require(["esri/core/Collection", "esri/geometry/Point"],
  function(Collection, Point){
    var PointCollection = Collection.ofType(Point);
    var collection = new PointCollection();
    collection.add([-100,40]);
    var point = collection.getItemAt(0);
    // point.x = -100; point.y = 40
});
toJSON(){Object}

Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.

Returns:
TypeDescription
ObjectThe ArcGIS portal JSON representation of an instance of this class.

API Reference search results

NameTypeModule
Loading...