com.supermap.ar.areffect.loader

Class ModelGroupScene



  • public class ModelGroupScene
    extends ArSceneLoader
    Model group scenario

    often used to batch load models in a specified folder

    • 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 -