Package com.supermap.ar.areffect.excavator

AR excavation analysis tool module.

See: Description

  • Class Summary 
    Class Description
    CeilingExcavator
    Ceiling excavation tools Often used in conjunction with PitObject See PitObject for an example
    ExcavationParameter
    Excavation parameter for excavation calculations Excavator.calculate(ExcavationParameter)
    ExcavationParameter.Builder
    creator
    Excavator
    excavation tool
    GroundExcavator
    Ground excavation tools Often used in conjunction with PitObject See PitObject for an example
    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" List roomBounds = 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 //ExcavatorAll 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
    Wall bump excavation tool Often used in conjunction with PitObject InstancePitObject
  • Enum Summary 
    Enum Description
    ExcavationParameter.ShapeType  

Package com.supermap.ar.areffect.excavator Description

AR excavation analysis tool module.