![]() |
KudanAR - Android
1.6.0
|
Inherits GLSurfaceView.
Public Member Functions | |
void | setupNewCamera () |
ARView (Context context) | |
ARView (Context context, AttributeSet attrs) | |
void | onSizeChanged (int w, int h, int ow, int oh) |
void | onConfigurationChanged (Configuration config) |
void | onResume () |
void | onPause () |
ARViewPort | getCameraViewPort () |
ARViewPort | getContentViewPort () |
void | render () |
Bitmap | screenshot () |
void | setCameraTexture (ARTextureOES cameraTexture) |
ARTextureOES | getmCameraTexture () |
ARActivity | getCameraActivity () |
void | setCameraActivity (ARActivity cameraActivity) |
An ARView encapsulates AR activities. It is a custom subclass of UIView that specifically handles the rendering of AR content and any interaction with it. It uses an assocaited render target to draw more complex content that an ordinary UIView is not capable of displaying.
ARView.ARView | ( | Context | context | ) |
Initialises ARView.
context | Applications context. |
ARView.ARView | ( | Context | context, |
AttributeSet | attrs | ||
) |
Initialise ARView with an application context and an attribute set.
context | |
attrs |
ARActivity ARView.getCameraActivity | ( | ) |
Returns the ARActivity that contains this view.
Example of use:
ARActivity activity = arView.getCameraActivity();
ARViewPort ARView.getCameraViewPort | ( | ) |
The viewport responsible for displaying the camera feed. This has an orthographic projection.
ARViewPort ARView.getContentViewPort | ( | ) |
The viewport responsible for displaying any AR content, such as images, videos or 3D models, on top of the camera feed. This has a perspective projection.
ARTextureOES ARView.getmCameraTexture | ( | ) |
Returns the camera texture associated with this ARView.
Example of use:
ARTextureOES cameraTexture = arView.getmCameraTexture();
void ARView.render | ( | ) |
Requests the renderer renders a frame.
Bitmap ARView.screenshot | ( | ) |
void ARView.setCameraActivity | ( | ARActivity | cameraActivity | ) |
Sets the ARActivity that contains this view.
Example of use:
arView.setCameraActivity(this);
cameraActivity | The ARActivity that will contain this ARView. |
void ARView.setCameraTexture | ( | ARTextureOES | cameraTexture | ) |
void ARView.setupNewCamera | ( | ) |
Creates new ARCameraStream and its ARViewPorts.