<<VRML 2.0 - An Introductory view by examples

Anchor

[example-html]                                                   [run]
It retrieves the content of a URL when the user clicks some geometry contained within the Anchor node's children.


Parameters:


{                                                      
eventIn MFNode addChildren
eventIn MFNode removeChildren
exposedField MFNode children [ ]
exposedField SFString description
exposedField MFString parameter
exposedField MFString url
Field SFVec3f bboxCenter 0 0 0
Field SFVec3f bboxSize -1 -1 -1
}

add and removeChildren are eventIn and modify the current children of this node, defined by children [ ] . description permits to offer the user a more detailed textual explanation of the node when he calls it. description is one or more pairs "keyword=value" information to the browser. url is a http address or can be a node name (#name) e.g. for defining a Viewpoint. bbox parameters define the bounding box.



Example of usage :

Anchor
{
url "http://www.some.address.br/file.wrl"
children Shape { geometry Cone {} }
}