-
Class Summary Class Description CeilingExcavator ExcavationParameter Excavation parameter for excavation calculationsExcavator.calculate(ExcavationParameter)
ExcavationParameter.Builder creatorExcavator excavation toolGroundExcavator PitObject Pothole object For rendering excavation results SampleCode:
//Occlusion settings occlusionHelper = arView.getOcclusionHelper(); occlusionHelper.init(0.36f) .setRenderMode(OcclusionHelper.RenderMode.NORMAL); //Using ARGeoPrism to build a "detection wall" ListroomBounds = Arrays.asList( new Point3D(-1, -1, -2), new Point3D(-1, 6, -2), new Point3D(6, 6, -2), new Point3D(6, -1, -2), new Point3D(-1, -1, -2) ); ARGeoPrism geoVerticalRegion = new ARGeoPrism(); geoVerticalRegion.setParentNode(arView); geoVerticalRegion.setRenderable(false);//Not rendered, only used for ray detection geoVerticalRegion.addPart(roomBounds,6.0f); //Creates an excavation tool, before that, you need to confirm that AREffectView has enabled the occlusion setting // Excavator
All subclasses use the same method excavatorWall = new WallExcavator(geoVerticalRegion); //pothole texture Bitmap bitmap=null; Bitmap bitmap2=null; try { InputStream is = getApplicationContext().getAssets() .open("brown_mud_dry2.png"); bitmap= BitmapFactory.decodeStream(is); InputStream is2 = getApplicationContext().getAssets() .open("wall_texture.png"); bitmap2= BitmapFactory.decodeStream(is2); is.close(); is2.close(); } catch (IOException e) { } //Creates a Pothole Render Object pitWall = new PitObject(excavatorWall) .setTexture(bitmap,bitmap2); //Called every frame refresh (usually used {@link EffectView#addOnUpdateListener(EffectView.WallExcavator -
Enum Summary Enum Description ExcavationParameter.ShapeType
Package com.supermap.ar.areffect.excavator Description
AR excavation analysis tool module.