Documentation Center

  • 評価版
  • 製品アップデート

vrnode

Create node or handle to existing node

Syntax

mynode = vrnode
mynode = vrnode([])
mynode = vrnode(vrworld_object,'node_name')
mynode = vrnode(vrworld_object, 'node_name','node_type')
mynode = vrnode(vrworld_object, 'USE', othernode)
mynode = vrnode(parent_node,'parent_field', 'node_name', 
'node_type')
mynode = vrnode(parent_node,'parent_field', 'USE', 
'othernode')

Arguments

vrworld_object

Name of a vrworld object representing a virtual world.

node_name

Name of the node.

node_type

Type of the node.

parent_node

Name of the parent node that is a vrnode object.

parent_field

Name of the field of the parent node.

'USE'

Enables a USE reference to another node.

othernode

Name of another node for a USE reference.

Description

mynode = vrnode creates an empty vrnode handle that does not reference any node.

mynode = vrnode([]) creates an empty array of vrnode handles.

mynode = vrnode(vrworld_object,'node_name') creates a handle to an existing named node in the virtual world.

mynode = vrnode(vrworld_object, 'node_name','node_type') creates a new node called node_name of type node_type on the root of the virtual world. It returns the handle to the newly created node.

mynode = vrnode(vrworld_object, 'USE', othernode) creates a USE reference to the node othernode on the root of the world vrworld_object. It returns the handle to the virtual world to the original node.

mynode = vrnode(parent_node,'parent_field', 'node_name','node_type') creates a new node called node_name of type node_type that is a child of the parent_node and resides in the field parent_field. It returns the handle to the newly created node.

mynode = vrnode(parent_node,'parent_field', 'USE', 'othernode') creates a USE reference to the node othernode as a child of node parentnode and resides in the field parentfield. It returns the handle to the original node.

A vrnode object identifies a virtual world node in a way very similar to a handle. If you apply the vrnode method to a node that does not exist, the method creates a node, the vrnode object, and returns the handle to the vrnode object. If you apply the vrnode method to an existing node, the method returns the handle to the vrnode object associated with this node.

Method Summary

MethodDescription
deleteRemove vrnode object
fieldsVRML field summary of node object
getProperty value of vrnode object
getfieldField value of vrnode object
isvalid1 if vrnode object is valid, 0 if not
setChange property of virtual world node
setfieldChange field value of vrnode object
syncEnable or disable synchronization of VRML fields with client

See Also

| | | | |

Was this topic helpful?