public class VisionArView
class VisionArView
is a view which represents visual component that renders video stream from the camera
and AR navigation route on top of that.
class VisionArView
Constructor and Description |
---|
VisionArView(android.content.Context context) |
VisionArView(android.content.Context context,
android.util.AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
long |
getPeer() |
boolean |
isFenceVisible()
Check if AR fences rendering is enabled
|
boolean |
isLaneVisible()
Check if AR lane rendering is enabled
|
void |
onPause()
Call this method when
class VisionArView should no longer render on the screen. |
void |
onResume() |
void |
setArManager(VisionArManager visionArManager)
Set
class VisionArManager to enable rendering of AR on the view. class VisionArManager is held as a weak reference |
void |
setArQuality(float quality)
|
void |
setFenceVisible(boolean visible)
Enable rendering AR fences.
AR fences rendering is disabled by default.
|
void |
setFenceVisualParams(FenceVisualParams fenceVisualParams)
Change visual parameters of AR fence.
|
void |
setLaneVisible(boolean visible)
Enable rendering AR lane.
AR lane rendering is enabled by default.
|
void |
setLaneVisualParams(LaneVisualParams laneVisualParams)
Change visual parameters of AR lane.
|
void |
setPeer(long p) |
void |
surfaceChanged(android.view.SurfaceHolder holder,
int format,
int width,
int height) |
void |
surfaceCreated(android.view.SurfaceHolder holder) |
void |
surfaceDestroyed(android.view.SurfaceHolder holder) |
public VisionArView(android.content.Context context)
public VisionArView(android.content.Context context, android.util.AttributeSet attrs)
public long getPeer()
public void setPeer(long p)
public void surfaceChanged(android.view.SurfaceHolder holder, int format, int width, int height)
public void surfaceDestroyed(android.view.SurfaceHolder holder)
public void surfaceCreated(android.view.SurfaceHolder holder)
public void onPause()
Call this method when class VisionArView
should no longer render on the screen.
class VisionArView
public void onResume()
public void setArManager(VisionArManager visionArManager)
Set class VisionArManager
to enable rendering of AR on the view. class VisionArManager
is held as a weak reference
visionArManager
- : instance of class VisionArManager
class VisionArManager
,
class VisionArManager
public void setLaneVisualParams(LaneVisualParams laneVisualParams)
Change visual parameters of AR lane.
laneVisualParams
- : configuration that describes visual state of AR lane.public void setFenceVisualParams(FenceVisualParams fenceVisualParams)
Change visual parameters of AR fence.
fenceVisualParams
- : configuration that describes visual state of AR fence.public void setArQuality(float quality)
public void setFenceVisible(boolean visible)
Enable rendering AR fences. AR fences rendering is disabled by default.
public boolean isFenceVisible()
Check if AR fences rendering is enabled
public void setLaneVisible(boolean visible)
Enable rendering AR lane. AR lane rendering is enabled by default.
public boolean isLaneVisible()
Check if AR lane rendering is enabled