Class: vrfigure
Return property value of vrfigure
object
get(figure)
figureProp = get(figure,propertyName)
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.
figure
— Virtual reality figurevrfigure
objectVirtual reality figure, specified as a vrfigure
object.
property_name
— Virtual reality figure object propertyVirtual 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. |
figureProp
— Virtual reality figure propertyVirtual reality figure property, returned as a string or vector.
Create a vrfigure
object.
myworld = vrworld('vrmount.wrl');
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
Create a vrfigure
object.
myworld = vrworld('vrmount.wrl');
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'
A modified version of this example exists on your system. Do you want to open this version instead? (es)
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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: .
Select web siteYou can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.