Properties
(static) boxImageTrackable :ImageTrackable
The trackable of the router box.
- ImageTrackable
(static) currentTracker :BaseTracker
Gets or sets the currently active tracker.
Can be set to null to deactivate all trackers.
- BaseTracker
(static) defaultPositionable :ARgoPositionable
(static) drawables :Array.<Drawable>
The application's loaded drawables.
- Array.<Drawable>
(static) modelArrow :ARgoModel
The 3D model of an arrow.
(static) modelBlock :ARgoModel
The 3D model of the ports' frame.
(static) modelCharger :ARgoModel
The 3D model of the transformer plug.
(static) modelMarker :ARgoModel
The 3D model of a marker.
(static) modelRJ45 :ARgoModel
The 3D model of the RJ45 cable.
(static) modelRouterAR :ARgoModel
The 3D model of the router in AR.
(static) portsLabel :Label
The router's ports.
- Label
(static) routerImageTrackable :ImageTrackable
The trackable of the router.
- ImageTrackable
(static) sounds :Array.<Sound>
The application's loaded sounds.
- Array.<Sound>
(static) targetRecognized :boolean
Indicates if a visual target is currently recognized by a tracker.
- boolean
(static) trackers :Array.<BaseTracker>
The application's loaded trackers.
- Array.<BaseTracker>
Methods
(static) addARCableConnectionAnimation(model)
Creates and starts a connection animation for a model in AR Presentation Mode.
| Name | Type | Description |
|---|---|---|
model |
ARgoModel |
(static) addFlashingAnimation(model)
Creates and starts a flashing animation for a 3D model.
| Name | Type | Description |
|---|---|---|
model |
Model |
(static) adjustPresentationTransform(model) → {ARgoAnimationGroup}
Adjusts the presentationLayout according to the Presentation Mode step.
| Name | Type | Description |
|---|---|---|
model |
ARgoModel |
- Type
- ARgoAnimationGroup
(static) canRotateSnappedModel() → {boolean}
Gets if snapped models can be rotated.
- Type
- boolean
(static) createAppearingAnimation(model) → {ARgoAnimationGroup}
Creates an appearing animation for a positionable 3D model.
| Name | Type | Description |
|---|---|---|
model |
ARgoModel | The model to animate. |
An instance of ARgoAnimationGroup
- Type
- ARgoAnimationGroup
(static) createARAppearingAnimation(model, scale) → {ARgoAnimationGroup}
Creates the first appearance animation for a 3D model.
| Name | Type | Description |
|---|---|---|
model |
Model | The model to animate. |
scale |
number | The maximum scale of the animation. |
An instance of ARgoAnimationGroup
- Type
- ARgoAnimationGroup
(static) createCableConnectionAnimation(model) → {ARgoAnimationGroup}
Creates a connection animation for a model in 3D Presentation Mode.
| Name | Type | Description |
|---|---|---|
model |
ARgoModel |
- Type
- ARgoAnimationGroup
(static) createOverlays()
Creates all AR overlays (models, trackers, trackables and animations).
(static) createPositionableOverlays()
Add our models' specifications to the default Positionable managed by the native plugin.
(static) createSound(uri, cacheopt) → {Sound}
Creates and loads an AR.Sound.
| Name | Type | Attributes | Description |
|---|---|---|---|
uri |
string | The path to the sound file. |
|
cache |
boolean |
<optional> |
Whether to cache the sound to |
- Type
- Sound
(static) createSounds(pageopt)
Creates and loads the application's sounds.
These are accessed by ARgo.SOUNDS and listed in World.sounds.
| Name | Type | Attributes | Description |
|---|---|---|---|
page |
string |
<optional> |
The sounds to load based on the specified app stage. |
- See:
(static) destroyAnimation(animation)
Stops and destroys an animation assigned to a model.
| Name | Type | Description |
|---|---|---|
animation |
ARgoAnimationGroup |
(static) destroySounds()
Unloads and destroys all currently loaded sounds.
(static) fixTheSourceOfAllEvil() → {boolean}
Speaks for itself!
- Type
- boolean
(static) getObjectLoadedHandler(loggingMessage)
Gets a callback that handles the onLoaded event of an AR object.
| Name | Type | Description |
|---|---|---|
loggingMessage |
string |
(static) init()
Initializes the World singleton.
(static) isTargetRecognized() → {boolean}
Helper method returning if a target is currently recognized.
- Type
- boolean
(static) onError(erroropt)
Called in response to AR errors.
| Name | Type | Attributes | Description |
|---|---|---|---|
error |
ARError |
<optional> |
(static) onInit(debuggable)
Called by the native client on initialization.
| Name | Type | Description |
|---|---|---|
debuggable |
boolean | Indicates if the native client is debuggable. |
(static) onModelAppearingComplete(model)
| Name | Type | Description |
|---|---|---|
model |
ARgoModel |
(static) onModelClick(arObject, modelPart)
Listens to the AR.Model.onClick event.
| Name | Type | Description |
|---|---|---|
arObject |
Object | |
modelPart |
string |
(static) onModelPresentationComplete(model, presentedModel)
Fires when a model moves to presentation mode.
| Name | Type | Description |
|---|---|---|
model |
ARgoModel | |
presentedModel |
string |
(static) onObjectLoaded(loggingMessage)
Handles the onLoaded event of AR objects.
| Name | Type | Description |
|---|---|---|
loggingMessage |
string |
(static) onTargetLost(targetopt)
Listens to the AR.ImageTrackable.onImageLost event.
| Name | Type | Attributes | Description |
|---|---|---|---|
target |
ImageTarget |
<optional> |
- AR:ImageTrackable~event:onImageLost
(static) onTargetRecognized(target)
Listens to the AR.ImageTrackable.onImageRecognized event.
| Name | Type | Description |
|---|---|---|
target |
ImageTarget |
- AR:ImageTrackable~event:onImageRecognized
(static) playSound(sound, nextSoundsopt, conditionCallbackopt)
Plays an application's sound (see: ARgo.SOUNDS).
| Name | Type | Attributes | Description |
|---|---|---|---|
sound |
Sound | The sound to play. (see: ARgo.SOUNDS) |
|
nextSounds |
Array.<Sound> |
<optional> |
The sound to play right after |
conditionCallback |
conditionCallback |
<optional> |
A callback that checks whether each of |
- See:
(static) stopSounds()
Stops any currently playing sounds.