文件

vrgetPref.

价值观金宝app3D动画优先

句法

x = vrgetpref x = vrgetpref('preference_name')x = vrgetpref('preference_name','工厂')x = vrgetpref('factory')

Arguments

preference_name

Name of the preference to read.

Description

x = vrgetpref.returns the values of all the金宝app®3D动画™优先in a structure array.

x = vrgetpref('preference_name')返回指定首选项的值。如果preference_name是一个小区阵列的偏好名称,返回相应的偏好值的小区阵列。

x = vrgetpref('preference_name','factory')返回指定首选项的默认值。

x = vrgetpref('factory')returns the default values for all the preferences.

这following preferences are defined. For preferences that begin with the string默认Figureor默认World,这些值是相应的默认值vrfigure.orvrworld.property:

偏好 Description

AutoCreateThumbnail

打开虚拟世界时创建一个虚拟世界的缩略图。默认为'off'。将此偏好设置为'在'如果您从Internet下载多个虚拟世界,则可以有帮助,而不保存它们。在下次浏览下载的世界时,在文件开放上创建缩略图提供缩略图。

DataTypeBool

Specifies the handling of the virtual worldBooldata type forvrnode/setfieldandvrnode / getfield.。Valid values are'逻辑'and'char'。如果设置为'逻辑',虚拟世界Booldata type is returned as a logical value. If set to'char', 这Booldata type is returned'在'or'off'。默认is'逻辑'

DataTypeInt32

指定虚拟世界的处理Int32data type forvrnode/setfieldandvrnode / getfield.。Valid values are'int32'and'双倍的'。如果设置为'int32',虚拟世界Int32data type is returned asint32。如果设置为'双倍的', 这Int32data type is returned as'双倍的'。默认is'双倍的'

DataTypeFloat

Specifies the handling of the virtual worldfloatdata type forvrnode/setfieldandvrnode / getfield.。Valid values are'single'and'双倍的'。如果设置为'single',虚拟世界Floatand颜色data types are returned as'single'。如果设置为'双倍的', 这Floatand颜色data types are returned as'双倍的'。默认is'双倍的'

默认CanvasNavPanel

Controls the appearance of the control panel in thevr.canvas.object. Values are:

  • '没有'

    Panel is not visible.

  • 'minimized'

    面板显示为查看器右侧的最小化图标。

  • 'translucent'

    面板透明地漂浮在现场上方。

  • 'opaque'

    Panel floats above the scene.

默认:'没有'

默认CanvasUnits

Specifies default units for newvr.canvas.对象。看vr.canvas.for detailed description. Default is'标准化'

默认EditorMouseBehavior

指定视图窗格中的鼠标是否处于导航模式或选择模式(用于在树视图窗格中突出显示对应的节点)。默认为'导航'

defaulteditorhighlighting.

Specifies whether to highlight virtual world objects selected in the view pane. The default is'在'

默认FigureAnti
Aliasing

确定默认情况下是否使用抗拉利叠加vrfigure.对象。这种偏好也适用于新的vr.canvas.对象。Valid values are'off'and'在'

defaultfigureCapture.
FileName

Specifies default file name forvr.capture文件。看getfor detailed description. Default is'%f_anim_%n.tif'

defaultfiguredeletefcn.

Specifies the default callback invoked when closing avrfigure.object.

默认FigureLighting

Specifies whether the lights are rendered by default for newvrfigure.对象。这种偏好也适用于新的vr.canvas.对象。Valid values are'off'and'在'

默认FigureMax
纹理

Specifies the default maximum size of a texture used in rendering newvrfigure.对象。这种偏好也适用于新的vr.canvas.对象。Valid values are'auto'和32<=X<=视频卡限制,在哪里Xis a power of 2.

defaultfigurenavpanel.

Specifies the default appearance of the control panel in the viewer. Valid values are'opaque''translucent''没有''halfbar''酒吧'那and'工厂'。默认is'halfbar'

defaultfigurenavzones.

指定是否打开或关闭导航区by default for newvrfigure.对象。这种偏好也适用于新的vr.canvas.对象。Valid values are'off'and'在'

默认FigurePosition

Sets the default initial position and size of theSimulink 3D AnimationViewer window. Valid value is a vector of four doubles.

默认FigureRecord2D
CompressMethod

Specifies the default compression method for creating 2-D animation files for newvrfigure.对象。Valid values are'''汽车'“无损”那and'codec_code'

默认FigureRecord2D
CompressQuality

指定新的2-D动画文件压缩的​​默认质量vrfigure.对象。有效值为0-100。

默认FigureRecord2D
FileName

指定新的默认2-D脱机动画文件名vrfigure.对象。

默认FigureRecord2DFPS

Specifies the default frames per second playback speed.

要将2D AVI动画播放回到与3D虚拟世界动画大致相同的播放速度效果,请将此优先设置为汽车

默认FigureRendering

Specifies whether to render avrfigure.orvr.canvas.object. Turning off rendering improves performance. For example, if your code does batch operations on a virtual figure, you can turn off rendering during that processing and then turn it back on after the processing.

默认FigureStatusBar

指定默认情况下是否出现状态栏在底部默认出现Simulink 3D AnimationViewer for newvrfigure.对象。Valid values are'off'and'在'

defaultfiguretextures.

指定默认情况下是否应呈现纹理vrfigure.对象。这种偏好也适用于新的vr.canvas.对象。看getfor detailed description. Default is'在'

默认FigureToolBar

指定默认情况下是否出现工具栏Simulink 3D AnimationViewer for newvrfigure.对象。Valid values are'off'and'在'

默认Figure
Transparency

指定在呈现新的时是否考虑到透明度信息vrfigure.对象。这种偏好也适用于新的vr.canvas.对象。Valid values are'off'and'在'

默认FigureWireframe

指定是否默认为新的对象绘制为稳定性或线框vrfigure.对象。这种偏好也适用于新的vr.canvas.对象。Valid values are'off'and'在'

默认Viewer

Specifies which viewer is used to view a virtual scene.

  • 'internal'

    默认Simulink 3D AnimationViewer.

  • 'web'

    Web browser becomes viewer. This is the current Web browser virtual world plug-in.

defaultworldrecord3d.
FileName

Specifies the default 3-D animation file name for newvrworld.对象。

defaultworldrecordmode.

Specifies the default animation recording mode for newvrworld.对象。Valid values are'manual'and'计划'

默认WorldRecord
间隔

Specifies the default start and stop times for scheduled animation recording for newvrworld.对象。有效值是两个双打的向量。

defaultworldremoteview.

Specifies whether the virtual world is enabled by default for remote viewing for newvrworld.对象。Valid values are'off'and'在'

默认WorldTimeSource

Specifies the default source of the time for newvrworld.对象。Valid values are'external'and'freerun'

Editor

Specifies which virtual world editor to use. Path to the virtual world editor. If this path is empty, the MATLAB®编辑器使用。

这path setting is active only if you select theCustomoption.

要在第三方编辑器中打开虚拟世界文件,请勿使用甜蜜REDIT.command. For example, to open a virtual world in the Ligos®V-RealM Builder编辑器:

  1. Set the default editor to V-Realm Builder. In MATLAB, enter:

    vrsetpref('Editor''*VREALM');
  2. To open a file in the V-Realm editor, in MATLAB navigate to a virtual world file, right-click, and selectEdit

    笔记

    甜蜜REDIT.command opens the 3D World Editor, regardless of the default editor preference setting.

EditorPreServelayout.

Specifies whether the 3D World Editor starts up with a saved version of the layout of a virtual world when you exited it or reverts to the default layout. The layout of the virtual world display pane includes settings for the view, viewpoints, navigation, and rendering. Valid values are'off'and'在'。默认为on (use saved layout).

HttpPort

For remote access, IP port number used to access theSimulink 3D Animation通过HTTP在Web上服务器。如果更改此首选项,则必须在更改生效之前重新启动MATLAB软件。

TransportBuffer

对于远程访问,传输缓冲区的长度(网络数据包覆盖层)用于通信之间的通信Simulink 3D Animationserver and its clients.

运输机

Amount of time theSimulink 3D Animationserver waits for a reply from the client. If there is no response from the client, theSimulink 3D Animationserver disconnects from the client.

vrport.

对于远程访问,IP端口用于通信之间的通信Simulink 3D Animationserver and its clients. If you change this preference, you must restart the MATLAB software before the change takes effect.

HttpPortvrport.那andTransportBuffer首选项影响虚拟世界的基于Web的远程查看。默认FigurePositionanddefaultnavpanel.affect theSimulink 3D AnimationViewer.

defaultfigurenavpanel.— Controls the appearance of the navigation panel in theSimulink 3D AnimationViewer. For example, setting this value to'translucent'causes the navigation panel to appear translucent.

默认Viewer— Determines whether the virtual scene appears in the defaultSimulink 3D Animation查看器或您的Web浏览器。

默认ViewerSetting Description

'internal'

默认Simulink 3D AnimationViewer.

'web'

查看器是您的Web浏览器。

Editor- 包含虚拟世界编辑器可执行文件的路径。当你使用的时候editcommand,Simulink 3D Animationruns the virtual world editor executable with all parameters required to edit the virtual world file.

When you run the editor,Simulink 3D Animationuses theEditorpreference value as if you typed it into a command line. The following tokens are interpreted:

%matlabroot.

是指MATLAB根文件夹

%文件

Refers to the virtual world file name

For instance, a possible value for theEditorpreference is

`%matlabroot \ bin \ win64 \ medors.exe%文件'

如果this preference is empty, the MATLAB editor is used.

HttpPort-- Specifies the network port to be used for Web access. The port is given in the Web URL as follows:

http://server.name:port_number

这default value of this preference is8123

TransportBuffer- 定义客户端 - 服务器通信的消息窗口的大小。此值确定一次最大值的消息,可以在客户端和服务器之间旅行。

Generally, higher values for this preference make the animation run more smoothly, but with longer reaction times. (More messages in the line create a buffer that compensates for the unbalanced delays of the network transfer.)

这default value is5.,大多数目的是最佳的。只有当动画显着扭曲或反应时间非常慢时,您应该只会更改此值。在快速连接上,通过客户端渲染速度介绍延迟的情况下,此值效果很小。在主计算机上查看相当于极其快速的连接。在慢速连接上,正确的值可以显着提高渲染速度,但当然,绝对最大值由最大连接吞吐量确定。

vrport.— Specifies the network port to use for communication between theSimulink 3D Animationserver (host computer) and its clients (client computers). Normally, this communication is completely invisible to the user. However, if you view a virtual world from a client computer, you might need to configure the security network system (firewall) so that it allows connections on this port. The default value of this preference is8124

Introduced before R2006a