get
Class: vrfigure
(To be removed) Return property value of vrfigure
object
vrfigure.get
will be removed in a future release. For more
information, see Version History.
Syntax
get(figure)
figureProp = get(figure,propertyName)
Description
get(
lists the values of all the
properties of the figure
)vrfigure
object.
returns the value of the specified property of the figureProp
= get(figure
,propertyName
)vrfigure
object.
Input Arguments
figure
— Virtual reality figure
vrfigure
object
Virtual reality figure, specified as a vrfigure
object.
property_name
— Virtual reality figure object property
string
Virtual reality figure property, specified as one of these.
vrfigure Property | Meaning |
---|---|
| Smooth textures using antialiasing, which interpolates values between texture points. |
| Camera movement with the current viewpoint. |
| Camera direction in the current viewpoint local coordinates. |
| Camera direction in the world coordinates. (read-only property). |
| Camera position in the current viewpoint local coordinates. |
| Camera position in world coordinates (read-only property). |
| Camera up vector. |
| Camera up vector in world coordinates (read-only property). |
| File format for a captured frame file. |
| Frame capture file name. |
| Callback invoked when closing the
|
| Pivot point about which camera is rotated in
|
| Full screen display of figure. |
| Headlight from camera. |
| Lighting effect. |
| Maximum pixel size of a texture used. The smaller
the size, the faster the texture can render. A value of
|
| Name of figure. |
| Navigation mode. See Mouse Navigation. |
| Navigation panel appearance. |
| Navigation speed. |
| Navigation zones display. |
| Screen coordinates of figure. |
| 2-D offline animation file recording. |
| Compression method for creating 2-D animation
files. See |
| Quality of 2-D animation file compression. See the
MATLAB
|
| Name of 2-D offline animation file. The string can contain tokens that animation recording replaces with information. See File Name Tokens. |
| Rate of playback for the 2-D offline animation video in frames per second (fps). |
| Specifies whether to render a
|
| Sound effects. |
| Status bar display. |
| Stereoscopic vision mode. |
| Distance in virtual world units of left and right camera from parallax for stereoscopic vision. Parallax is the difference in the apparent position of an object viewed from two cameras. |
| Horizontal image translation (HIT) of the two stereo images in stereoscopic vision, represented by a value from 0 to 1, inclusive. The larger the value, the further back the background appears. |
| Texture use. |
| Toolbar display. |
| Tooltips display in navigation panel. |
| Transparency effect. |
| Location of the triad. |
| Active viewpoint of figure. |
| Wireframe display. |
| Virtual world that the figure displays (read-only property). |
| Camera zoom factor. |
Output Arguments
figureProp
— Virtual reality figure property
string | vector
Virtual reality figure property, returned as a string or vector.
Examples
Return All Property Values of a Figure
Create a vrfigure
object.
myworld = vrworld('vrmount');
open(myworld);
virtual_fig = vrfigure(myworld);
Return the properties of the virtual figure virtual_fig
.
get(virtual_fig)
Antialiasing = 'on' CameraBound = 'on' CameraDirection = [0 0 -1] CameraDirectionAbs = [0 -0.198669 -0.980067] CameraPosition = [0 0 0] CameraPositionAbs = [20 8 50] CameraUpVector = [0 1 0] CameraUpVectorAbs = [0 0.980067 -0.198669] CaptureFileFormat = 'tif' CaptureFileName = '%f_anim_%n.tif' DeleteFcn = '' ExaminePivotPoint = [0 0 0] Fullscreen = 'off' Headlight = 'on' Lighting = 'on' MaxTextureSize = 'auto' Name = 'VR Car in the Mountains' NavMode = 'examine' NavPanel = 'halfbar' NavSpeed = 'normal' NavZones = 'off' Position = [5 92 576 350] Record2D = 'off' Record2DCompressMethod = 'auto' Record2DCompressQuality = 75 Record2DFPS = 'auto' Record2DFileName = '%f_anim_%n.avi' Rendering = 'on' Sound = 'on' StatusBar = 'on' Stereo3D = 'off' Stereo3DCameraOffset = 0.1 Stereo3DHIT = 0 Textures = 'on' ToolBar = 'on' Tooltips = 'on' Transparency = 'on' Triad = 'none' Viewpoint = 'View 1 - Observer' Wireframe = 'off' World = vrworld object: 1-by-1 ZoomFactor = 1
Return Name of a Figure
Create a vrfigure
object.
myworld = vrworld('vrmount');
open(myworld);
virtual_fig = vrfigure(myworld);
Return the properties of the virtual figure virtual_fig
.
figure_name = get(virtual_fig,'Name')
figure_name = 'VR Car in the Mountains'
Version History
Introduced before R2006aR2023b: To be removed
The get
will be removed in a future
release. Instead, use sim3d
classes and Simulation 3D blocks to
interface MATLAB and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)