Titania X3D Editor

It starts with you!

Titania v3.0.4

It starts with you!

X3D Reference

Anchor

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 or loads content (such as X3D, an image or HTML) specified by the url field. Loaded content completely replaces current content, if parameter is same window.

The Anchor node belongs to the Networking component and its container field is children. It is available since X3D version 3.0 or later.

Hierarchy

* Derived from multiple interfaces.

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

SFString [in, out] description ""

Author-provided text tooltip that tells users the expected action of this node.

Hint

Many XML tools substitute XML character references automatically if needed (such as & for & ampersand, or " for " quotation mark).

MFString [in, out] url [ ] [URI]

Address of replacement world or #ViewpointDEFName, activated by clicking Anchor geometry.

Hints

Jump to a world's internal viewpoint by appending viewpoint name (e.g. #ViewpointName, someOtherCoolWorld.x3d#GrandTour). Jump to a local viewpoint by only using viewpoint name (e.g. #GrandTour). MFString arrays can have multiple values, so separate each individual string by quote marks "http://www.web3d.org" "http://www.web3d.org/about" "etc." XML encoding for quotation mark " is " (which is called a character entity). Can replace embedded blank(s) in url queries with %20 for each blank character. Pop up a new window with url value as follows: "JavaScript:window.open('popup.html','popup','width=240,height=240');location.href='HelloWorld.x3d'"

Warning

Strictly match directory and filename capitalization for http links! This is important for portability. Some operating systems are forgiving of capitalization mismatches, but http/https and other operating systems are not.

See Also

X3D Scene Authoring Hints, urls

MFString [in, out] parameter [ ]

If provided, parameter tells the X3D player where to to redirect the loaded url.

Hints

Set parameter value as target=_blank to load the target url into a new browser frame. Set parameter value as target=frame_name to load target url into another browser frame. MFString arrays can have multiple values, so separate each individual string by quote marks. "http://www.web3d.org" "http://www.web3d.org/about" "etc." Interchange profile hint: this field may be ignored, applying the default value regardless.

SFVec3f [ ] bboxSize -1 -1 -1 [0,∞) or −1 −1 −1

Bounding box size is usually omitted, and can easily be calculated automatically by an X3D player at scene-loading time with minimal computational cost. Bounding box size can also be defined as an optional authoring hint that suggests an optimization or constraint.

Hint

Can be useful for collision computations or inverse-kinematics (IK) engines.

SFVec3f [ ] bboxCenter 0 0 0 (-∞,∞)

Bounding box center: optional hint for position offset from origin of local coordinate system.

MFNode [in] addChildren

Input field addChildren.

MFNode [in] removeChildren

Input field removeChildren.

MFNode [in, out] children [ ] [X3DChildNode]

Grouping nodes contain a list of children nodes.

Hint

Each grouping node defines a coordinate space for its children, relative to the coordinate space of its parent node. Thus transformations accumulate down the scene graph hierarchy.

Description

Hint

  • Insert a Shape node before adding geometry or Appearance.

Browser Compatibility

Titania X_ITE
yes yes