SmartEyeglass SDK public final class

CylindricalRenderObject

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

Class Overview

Defines an object to be rendered by the AR engine using the cylindrical coordinate system. Positions in this system are placed on an imaginary cylinder surrounding the user, and may or may not be currently visible in the glass display.

Summary

Constants
float VERTICAL_RANGE_MAX The max range of vertical position.
float VERTICAL_RANGE_MIN The min range of vertical position
Public Constructors
CylindricalRenderObject(int objectId, Bitmap bitmap, int order, int objectType, float h, float v)

Creates a new instance of this class.

Public Methods
void setPosition(PointF point)

Sets the position.

PointF 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.

Constants

public static final float VERTICAL_RANGE_MAX

The max range of vertical position.

Constant Value: 60.0 (0x0000003c)

public static final float VERTICAL_RANGE_MIN

The min range of vertical position

Constant Value: -60.0 (0xffffffffffffffc4)

Public Constructors

public CylindricalRenderObject(int objectId, Bitmap bitmap, int order, int objectType, float h, float v)

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:
h The initial horizontal position in the cylindrical coordinate system. An absolute compass value in degrees, where 0.0 is north, 180.0 is south, and so on.
v The initial vertical position. An angle in radians, where positive values are up and negative values are down.

Public Methods

public void setPosition(PointF 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 cylindrical coordinate system.

public PointF getPosition()

Retrieves the position.

Returns

The object position in the cylindrical 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