Constructor
new ARgoPositionable(name, options, …models)
Creates an instance of ARgoPositionable that allows
the display of 3D models snapped to the center of a device's
screen.
| Name | Type | Attributes | Description |
|---|---|---|---|
name |
string | A unique name for thie Positionable. |
|
options |
ARgoPositionableOptions | Setup options for this positionable. |
|
models |
<repeatable> |
Properties
backgroundDrawableUniqueName
Gets the unique name used for the Background Drawable.
models :Map.<String, ARgoDrawableOptions>
The models to be positioned by this positionable.
- Map.<String, ARgoDrawableOptions>
showBackground :boolean
Adds a default background to the device's screen.
- boolean
Methods
addModel(modelName, options)
Adds a model to be controlled by this positionable. Models can be loaded and unloaded at runtime.
| Name | Type | Description |
|---|---|---|
modelName |
string | Unique name for the model. |
options |
ARgoDrawableOptions | Source and setup-Parameters for the model. |
- See:
closeAll()
Hides and unloads all models maintained and currently loaded by this Positionable.
closeModel(modelName)
Hides and unloads a model maintained and already loaded by this Positionable.
| Name | Type | Description |
|---|---|---|
modelName |
string | Unique name of loaded the model. |
getLoadedModel(modelName) → {ARgoModel}
| Name | Type | Description |
|---|---|---|
modelName |
string |
- Type
- ARgoModel
hasLoadedModel(modelName)
Gets if a model with the specified unique name, is currently loaded by this Positionable.
| Name | Type | Description |
|---|---|---|
modelName |
string |
hideModel(modelName, animateopt)
Hides a model maintained and already loaded by this Positionable.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
modelName |
string | Unique name of loaded the model. |
||
animate |
boolean |
<optional> |
false |
showModel(modelName, animateopt) → {boolean}
Shows a model maintained by this Positionable.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
modelName |
string | Unique name of the model. |
||
animate |
boolean |
<optional> |
false |
Returns if the model is successfully loaded and shown.
- Type
- boolean