Virtual Reality Toolbox    

vrfigure Object Properties

A vrfigure object is a handle to the Virtual Reality Toolbox viewer window that allows you to get and set the viewer properties. A vrfigure object is a child object of a vrworld object.

The vrfigure object properties allow you to control the behavior of objects. The following table lists the properties for vrfigure objects.

Property
Value
Description  
Antialiasing
'off' | 'on'
Default: off
Determine whether antialiasing is used when rendering scene. Antialiasing smoothes textures by interpolating values between texture points. Read/write.
CameraBound
'off' | 'on'
Default: on
Control whether or not the camera moves with the current viewpoint. Read/write.
CameraDirection
Vector of three doubles
Specify the camera direction relative to the direction of the current viewpoint. Read/write.
CameraDirectionAbs
Vector of three doubles
Specify the camera direction in world coordinates. Read-only.
CameraPosition
Vector of three doubles
Specify the camera position relative to the position of the current viewpoint. Read/write.
CameraPositionAbs
Vector of three doubles
Specify the camera position in world coordinates. Read-only.
CameraUpVector
Vector of three doubles
Specify the camera up vector relative to the up vector of the current viewpoint. Read/write.
CameraUpVectorAbs
Vector of three doubles
Specify the camera up vector in world coordinates. Read-only.
DeleteFcn
String
Callback invoked when closing the vrfigure object. Read/write.
Headlight
'off' | 'on'
Default: on
Turn the headlight on or off. Read/write.
Lighting
'off' | 'on'
Default: on
Turn the lighting of the scene on or off. Without lighting, the scene loses its three-dimensional quality. Read/write.
Name
String
Name of this vrfigure object. Read/write.
PanelMode
'opaque' 'translucent' 'off'
'halfbar'
'bar'

Default: 'halfbar'
Control the appearance of the control panel in the Virtual Reality Toolbox viewer window. Read/write.
Position
Vector of four doubles
Screen coordinates of this vrfigure object. Read/write.
Textures
'off' | 'on'
Default: on
Turn texture rendering on or off. Read/write.
Transparency
'off' | 'on'
Default: on
Specify whether or not transparency information is taken into account when rendering. Read/write.
Viewpoint
String
If active viewpoint does not have a name, value is empty.
Vrfigure object's active viewpoint. Read/write.
Wireframe
'off' | 'on'
Default: off
Specify whether objects are drawn as solids or wireframes. Read/write.
World
Vrworld object
World this vrfigure object is displaying. Read-only
ZoomFactor
Double
Camera zoom factor. Read/write.


  vrfigure Object Reference vrfigure Object Methods