public class ArControl2
extends android.widget.RelativeLayout
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListener
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
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
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
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地图模式
|
dispatchPopulateAccessibilityEvent, generateLayoutParams, getBaseline, getGravity, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, requestLayout, setGravity, setHorizontalGravity, setIgnoreGravity, setVerticalGravity, shouldDelayChildPressedState
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
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
canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, requestFitSystemWindows
public ArControl2(android.content.Context context)
context
- 环境上下文public ArControl2(android.content.Context context, android.util.AttributeSet attrs)
context
- 环境上下文attrs
- XML节点下属性集public ArControl2(android.content.Context context, android.util.AttributeSet attrs, int defStyle)
context
- 环境上下文attrs
- XML节点下属性集defStyle
- 自定义样式public void init(android.content.Context context)
context
- 环境上下文public MapView getMapView()
public void setUIWorking(boolean bUIWorking)
bUIWorking
- UI工作状态public boolean getUIWorking()
public void setShowLocation(boolean showLocation)
showLocation
- 是否显示当前位置public boolean IsShowLocation()
public void beginAR()
public void stopAR()
public void openFollowingMode()
public boolean closeFollowingMode()
public void hideCamera()
public void showCamera()
public void showMapView(boolean bShow)
bShow
- 是否显示地图控件public void setARMode(ARMode type)
type
- AR地图类型,详见ARModepublic ARMode getARMapType()
public Point2D getViewPoint()
public void setViewPoint(Point2D point)
point
- 视图中心public double getArScale()
public void setArScale(double scale)
scale
- AR地图比例尺public void setARState(boolean arState)
arState
- AR状态public boolean getARState()
public void setDatasetName(java.lang.String datasetName)
datasetName
- AR地图POI数据集名称public java.lang.String getDatasetName()
public void setTileName(java.lang.String tileName)
tileName
- AR地图POI文字标题名称public java.lang.String getTileName()
public void setRecordset(Recordset recordset)
recordset
- 记录集名称public Recordset getRecordset()
public void setARCenter(Point2D arCenter)
arCenter
- AR绘图中心public Point2D getARCenter()
public void drawCircleOnTrackingLayer(Point2D point2D, float azimuth, float pitch, float roll)
point2D
- 绘制中心azimuth
- 方位角pitch
- 俯仰角roll
- 滚动角public void showNearResult_POI(Point2D pnt2DCenter, float azimuth, float pitch, float roll)
pnt2DCenter
- 中心点坐标azimuth
- 方位角pitch
- 俯仰角roll
- 翻滚角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)
nStartX
- AR控件的坐标起始点横坐标nStartY
- AR控件的坐标起始点纵坐标startX
- 起点横坐标startY
- 起点纵坐标endX
- 终点横坐标endY
- 终点纵坐标azimuth
- 方位角dPitch
- 俯仰角strShowText
- 要显示的文字信息strShowDistance
- 要显示的距离信息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)
x
- 矩形左边x坐标y
- 矩形顶边y坐标dDensity
- 设备屏幕密度strName
- 要显示的字段信息strDistance
- 要显示的距离信息btnDest
- 显示按钮btnDest_Down
- 按下按钮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)
bShowLayout
- 是否显示当前布局x
- 矩形左边x坐标y
- 矩形顶边y坐标dDensity
- 设备屏幕密度strName
- 要显示的字段信息strDistance
- 要显示的距离信息rlLayout
- 要显示的布局句柄public java.lang.String queryARName(java.lang.String strDatasetName, int smID, java.lang.String strName)
strDatasetName
- 数据集名称smID
- 图斑IDstrName
- 数据集的属性数据表中字段名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)
strQueryName
- 查询AR图斑所有的数据arrName
- 数据名称arrX
- X坐标arrY
- Y坐标public GeoLine queryARGeoLine(java.lang.String strDatasetName, int smID)
strDatasetName
- 数据集名称smID
- 属性过滤器public android.graphics.Rect getRect(int nX, int nY)
nX
- 矩形框左边x坐标nY
- 矩形框顶边y坐标public void setRect(int nIndex, android.graphics.Rect rectNew)
nIndex
- 新设置的矩形索引rectNew
- 要设置的矩形public void setRect(android.graphics.Rect rect, android.graphics.Rect rectNew)
rect
- 当前矩形rectNew
- 新的矩形public java.util.ArrayList<android.graphics.Rect> getRects()
public void setRects(java.util.ArrayList<android.graphics.Rect> arrRect)
arrRect
- 要设置的矩形框集合public boolean isRectContain(android.graphics.Rect rect, int nStart, int nEnd)
rect
- 目标矩形nStart
- 开始索引nEnd
- 结束索引public boolean isRectContain(android.graphics.Rect rect)
rect
- 目标矩形public double getDistance(double x1, double y1, double x2, double y2)
x1
- 第一个点的x坐标y1
- 第一个点的y坐标x2
- 第二个点的x坐标y2
- 第二个点的y坐标public boolean isIntersect(android.graphics.Rect rectFirst, android.graphics.Rect rectSecond)
rectFirst
- 第一个矩形rectSecond
- 第二个矩形public void showLocation(Point2D point2D, float azimuth)
point2D
- 当前位置azimuth
- 当前方位角public void calulateOrientation(double azimuth)
azimuth
- 方位角public void setARBitmap(android.graphics.Bitmap bitmap)
bitmap
- AR小车的位图public void setARBitmap_Car(android.graphics.Bitmap bitmap)
bitmap
- AR小车的位图public android.graphics.Bitmap getARBitmap_Car()
public void setCarAngle(float angle)
angle
- AR小车的指引角度public float getCarAngle()
public void setMapDrawParams(boolean bShowARDest, float dDeltaAngle, float dPitch, java.lang.String strText, java.lang.String strDistance)
bShowARDest
- 是否显示目标物dDeltaAngle
- 设置相对角度dPitch
- 设置俯仰角strText
- 设置显示文字strDistance
- 设置距离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坐标public void clearMapDrawParams()