S3M instantiates the 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 or set the sub-object filtering mode
-
Get or set the filter pixel size, the pixel size filter threshold of the sub-object projection screen
-
Get all the model groups of the layer.
-
Get or set the model to always be displayed at the top of the screen and support selection. The default value is false.
-
Default Value:
false
-
Get or set the maximum visible height of the layer
-
Get or set the maximum visible distance of the layer
-
Gets or sets the minimum visible height of the layer.
-
Gets or sets the minimum visible distance of the layer.
-
Get or set the model matrix of the layer, and set the translation, rotation, and zoom parameters.
-
shadowType : ShadowType
-
Get or set the shadow mode. The default value is NONE.
-
Default Value:
NONE
-
Get the ID of the layer type.
-
Get or set the visibility of this layer.
Methods
-
Add one or a group of instances.
Name Type Default Description url
String optional Model url. attrs
Object | Array optional Instance attribute or collection of instance attributes. Name Type Default Description position
Cartesian3 optional World location. color
Color Color.WHITE
optional Colour. scale
Cartesian3 new Cartesian3(1,1,1)
optional xyz zoom. offset
Cartesian3 new Cartesian3(0,0,0)
optional The center point offset position. hpr
HeadingPitchRoll new HeadingPitchRoll()
optional Spin. data
Blob | ArrayBuffer | Object optional Streaming data streamBytes
Boolean true
optional Whether to intercept the first four bytes. -
Obtain the instance object S3MInstance by ID.
Name Type Description url
String The url of the instance object. id
Number The id of the instance object -
Get the object where the specified split screen window is located.
Name Type Description index
Number The viewport index value, the range is 0~3. Returns:
visible Viewport visibility. -
Remove all instance objects corresponding to url.
Name Type Description url
String The url of the model. Returns:
Whether the removal is successful, the removal is successful when the value is true, and the removal fails when the value is false. -
Remove the instance object corresponding to the id specified by the url model.
Name Type Description url
String The url of the model. ids
Array List of instance object ids. Returns:
Whether the removal is successful, the removal is successful when the value is true, and the removal fails when the value is false. -
Set up single-sided rendering.
Name Type Description instancePath
String Is the address of the instantiated model. -
Set up single-sided rendering.
Name Type Description url
String The url of the model. cullFace
boolean Whether to enable single-sided rendering. -
Instanced collection supports setting of PBR material
Name Type Description instancePath
String Model address. jsonPath
String JSON file address. -
Cancel the selected state of all instances.
-
Set which split screen window the object is displayed in.
Name Type Description index
Number The viewport index value, the range is 0~3. visible
boolean Viewport visibility. -
Do not call this function directly.
Name Type Description frameState