Constructor
new ARgoModel(optionsopt)
Creates an instance of an ARgoModel drawable that
represents an ARObject as a 3D Model.
| Name | Type | Attributes | Description |
|---|---|---|---|
options |
ARgoDrawableOptions |
<optional> |
Source and setup parameters to customize additional object properties. |
Extends
- AR.Model
Properties
allowManipulation :boolean
Allows user manipulation when snapped on screen.
- boolean
appearanceAnimation :ARgoAnimationGroup
An animation that initially shows or later hides the model.
canRotate
A callback that indicates if rotation is allowed during manipulation.
defaultLayout :ModelLayout
The default layout of the object in the AR environment. If the model is animated and you set this, you do not need to set the regular layout options.
isOnPresentation :boolean
Gets or sets if the model is currently in Presentation Mode.
- boolean
manipulationData :ARgoObjectManipulationData
Initial manipulation data.
onAppearingComplete
Called when the model is shown and after any appearing animations have completed.
onCreateAppearingAnimation
Called when the model is about to be shown.
onCreateHidingAnimation
Called when the model is about to be hidden.
onCreatePresentationAnimation
Called when the model is about to go to presentation mode.
onCreateResetAnimation
Called when the model is about to resume from presentation mode.
onHidingComplete
Called when the model is shown and after any hiding animations have completed.
onPresentationComplete
Called when the model has entered Presentation Mode and after any animations have completed.
onResetComplete
Called when the model has exited Presentation Mode and after any animations have completed.
presentationAnimation :ARgoAnimationGroup
The animation that brings this model to and back from Presentation Mode.
presentationLayout :ModelLayout
The layout of the object when on presentation mode.
presentedModel :string
The name of the model presented in association to this model.
- string
rootLayout :ModelLayout
The layout of the object at the beginning of a snapping animation (if any).
Methods
(static) createDefaultAnimation(model, layout)
Creates a default animation for animating from the current layout to another.
| Name | Type | Description |
|---|---|---|
model |
ARgoModel | |
layout |
ModelLayout |
(static) getSafeLayout(layout) → {ModelLayout}
Gets a layout that has all members initialized.
| Name | Type | Description |
|---|---|---|
layout |
ModelLayout |
A ModelLayout instance that has all members initialized.
- Type
- ModelLayout
applyDefaultLayout()
Applies the defaultLayout to the model.
applyLayout(layout)
Applies a specified layout to the model.
| Name | Type | Description |
|---|---|---|
layout |
ModelLayout |
applyPresentationLayout()
Applies the presentationLayout to the model.
applyRootLayout()
Applies the applyRootLayout to the model.