DJI Mobile SDK Documentation

      class ARPolygonInfo

      class ARPolygonInfo implements Parcelable 
      Package:dji.open.pilot.base.manager.ar
      Description:

      AR polygon face information entity. Supports cylinder extrusion. Each endpoint supports embedded AR points.

      Supported since MSDK 5.20.1

      Class Members:
      method
      method getId
      String getId() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the unique identifier.

      Supported since MSDK 5.20.1

      Return:
      StringUnique identifier of the AR polygon.
      method
      method getSource
      String getSource() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the source package name.

      Supported since MSDK 5.20.1

      Return:
      StringThe package name of the creator.
      method
      method getName
      String getName() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the name.

      Supported since MSDK 5.20.1

      Return:
      StringThe name of the AR polygon.
      method
      method setName
      void setName(String name) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the name.

      Supported since MSDK 5.20.1

      Input Parameters:
      String nameThe name of the AR polygon.
      method
      method getPoints
      List<ARPointInfo> getPoints() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the polygon endpoint list.

      Supported since MSDK 5.20.1

      Return:
      List<ARPointInfo>The list of polygon endpoints (each supporting embedded icons and text).
      method
      method setPoints
      void setPoints(List<ARPointInfo> points) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the polygon endpoint list.

      Supported since MSDK 5.20.1

      Input Parameters:
      List<ARPointInfo> pointsThe list of polygon endpoints.
      method getExtrusionAnchor
      OpenLocation getExtrusionAnchor() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the extrusion anchor point.

      Supported since MSDK 5.20.1

      Return:
      OpenLocationThe reference anchor point for cylinder extrusion.
      method setExtrusionAnchor
      void setExtrusionAnchor(OpenLocation extrusionAnchor) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the extrusion anchor point.

      Supported since MSDK 5.20.1

      Input Parameters:
      OpenLocation extrusionAnchorThe reference anchor point for cylinder extrusion.
      method getTopFace
      ARPolygonFace getTopFace() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the top face configuration.

      Supported since MSDK 5.20.1

      Return:
      ARPolygonFaceThe top face configuration.
      method setTopFace
      void setTopFace(ARPolygonFace topFace) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the top face configuration.

      Supported since MSDK 5.20.1

      Input Parameters:
      ARPolygonFace topFaceThe top face configuration.
      method getSideFace
      ARPolygonFace getSideFace() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the side face configuration.

      Supported since MSDK 5.20.1

      Return:
      ARPolygonFaceThe side face configuration.
      method setSideFace
      void setSideFace(ARPolygonFace sideFace) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the side face configuration.

      Supported since MSDK 5.20.1

      Input Parameters:
      ARPolygonFace sideFaceThe side face configuration.
      method getBottomFace
      ARPolygonFace getBottomFace() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the bottom face configuration.

      Supported since MSDK 5.20.1

      Return:
      ARPolygonFaceThe bottom face configuration.
      method setBottomFace
      void setBottomFace(ARPolygonFace bottomFace) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the bottom face configuration.

      Supported since MSDK 5.20.1

      Input Parameters:
      ARPolygonFace bottomFaceThe bottom face configuration.
      method getFaceDistAlpha
      ARDistAlpha getFaceDistAlpha() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the distance-based alpha configuration for faces.

      Supported since MSDK 5.20.1

      Return:
      ARDistAlphaThe distance-based alpha configuration for faces.
      method setFaceDistAlpha
      void setFaceDistAlpha(ARDistAlpha faceDistAlpha) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the distance-based alpha configuration for faces.

      Supported since MSDK 5.20.1

      Input Parameters:
      ARDistAlpha faceDistAlphaThe distance-based alpha configuration for faces.
      method getTopFaceStroke
      ARFaceStroke getTopFaceStroke() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the top face stroke configuration.

      Supported since MSDK 5.20.1

      Return:
      ARFaceStrokeThe top face stroke configuration.
      method setTopFaceStroke
      void setTopFaceStroke(ARFaceStroke topFaceStroke) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the top face stroke configuration.

      Supported since MSDK 5.20.1

      Input Parameters:
      ARFaceStroke topFaceStrokeThe top face stroke configuration.
      method getSideFaceStroke
      ARFaceStroke getSideFaceStroke() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the side face stroke configuration.

      Supported since MSDK 5.20.1

      Return:
      ARFaceStrokeThe side face stroke configuration.
      method setSideFaceStroke
      void setSideFaceStroke(ARFaceStroke sideFaceStroke) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the side face stroke configuration.

      Supported since MSDK 5.20.1

      Input Parameters:
      ARFaceStroke sideFaceStrokeThe side face stroke configuration.
      method getBottomFaceStroke
      ARFaceStroke getBottomFaceStroke() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the bottom face stroke configuration.

      Supported since MSDK 5.20.1

      Return:
      ARFaceStrokeThe bottom face stroke configuration.
      method setBottomFaceStroke
      void setBottomFaceStroke(ARFaceStroke bottomFaceStroke) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the bottom face stroke configuration.

      Supported since MSDK 5.20.1

      Input Parameters:
      ARFaceStroke bottomFaceStrokeThe bottom face stroke configuration.
      method getFaceStrokeDistAlpha
      ARDistAlpha getFaceStrokeDistAlpha() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get the distance-based alpha configuration for face strokes.

      Supported since MSDK 5.20.1

      Return:
      ARDistAlphaThe distance-based alpha configuration for face strokes.
      method setFaceStrokeDistAlpha
      void setFaceStrokeDistAlpha(ARDistAlpha faceStrokeDistAlpha) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set the distance-based alpha configuration for face strokes.

      Supported since MSDK 5.20.1

      Input Parameters:
      ARDistAlpha faceStrokeDistAlphaThe distance-based alpha configuration for face strokes.
      method isIs3dMesh
      boolean isIs3dMesh() 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Get whether 3D mesh mode is enabled.

      Supported since MSDK 5.20.1

      Return:
      booleanWhether 3D mesh mode is enabled.
      method setIs3dMesh
      void setIs3dMesh(boolean is3dMesh) 
      Package:dji.open.pilot.base.manager.ar
      Description:

      Set whether to enable 3D mesh mode.

      Supported since MSDK 5.20.1

      Input Parameters:
      boolean is3dMeshWhether to enable 3D mesh mode.