registerNodeType()

Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in book_prev() (line 775 of /home/drbiz/public/tools.realism.com/modules/book/book.module).

(node-name, component-name, definition-function)

A method for creating the definition of a node. The arguments are:

  • node-name: A string containing the name of the node
  • component-name: A string containing the name of the node's component (see X3D standard - 19775-1)
  • definition-function: The function that defines the node object. The utility function defineClass is usually used.

This method is (by convention) stored in a file with the same name as the node in the component directory.