SmartEyeglass SDK public abstract class

RenderObject

extends java.lang.Object
  1. java.lang.Object
  2. com.sony.smarteyeglass.extension.util.ar.RenderObject

Class Overview

Abstract render object. Every render object to be registered must be a member of

Summary

Public Constructors
RenderObject(int objectId, Bitmap bitmap, int order, int objectType, int coordinateSystem)

Creates a new instance of this class.

Public Methods
final int getObjectId()

Retrieves the object ID.

final void setBitmap(Bitmap bitmap)

Sets the bitmap.

final Bitmap getBitmap()

Retrieves the bitmap.

final void setOrder(int order)

Sets the occlusion order value.

final int getOrder()

Retrieves the occlusion order value.

void toRegisterExtras(Intent intent)

Set the intent to resist information.

final void toObjectResponseExtras(Intent intent)

Set the intent to object response information.

abstract void toMoveExtras(Intent intent)

Set the intent to move object information.

final void toOrderExtras(Intent intent)

Set the intent to change order information.

java.lang.String toString()
Protected Methods
final void setObjectIdExtra(Intent intent)

Set the intent to object ID.

final void setCoordinateSystemExtra(Intent intent)

Set the intent to Coordinate System.

Public Constructors

public RenderObject(int objectId, Bitmap bitmap, int order, int objectType, int coordinateSystem)

Creates a new instance of this class.

Parameters
objectId A unique ID for the render object, a positive integer. Give the object a unique ID that will allow you to identify it in the results of asynchronous operations.
bitmap The bitmap image to be displayed with AR rendering.
order The occlusion order for this object, a positive integer. Zero renders the object in the foreground.
objectType Whether this object is static or animated. One of:
coordinateSystem Coordinate system of this object. One of:

Public Methods

public final int getObjectId()

Retrieves the object ID.

Returns

The object ID.

public final void setBitmap(Bitmap bitmap)

Sets the bitmap.

Parameters
bitmap The bitmap object.

public final Bitmap getBitmap()

Retrieves the bitmap.

Returns

The bitmap object.

public final void setOrder(int order)

Sets the occlusion order value.

Parameters
order The new order value, a positive integer.

public final int getOrder()

Retrieves the occlusion order value.

Returns

The order value.

public void toRegisterExtras(Intent intent)

Set the intent to resist information.

Parameters
intent intent to set the extra.

public final void toObjectResponseExtras(Intent intent)

Set the intent to object response information.

Parameters
intent intent to set the extra.

public abstract void toMoveExtras(Intent intent)

Set the intent to move object information.

Parameters
intent intent to set the extra.

public final void toOrderExtras(Intent intent)

Set the intent to change order information.

Parameters
intent intent to set the extra.

public java.lang.String toString()

Overrides

Protected Methods

protected final void setObjectIdExtra(Intent intent)

Set the intent to object ID.

Parameters
intent intent intent to set the extra.

protected final void setCoordinateSystemExtra(Intent intent)

Set the intent to Coordinate System.

Parameters
intent intent to set the extra.