SmartEyeglass SDK public final class

GlassesRenderObject

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

Class Overview

Defines an object to be rendered by the AR engine using the glass coordinate system. The origin is the upper left corner of the display area, and coordinate values are in pixels.

Summary

Public Constructors
GlassesRenderObject(int objectId, Bitmap bitmap, int order, int x, int y, int objectType)

Creates a new instance of this class.

Public Methods
void setPositon(Point point)

Sets the position.

Point getPosition()

Retrieves the position.

void toRegisterExtras(Intent intent)
void toMoveExtras(Intent intent)
java.lang.String toString()
Inherited Methods
From class RenderObject
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()
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 GlassesRenderObject(int objectId, Bitmap bitmap, int order, int x, int y, int objectType)

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.
x The initial horizontal position in the glass coordinate system.
y The initial vertical position in the glass coordinate system.
objectType Whether this object is static or animated. One of:

Public Methods

public void setPositon(Point point)

Sets the position. After changing the position associated with an object, execute the change by calling moveARObject(RenderObject).

Parameters
point The new position in the glass coordinate system.

public Point getPosition()

Retrieves the position.

Returns

The object position in the glass coordinate system.

public void toRegisterExtras(Intent intent)

Overrides

toRegisterExtras in RenderObject

Parameters
intent

public void toMoveExtras(Intent intent)

Overrides

toMoveExtras in RenderObject

Parameters
intent

public java.lang.String toString()

Overrides