User`s guide
5 Build Virtual Reality Worlds
5-26
To ensure backward compatibility with existing models and applications, use the
Simulink 3D Animation vrsetpref function to define the data type support. Their
names are as follows:
Property Description
DataTypeBool Specifies the boolean data type for vrnode/setfield and
vrnode/getfield. Valid values are 'logical' and 'char'. If
set to 'logical', the VRML boolean data type is returned as
a logical value. If set to 'char', the VRML boolean data type is
returned 'on' or 'off'.
DataTypeInt32 Specifies the int32 data type for vrnode/setfield and
vrnode/getfield. Valid values are 'int32' and 'double'. If
set to 'int32', the VRML int32 data type is returned as int32.
If set to 'double', the VRML int32 data type is returned as
'double'.
DataTypeFloat Specifies the float data type for vrnode/setfield and
vrnode/getfield. Valid values are 'single' and 'double'.
If set to 'single', the VRML float and color data types (the
types of most VRML fields) are returned as 'single'. If set to
'double', the VRML float and color data types are returned
as 'double'.
VRML Data Class Types
A node can contain four classes of data: field, exposedField, eventIn, and
eventOut. These classes define the behavior of the nodes, the way the nodes are stored
in the computer memory, and how they can interact with other nodes and external
objects.
VRML Data Class Description
eventIn An event that can be received by the node
eventOut An event that can be sent by the node
field A private node member, holding node data
exposedField A public node member, holding node data