com.supermap.mapping.AR

类 ArControl2

  • java.lang.Object
    • android.view.View
      • android.view.ViewGroup
        • android.widget.RelativeLayout
          • com.supermap.mapping.AR.ArControl2
  • 所有已实现的接口:
    android.graphics.drawable.Drawable.Callback, android.view.accessibility.AccessibilityEventSource, android.view.KeyEvent.Callback, android.view.ViewManager, android.view.ViewParent


    public class ArControl2
    extends android.widget.RelativeLayout
    AR地图控件
    • 嵌套类概要

      • 从类继承的嵌套类/接口 android.widget.RelativeLayout

        android.widget.RelativeLayout.LayoutParams
      • 从类继承的嵌套类/接口 android.view.ViewGroup

        android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
      • 从类继承的嵌套类/接口 android.view.View

        android.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener
    • 字段概要

      • 从类继承的字段 android.widget.RelativeLayout

        ABOVE, ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_END, ALIGN_LEFT, ALIGN_PARENT_BOTTOM, ALIGN_PARENT_END, ALIGN_PARENT_LEFT, ALIGN_PARENT_RIGHT, ALIGN_PARENT_START, ALIGN_PARENT_TOP, ALIGN_RIGHT, ALIGN_START, ALIGN_TOP, BELOW, CENTER_HORIZONTAL, CENTER_IN_PARENT, CENTER_VERTICAL, END_OF, LEFT_OF, RIGHT_OF, START_OF, TRUE
      • 从类继承的字段 android.view.ViewGroup

        FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE
      • 从类继承的字段 android.view.View

        ACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, VISIBLE, X, Y
    • 构造器概要

      构造器 
      构造器和说明
      ArControl2(android.content.Context context)
      构造函数
      ArControl2(android.content.Context context, android.util.AttributeSet attrs)
      构造函数函数
      ArControl2(android.content.Context context, android.util.AttributeSet attrs, int defStyle)
      构造函数函数
    • 方法概要

      所有方法 实例方法 具体方法 
      限定符和类型 方法和说明
      void addMapDrawParams(boolean bShowARDest, float dDeltaAngle, float dPitch, java.lang.String strText, java.lang.String strDistance, float x, float y)
      添加地图绘制参数
      void beginAR()
      开始AR地图模式
      void calculate_AR_End(int nStartX, int nStartY, double startX, double startY, double endX, double endY, float azimuth, float dPitch, java.lang.String strShowText, java.lang.String strShowDistance)
      计算AR导航的终点
      void calulateOrientation(double azimuth)
      计算方向
      void clearMapDrawParams()
      清除地图绘制参数
      boolean closeFollowingMode()
      关闭跟随模式
      void drawCircleOnTrackingLayer(Point2D point2D, float azimuth, float pitch, float roll)
      在跟踪层上绘制圆
      android.graphics.Bitmap getARBitmap_Car()
      获取AR小车的位图
      Point2D getARCenter()
      获取AR绘图中心
      ARMode getARMapType()
      获取AR地图类型
      double getArScale()
      获取AR地图比例尺
      boolean getARState()
      获取AR状态
      float getCarAngle()
      获取AR小车的指引角度
      java.lang.String getDatasetName()
      获取AR地图POI数据集名称
      double getDistance(double x1, double y1, double x2, double y2)
      获取两点距离,不做转化
      MapView getMapView()
      获取MapView
      Recordset getRecordset()
      获取记录集
      android.graphics.Rect getRect(int nX, int nY)
      获取一个矩形框
      java.util.ArrayList<android.graphics.Rect> getRects()
      获取矩形框集合
      java.lang.String getTileName()
      返回AR地图POI文字标题名称
      boolean getUIWorking()
      获取是否正在UI工作状态
      Point2D getViewPoint()
      获取视图中心
      void hideCamera()
      隐藏摄像机
      void init(android.content.Context context)
      AR地图初始化函数
      boolean isIntersect(android.graphics.Rect rectFirst, android.graphics.Rect rectSecond)
      判断矩形是否相交
      boolean isRectContain(android.graphics.Rect rect)
      判断矩形是否包含
      boolean isRectContain(android.graphics.Rect rect, int nStart, int nEnd)
      判断矩形是否包含
      boolean IsShowLocation()
      获取是否显示当前位置
      void openFollowingMode()
      开启跟随模式
      GeoLine queryARGeoLine(java.lang.String strDatasetName, int smID)
      查询AR几何线
      java.lang.String queryARName(java.lang.String strDatasetName, int smID, java.lang.String strName)
      查询图斑id对应的名称
      void queryARRecordsetData(java.lang.String strQueryName, java.util.ArrayList<java.lang.String> arrName, java.util.ArrayList<java.lang.Double> arrX, java.util.ArrayList<java.lang.Double> arrY)
      查询AR图斑所有的数据, 包括: 名称, X坐标, Y坐标
      void setARBitmap_Car(android.graphics.Bitmap bitmap)
      设置AR小车的位图
      void setARBitmap(android.graphics.Bitmap bitmap)
      设置位图
      void setARCenter(Point2D arCenter)
      设置AR绘图中心
      void setARMode(ARMode type)
      设置AR地图类型
      void setArScale(double scale)
      设置AR地图比例尺
      void setARState(boolean arState)
      设置AR状态
      void setCarAngle(float angle)
      设置AR小车的指引角度
      void setDatasetName(java.lang.String datasetName)
      设置AR地图POI数据集
      void setMapDrawParams(boolean bShowARDest, float dDeltaAngle, float dPitch, java.lang.String strText, java.lang.String strDistance)
      显示临近模式的真实感信息
      void setRecordset(Recordset recordset)
      设置记录集
      void setRect(int nIndex, android.graphics.Rect rectNew)
      设置一个矩形
      void setRect(android.graphics.Rect rect, android.graphics.Rect rectNew)
      更新当前矩形
      void setRects(java.util.ArrayList<android.graphics.Rect> arrRect)
      设置矩形框集合
      void setShowLocation(boolean showLocation)
      设置是否显示当前位置
      void setTileName(java.lang.String tileName)
      设置AR地图POI文字标题名称
      void setUIWorking(boolean bUIWorking)
      设置正在UI工作状态中
      void setViewPoint(Point2D point)
      设置视图中心
      void show_AR_Btn(int x, int y, float dDensity, java.lang.String strName, java.lang.String strDistance, android.widget.Button btnDest, android.widget.Button btnDest_Down)
      显示识别到Poi的空间位置。
      void show_AR_End_Layout(boolean bShowLayout, int x, int y, float dDensity, java.lang.String strName, java.lang.String strDistance, android.widget.RelativeLayout rlLayout)
      显示AR顶层布局
      void showCamera()
      打开摄像机
      void showLocation(Point2D point2D, float azimuth)
      显示当前位置, AR地图场景中的定位
      void showMapView(boolean bShow)
      是否显示地图控件
      void showNearResult_POI(Point2D pnt2DCenter, float azimuth, float pitch, float roll)
      显示临近模式的POI结果
      void stopAR()
      关闭AR地图模式
      • 从类继承的方法 android.widget.RelativeLayout

        dispatchPopulateAccessibilityEvent, generateLayoutParams, getBaseline, getGravity, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, requestLayout, setGravity, setHorizontalGravity, setIgnoreGravity, setVerticalGravity, shouldDelayChildPressedState
      • 从类继承的方法 android.view.ViewGroup

        addChildrenForAccessibility, addFocusables, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, bringChildToFront, childDrawableStateChanged, childHasTransientStateChanged, clearChildFocus, clearDisappearingChildren, clearFocus, dispatchApplyWindowInsets, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchSetActivated, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildMeasureSpec, getChildVisibleRect, getClipChildren, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getOverlay, getPersistentDrawingCache, hasFocus, hasFocusable, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isMotionEventSplittingEnabled, jumpDrawablesToCurrentState, layout, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onInterceptHoverEvent, onInterceptTouchEvent, onRequestSendAccessibilityEvent, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, showContextMenuForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, updateViewLayout
      • 从类继承的方法 android.view.View

        addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, animate, announceForAccessibility, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeScroll, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, draw, findViewById, findViewWithTag, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBottom, getCameraDistance, getClipBounds, getContentDescription, getContext, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasOnClickListeners, hasOverlappingRendering, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isAttachedToWindow, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isOpaque, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, measure, offsetLeftAndRight, offsetTopAndBottom, onApplyWindowInsets, onCancelPendingInputEvents, onCheckIsTextEditor, onCreateInputConnection, onDragEvent, onFilterTouchEventForSecurity, onFinishTemporaryDetach, onGenericMotionEvent, onHoverChanged, onHoverEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onPopulateAccessibilityEvent, onRtlPropertiesChanged, onScreenStateChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setClipBounds, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, toString, unscheduleDrawable, unscheduleDrawable, willNotCacheDrawing, willNotDraw
      • 从类继承的方法 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • 从接口继承的方法 android.view.ViewParent

        canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows
    • 构造器详细资料

      • ArControl2

        public ArControl2(android.content.Context context)
        构造函数
        参数:
        context - 环境上下文
      • ArControl2

        public ArControl2(android.content.Context context,
                          android.util.AttributeSet attrs)
        构造函数函数
        参数:
        context - 环境上下文
        attrs - XML节点下属性集
      • ArControl2

        public ArControl2(android.content.Context context,
                          android.util.AttributeSet attrs,
                          int defStyle)
        构造函数函数
        参数:
        context - 环境上下文
        attrs - XML节点下属性集
        defStyle - 自定义样式
    • 方法详细资料

      • init

        public void init(android.content.Context context)
        AR地图初始化函数
        参数:
        context - 环境上下文
      • getMapView

        public MapView getMapView()
        获取MapView
        返回:
        当前MapView
      • setUIWorking

        public void setUIWorking(boolean bUIWorking)
        设置正在UI工作状态中
        参数:
        bUIWorking - UI工作状态
      • getUIWorking

        public boolean getUIWorking()
        获取是否正在UI工作状态
        返回:
        UI工作状态
      • setShowLocation

        public void setShowLocation(boolean showLocation)
        设置是否显示当前位置
        参数:
        showLocation - 是否显示当前位置
      • IsShowLocation

        public boolean IsShowLocation()
        获取是否显示当前位置
        返回:
        是否显示当前位置
      • beginAR

        public void beginAR()
        开始AR地图模式
      • stopAR

        public void stopAR()
        关闭AR地图模式
      • openFollowingMode

        public void openFollowingMode()
        开启跟随模式
      • closeFollowingMode

        public boolean closeFollowingMode()
        关闭跟随模式
        返回:
        关闭跟随模式
      • hideCamera

        public void hideCamera()
        隐藏摄像机
      • showCamera

        public void showCamera()
        打开摄像机
      • showMapView

        public void showMapView(boolean bShow)
        是否显示地图控件
        参数:
        bShow - 是否显示地图控件
      • setARMode

        public void setARMode(ARMode type)
        设置AR地图类型
        参数:
        type - AR地图类型,详见ARMode
      • getARMapType

        public ARMode getARMapType()
        获取AR地图类型
        返回:
        AR地图类型
      • getViewPoint

        public Point2D getViewPoint()
        获取视图中心
        返回:
        视图中心
      • setViewPoint

        public void setViewPoint(Point2D point)
        设置视图中心
        参数:
        point - 视图中心
      • getArScale

        public double getArScale()
        获取AR地图比例尺
        返回:
        AR地图比例尺
      • setArScale

        public void setArScale(double scale)
        设置AR地图比例尺
        参数:
        scale - AR地图比例尺
      • setARState

        public void setARState(boolean arState)
        设置AR状态
        参数:
        arState - AR状态
      • getARState

        public boolean getARState()
        获取AR状态
        返回:
        AR状态
      • setDatasetName

        public void setDatasetName(java.lang.String datasetName)
        设置AR地图POI数据集
        参数:
        datasetName - AR地图POI数据集名称
      • getDatasetName

        public java.lang.String getDatasetName()
        获取AR地图POI数据集名称
        返回:
        AR地图POI数据集名称
      • setTileName

        public void setTileName(java.lang.String tileName)
        设置AR地图POI文字标题名称
        参数:
        tileName - AR地图POI文字标题名称
      • getTileName

        public java.lang.String getTileName()
        返回AR地图POI文字标题名称
        返回:
        AR地图POI文字标题名称
      • setRecordset

        public void setRecordset(Recordset recordset)
        设置记录集
        参数:
        recordset - 记录集名称
      • getRecordset

        public Recordset getRecordset()
        获取记录集
        返回:
        记录集
      • setARCenter

        public void setARCenter(Point2D arCenter)
        设置AR绘图中心
        参数:
        arCenter - AR绘图中心
      • getARCenter

        public Point2D getARCenter()
        获取AR绘图中心
        返回:
        AR绘图中心
      • drawCircleOnTrackingLayer

        public void drawCircleOnTrackingLayer(Point2D point2D,
                                              float azimuth,
                                              float pitch,
                                              float roll)
        在跟踪层上绘制圆
        参数:
        point2D - 绘制中心
        azimuth - 方位角
        pitch - 俯仰角
        roll - 滚动角
      • showNearResult_POI

        public void showNearResult_POI(Point2D pnt2DCenter,
                                       float azimuth,
                                       float pitch,
                                       float roll)
        显示临近模式的POI结果
        参数:
        pnt2DCenter - 中心点坐标
        azimuth - 方位角
        pitch - 俯仰角
        roll - 翻滚角
      • calculate_AR_End

        public void calculate_AR_End(int nStartX,
                                     int nStartY,
                                     double startX,
                                     double startY,
                                     double endX,
                                     double endY,
                                     float azimuth,
                                     float dPitch,
                                     java.lang.String strShowText,
                                     java.lang.String strShowDistance)
        计算AR导航的终点
        参数:
        nStartX - AR控件的坐标起始点横坐标
        nStartY - AR控件的坐标起始点纵坐标
        startX - 起点横坐标
        startY - 起点纵坐标
        endX - 终点横坐标
        endY - 终点纵坐标
        azimuth - 方位角
        dPitch - 俯仰角
        strShowText - 要显示的文字信息
        strShowDistance - 要显示的距离信息
      • show_AR_Btn

        public void show_AR_Btn(int x,
                                int y,
                                float dDensity,
                                java.lang.String strName,
                                java.lang.String strDistance,
                                android.widget.Button btnDest,
                                android.widget.Button btnDest_Down)
        显示识别到Poi的空间位置。叠加在摄像头上面
        参数:
        x - 矩形左边x坐标
        y - 矩形顶边y坐标
        dDensity - 设备屏幕密度
        strName - 要显示的字段信息
        strDistance - 要显示的距离信息
        btnDest - 显示按钮
        btnDest_Down - 按下按钮
      • show_AR_End_Layout

        public void show_AR_End_Layout(boolean bShowLayout,
                                       int x,
                                       int y,
                                       float dDensity,
                                       java.lang.String strName,
                                       java.lang.String strDistance,
                                       android.widget.RelativeLayout rlLayout)
        显示AR顶层布局
        参数:
        bShowLayout - 是否显示当前布局
        x - 矩形左边x坐标
        y - 矩形顶边y坐标
        dDensity - 设备屏幕密度
        strName - 要显示的字段信息
        strDistance - 要显示的距离信息
        rlLayout - 要显示的布局句柄
      • queryARName

        public java.lang.String queryARName(java.lang.String strDatasetName,
                                            int smID,
                                            java.lang.String strName)
        查询图斑id对应的名称
        参数:
        strDatasetName - 数据集名称
        smID - 图斑ID
        strName - 数据集的属性数据表中字段名
        返回:
        图斑id对应的名称
      • queryARRecordsetData

        public void queryARRecordsetData(java.lang.String strQueryName,
                                         java.util.ArrayList<java.lang.String> arrName,
                                         java.util.ArrayList<java.lang.Double> arrX,
                                         java.util.ArrayList<java.lang.Double> arrY)
        查询AR图斑所有的数据, 包括: 名称, X坐标, Y坐标
        参数:
        strQueryName - 查询AR图斑所有的数据
        arrName - 数据名称
        arrX - X坐标
        arrY - Y坐标
      • queryARGeoLine

        public GeoLine queryARGeoLine(java.lang.String strDatasetName,
                                      int smID)
        查询AR几何线
        参数:
        strDatasetName - 数据集名称
        smID - 属性过滤器
        返回:
        AR几何线
      • getRect

        public android.graphics.Rect getRect(int nX,
                                             int nY)
        获取一个矩形框
        参数:
        nX - 矩形框左边x坐标
        nY - 矩形框顶边y坐标
        返回:
        矩形框
      • setRect

        public void setRect(int nIndex,
                            android.graphics.Rect rectNew)
        设置一个矩形
        参数:
        nIndex - 新设置的矩形索引
        rectNew - 要设置的矩形
      • setRect

        public void setRect(android.graphics.Rect rect,
                            android.graphics.Rect rectNew)
        更新当前矩形
        参数:
        rect - 当前矩形
        rectNew - 新的矩形
      • getRects

        public java.util.ArrayList<android.graphics.Rect> getRects()
        获取矩形框集合
        返回:
        矩形框集合
      • setRects

        public void setRects(java.util.ArrayList<android.graphics.Rect> arrRect)
        设置矩形框集合
        参数:
        arrRect - 要设置的矩形框集合
      • isRectContain

        public boolean isRectContain(android.graphics.Rect rect,
                                     int nStart,
                                     int nEnd)
        判断矩形是否包含
        参数:
        rect - 目标矩形
        nStart - 开始索引
        nEnd - 结束索引
        返回:
        矩形是否包含
      • isRectContain

        public boolean isRectContain(android.graphics.Rect rect)
        判断矩形是否包含
        参数:
        rect - 目标矩形
        返回:
        矩形是否包含
      • getDistance

        public double getDistance(double x1,
                                  double y1,
                                  double x2,
                                  double y2)
        获取两点距离,不做转化
        参数:
        x1 - 第一个点的x坐标
        y1 - 第一个点的y坐标
        x2 - 第二个点的x坐标
        y2 - 第二个点的y坐标
        返回:
        两点距离
      • isIntersect

        public boolean isIntersect(android.graphics.Rect rectFirst,
                                   android.graphics.Rect rectSecond)
        判断矩形是否相交
        参数:
        rectFirst - 第一个矩形
        rectSecond - 第二个矩形
        返回:
        矩形是否相交
      • showLocation

        public void showLocation(Point2D point2D,
                                 float azimuth)
        显示当前位置, AR地图场景中的定位
        参数:
        point2D - 当前位置
        azimuth - 当前方位角
      • calulateOrientation

        public void calulateOrientation(double azimuth)
        计算方向
        参数:
        azimuth - 方位角
      • setARBitmap

        public void setARBitmap(android.graphics.Bitmap bitmap)
        设置位图
        参数:
        bitmap - AR小车的位图
      • setARBitmap_Car

        public void setARBitmap_Car(android.graphics.Bitmap bitmap)
        设置AR小车的位图
        参数:
        bitmap - AR小车的位图
      • getARBitmap_Car

        public android.graphics.Bitmap getARBitmap_Car()
        获取AR小车的位图
        返回:
        AR小车的位图
      • setCarAngle

        public void setCarAngle(float angle)
        设置AR小车的指引角度
        参数:
        angle - AR小车的指引角度
      • getCarAngle

        public float getCarAngle()
        获取AR小车的指引角度
        返回:
        AR小车的指引角度
      • setMapDrawParams

        public void setMapDrawParams(boolean bShowARDest,
                                     float dDeltaAngle,
                                     float dPitch,
                                     java.lang.String strText,
                                     java.lang.String strDistance)
        显示临近模式的真实感信息
        参数:
        bShowARDest - 是否显示目标物
        dDeltaAngle - 设置相对角度
        dPitch - 设置俯仰角
        strText - 设置显示文字
        strDistance - 设置距离
      • addMapDrawParams

        public void addMapDrawParams(boolean bShowARDest,
                                     float dDeltaAngle,
                                     float dPitch,
                                     java.lang.String strText,
                                     java.lang.String strDistance,
                                     float x,
                                     float y)
        添加地图绘制参数
        参数:
        bShowARDest - 是否显示目标物
        dDeltaAngle - 设置相对角度
        dPitch - 设置俯仰角
        strText - 设置显示文字
        strDistance - 设置距离
        x - 设置x坐标
        y - 设置y坐标
      • clearMapDrawParams

        public void clearMapDrawParams()
        清除地图绘制参数