com.supermap.ar.areffect.loader
Class ModelGroupScene
- java.lang.Object
-
- com.supermap.ar.areffect.loader.ArSceneLoader
-
- com.supermap.ar.areffect.loader.ModelGroupScene
-
public class ModelGroupScene extends ArSceneLoader
Model group scenariooften used to batch load models in a specified folder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static interfaceModelGroupScene.OnClickListenerClick on the event
-
Constructor Summary
Constructors Constructor and Description ModelGroupScene(AREffectElement element)The constructorModelGroupScene(EffectView arEffectView)The constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanisOnClickEnabled()Determine the enabled status of the model click eventvoidloadModelFolder(java.lang.String resourcePath, java.lang.String format, ErrorCallback callback)Batch loads the model for the specified foldervoidsetOnClickEnabled(boolean onClickEnabled)Sets the enabled state of the model click eventvoidsetOnClickListener(ModelGroupScene.OnClickListener onClickListener)Set the click-listen eventvoidsetVisiblity(boolean visiblity)Control scenarios are explicit and hiddenvoidunSelectAll()Uncheck all child elements-
Methods inherited from class com.supermap.ar.areffect.loader.ArSceneLoader
clear, getAbsolutePath, getAnchorNodeList, getContext, getSceneElement, setAbsolutePath, updateScenePosition, updateSceneRotation, updateSceneScale
-
-
-
-
Constructor Detail
-
ModelGroupScene
public ModelGroupScene(EffectView arEffectView)
The constructor- Parameters:
arEffectView-
-
ModelGroupScene
public ModelGroupScene(AREffectElement element)
The constructor- Parameters:
element-
-
-
Method Detail
-
setOnClickListener
public void setOnClickListener(ModelGroupScene.OnClickListener onClickListener)
Set the click-listen event- Parameters:
onClickListener-
-
isOnClickEnabled
public boolean isOnClickEnabled()
Determine the enabled status of the model click event- Returns:
-
setOnClickEnabled
public void setOnClickEnabled(boolean onClickEnabled)
Sets the enabled state of the model click event- Parameters:
onClickEnabled-
-
loadModelFolder
public void loadModelFolder(java.lang.String resourcePath, java.lang.String format, ErrorCallback callback)Batch loads the model for the specified folder- Parameters:
resourcePath-format- gltf2.0The suffix format of the model,"GLB"or"GLTF"callback-
-
unSelectAll
public void unSelectAll()
Uncheck all child elements
-
setVisiblity
public void setVisiblity(boolean visiblity)
Control scenarios are explicit and hidden- Parameters:
visiblity-
-
-