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
|
Creates a new instance of this class.
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: |
Sets the position. After changing the position associated with an object, execute the change by calling moveARObject(RenderObject).
point | The new position in the glass coordinate system. |
---|
Retrieves the position.
The object position in the glass coordinate system.
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.