com.supermap.ar.areffect.loader
Class ArSceneLoader
- java.lang.Object
-
- com.supermap.ar.areffect.loader.ArSceneLoader
-
- Direct Known Subclasses:
- ModelGroupScene
public class ArSceneLoader extends java.lang.ObjectAR scene loader Scenes of each floor, sand table, pipeline, etc
-
-
Constructor Summary
Constructors Constructor and Description ArSceneLoader(AREffectElement parent)Location of the constructor parentArSceneLoader(EffectView arEffectView)The constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclear()Empty scenejava.lang.StringgetAbsolutePath()get pathjava.util.List<AnchorNode>getAnchorNodeList()Gets all the anchor nodes in the scenarioandroid.content.ContextgetContext()Get contextAREffectElementgetSceneElement()Gets the scene node elementvoidsetAbsolutePath(java.lang.String rootPath)set pathvoidupdateScenePosition(Point3D position)Sets the base parent node locationvoidupdateSceneRotation(Quaternion rotation)Setting the parent nodevoidupdateSceneScale(float scale)Update scene ratio
-
-
-
Constructor Detail
-
ArSceneLoader
public ArSceneLoader(EffectView arEffectView)
The constructor- Parameters:
arEffectView-
-
ArSceneLoader
public ArSceneLoader(AREffectElement parent)
Location of the constructor parent- Parameters:
parent-
-
-
Method Detail
-
updateScenePosition
public void updateScenePosition(Point3D position)
Sets the base parent node location- Parameters:
position-
-
updateSceneRotation
public void updateSceneRotation(Quaternion rotation)
Setting the parent node- Parameters:
rotation-
-
updateSceneScale
public void updateSceneScale(float scale)
Update scene ratio- Parameters:
scale-
-
getSceneElement
public AREffectElement getSceneElement()
Gets the scene node element- Returns:
-
clear
public void clear()
Empty scene
-
getAnchorNodeList
public java.util.List<AnchorNode> getAnchorNodeList()
Gets all the anchor nodes in the scenario- Returns:
-
getContext
public android.content.Context getContext()
Get context- Returns:
-
getAbsolutePath
public java.lang.String getAbsolutePath()
get path- Returns:
-
setAbsolutePath
public void setAbsolutePath(java.lang.String rootPath)
set path- Parameters:
rootPath-
-
-