![]() |
KudanAR - Android
|
Inheritance diagram for ARView:
Collaboration diagram for ARView: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.
|
inline |
Initialise ARView with an application context and an attribute set.
| context | |
| attrs |
|
inline |
Returns the ARActivity that contains this view.
Example of use:
ARActivity activity = arView.getCameraActivity();
|
inline |
The viewport responsible for displaying the camera feed. This has an orthographic projection.
|
inline |
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.
|
inline |
Returns the camera texture associated with this ARView.
Example of use:
ARTextureOES cameraTexture = arView.getmCameraTexture();
|
inline |
Requests the renderer renders a frame.
|
inline |
|
inline |
Sets the ARActivity that contains this view.
Example of use:
arView.setCameraActivity(this);
| cameraActivity | The ARActivity that will contain this ARView. |
|
inline |
|
inline |
Creates new ARCameraStream and its ARViewPorts.