X3D Example Archives: Conformance Nist, Grouping Nodes, Anchor

 

Anchor is a Grouping node that can contain most nodes. When the user selects any of the geometry contained by the Anchor node, it jumps to another viewpoint (similar to HTML bookmark) or else loads content (such as X3D, an image or HTML) specified by the url field. Newly loaded content completely replaces current content, if parameter value indicates using the same window.

X3D Tooltips of interest: Anchor.

X3D Specification sections of interest: 23 Navigation component, 9.2 Concepts and 9.4.1 Anchor.

X3D Examples Archives of related interest:

 
  18 X3D Models       X3D Model Descriptions
   bound_500 bound 500 This tests check the boundary condition of 500 children per grouping node. An Anchor node is defined with 500 children in its "children" field. Section 7.3 (Minimum Support Requirements) of the VRML specifications 500 children within a single grouping node. The test should generate 500 default color spheres and radius 0.3
   existing_file existing file This file is referenced by the "invalid_url" file as part of the invalid URL test. This file in particular should generate a blue box with some text on top of it.
   invalid_viewpoint invalid viewpoint Test browser to ignore a reference to a non existing viewpoint. The test should generate some text and a sphere. The sphere is a child of an Anchor node whose url field contains a reference to a viewpoint name that does not exists. The browser should ignore that reference and nothing should happen when the user clicks on the sphere.
   nested_anchor nested anchor This test defines an Anchor node whose url field is in turn another Anchor node. The test should generate a red sphere with some text on top. After the user clicks on the sphere, the browser should bring up a red box with some text on top. After the user clicks on the red box, the browser should bring up a blue box with some text on top of it. No viewpoints are associated with the url fields.
   new_world new world This is a collateral file used in other tests for this node.
   singleurl singleurl This is a collateral file used in other tests for this node.
   test_anchorclick test anchorclick This is a collateral file used for other tests of the Anchor node.
   test_anchorviewpoint test anchorviewpoint Test an Anchor with a Viewpoint. This test defines an Anchor node with a Shape node in its children (Text geometry). It references the fiie "test_viewanchor.x3d" its "url" field with user clicks on the text when the test is first started. A new viewpoint cone and the box are displayed.
   test_bboxsizesame test bboxsizesame Test bounding box parsing only. An Anchor node with a Shape node (IndexedFaceSet geometry) as a child is defined in the local coordinate system. A bboxSize of 2 2 2 and a bboxCenter of 0 0 0 is given to the Anchor node. The browser should parse the Anchor node without logo mapped to the front.
   test_mult_multurl test mult multurl Test browser to nest multiple Anchor nodes in the children field of a parent Anchor node. This test defines an Anchor node with three Shape nodes as children (within another Anchor node). Each child is associated with a different url. The files referenced in the url fields are stored in the same directory where the calling Anchor file is. The test should generate a blue box if the first sphere is clicked, a blue cone if the second one is clicked and a blue cylinder if the third one is clicked. No viewpoints are associated with the url fields.
   test_mult_singleurl test mult singleurl Test an Anchor to a single URL. This test defines an Anchor node with three Shape node as children. All children are associated with the same url. It basically test the ability of a browser to associate a single url entry with multiple blue box (with some text on top of it). No viewpoints are associated
   test_simpleAnchor test simple Anchor Test a simple Anchor reference, no viewpoints are used in the URL field. This defines an Anchor node with a Shape node as its child. with some text on top of it. When the user clikcs on the sphere, the browser should bring up another world consisting of a red box and some text on top of it.
   test_viewanchor test viewanchor This is a collateral file used in other tests for this node.
   test_viewpointonly test viewpointonly Test browser to bind a viewpoint to the current world by using the url field of an Anchor node. The test should generate some text whose viewpoint is changed to 0 0 20 when the user clicks on it.
   third_world third world This is a collateral file referenced by the "new_world.x3d" file as part of the "Anchor referencing another Anchor" test. This file in particular should generate a blue box with some text on top of it.
   url1 url 1 This is a collateral file used in other tests for this node.
   url2 url 2 This is a collateral file used in other tests for this node.
   url3 url 3 This is a collateral file used in other tests for this node.

The X3D Resources: Examples page and Savage Developers Guide provide more information about the production of this archive.