Construct virtual reality animation object
h = Aero.VirtualRealityAnimation
h = Aero.VirtualRealityAnimation
constructs a virtual reality
animation object. The animation object is returned to h
. The
animation object has the following methods and properties.
The Aero.VirtualRealityAnimation
object is not available for
Aerospace Toolbox Online.
Constructor | Description |
---|---|
VirtualRealityAnimation | Construct virtual reality animation object. |
Method | Description |
---|---|
addNode | Add existing node to current virtual reality world. |
addRoute | Add VRML ROUTE statement to virtual reality animation. |
addViewpoint | Add viewpoint for virtual reality animation. |
delete | Destroy virtual reality animation object. |
initialize | Create and populate virtual reality animation object. |
nodeInfo | Create list of nodes associated with virtual reality animation object. |
play | Animate virtual reality world for given position and angle in time series data. |
removeNode | Remove node from virtual reality animation object. |
removeViewpoint | Remove viewpoint node from virtual reality animation. |
saveas | Save virtual reality world associated with virtual reality animation object. |
updateNodes | Set new translation and rotation of moveable items in virtual reality animation. |
Aero.VirtualRealityAnimation methods that change the current virtual reality world
use a temporary .wrl
file to manage those changes. These methods
include:
Be aware of the following behavior:
After the methods make the changes, they reinitialize the world, using the
information stored in the temporary .wrl
file.
When you delete the virtual reality animation object, this action deletes the temporary file.
Use the saveas
method to save the
temporary .wrl
file.
These methods do not affect user-created .wrl
files.
Property | Description | Values |
---|---|---|
Name | Specify name of the animation object. | Character vector | string |
VRWorld | Returns the vrworld object associated with the animation object. | MATLAB array |
VRWorldFilename | Specify the | Character vector | string |
VRWorld OldFilename | Specify the old | MATLAB array |
VRWorld TempFilename | Specify the temporary | Character vector | string |
VRFigure | Returns the vrfigure object associated with the animation object. | MATLAB array |
Nodes | Specify the nodes that the animation object contains. | MATLAB array |
Viewpoints | Specify the viewpoints that the animation object contains. | MATLAB array |
TimeScaling | Specify the time scaling, in seconds. | double |
TStart | Specify the recording start time, in seconds. | double |
TFinal | Specify end time, in seconds. | double |
TCurrent | Specify current time, in seconds. | double |
FramesPer Second | Specify rate, in frames per second. | double |
ShowSave Warning | Specify save warning display setting. | double
|
VideoFileName | Specify video recording file name. | Character vector | string |
VideoCompression | Specify video recording compression file type. For more
information on video compression, see |
Default:
|
VideoQuality | Specify video recording quality. For more information on video
quality, see the | Value between double Default:
|
VideoRecord | Enable video recording. |
Default:
|
VideoTStart | Specify video recording start time for scheduled recording. | Value between double Default:
|
VideoTFinal | Specify video recording stop time for scheduled recording. | Value between double Default:
|