S3M instantiated model collection class.
| Name | Type | Description |
|---|---|---|
context |
Context | Object. |
Members
-
Gets or sets whether the layer is attached to the object. The default value is false.
-
Get all the model groups for this layer.
-
Gets or sets the maximum visible height of the layer
-
Get or set the maximum visible distance of the layer
-
Get the layer type identifier.
-
Gets or sets the visibility of this layer.
Methods
-
Add one or a set of instances.
Name Type Default Description urlString optional Model url. attrsObject | Array optional Instance property or instance property collection. Name Type Default Description positionCartesian3 optional World location. colorColor Color.WHITEoptional colour. scaleCartesian3 new Cartesian3(1,1,1)optional xyz scaling. offsetCartesian3 new Cartesian3(0,0,0)optional Center point offset position. hprHeadingPitchRoll new HeadingPitchRoll()optional Rotate. dataBlob | ArrayBuffer | Object optional Stream data streamBytesBoolean trueoptional Whether to intercept the first four bytes. -
The instance object S3MInstance is obtained by ID.
Name Type Description urlString The url of the instance object. idNumber The id of the instance object Returns:
Whether the removal is successful, the value is true, the removal is successful, and the value is false, the removal fails. -
Gets the object where the specified split screen window is located.
Name Type Description indexNumber Viewport index value, which ranges from 0 to 3. Returns:
Visible Viewport visibility. -
Remove all instance objects corresponding to the url.
Name Type Description urlString The url of the model. Returns:
Whether the removal is successful, the value is true, the removal is successful, and the value is false, the removal fails. -
Remove the instance object corresponding to the id specified by the url model.
Name Type Description urlString The url of the model. idsArray List of instance object ids. Returns:
Whether the removal is successful, the value is true, the removal is successful, and the value is false, the removal fails. -
Set up single-sided rendering.
Name Type Description urlString The url of the model. cullFaceboolean Whether to enable single-sided rendering. -
Cancel the selected state of all instances.
-
Set which split screen window the object is displayed in.
Name Type Description indexNumber Viewport index value, which ranges from 0 to 3. visibleboolean Viewport visibility. -
Do not call this function directly.
Name Type Description frameState
