x_ite 8.6.23 → 8.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +34 -39
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +18 -18
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +32 -32
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +22 -22
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +26 -26
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +20 -20
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +28 -28
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +1116 -1685
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +25 -25
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +313 -271
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/docs/_posts/accessing-the-external-browser.md +1 -1
- package/docs/_posts/components/Geospatial/GeoViewpoint.md +41 -0
- package/docs/_posts/components/Navigation/OrthoViewpoint.md +41 -0
- package/docs/_posts/components/Navigation/Viewpoint.md +41 -0
- package/docs/_posts/components/Networking/Inline.md +1 -1
- package/docs/_posts/components/X_ITE/BlendMode.md +1 -1
- package/docs/_posts/getting-started.md +4 -1
- package/docs/_posts/glossary.md +3 -3
- package/docs/_posts/laboratory/x3d-file-converter.md +1 -1
- package/docs/_posts/reference/browser-services.md +48 -20
- package/docs/_posts/reference/field-services-and-objects.md +23 -23
- package/docs/_posts/reference/scene-services.md +1 -1
- package/docs/_posts/supported-nodes.md +1 -1
- package/docs/_posts/tutorials/basic-nodes.md +1 -1
- package/docs/_posts/tutorials/building-a-x3d-world.md +1 -1
- package/docs/_posts/tutorials/building-primitive-shapes.md +1 -1
- package/docs/_posts/tutorials/increasing-rendering-speed.md +1 -1
- package/docs/_posts/tutorials/introducing-x3d.md +1 -1
- package/docs/_posts/tutorials/overview.md +1 -1
- package/docs/_posts/what's-new.md +11 -1
- package/package.json +4 -4
- package/src/x_ite/Base/X3DBaseNode.js +2 -1
- package/src/x_ite/Base/X3DField.js +4 -4
- package/src/x_ite/Base/X3DFieldDefinition.js +7 -4
- package/src/x_ite/Browser/Core/BrowserOptions.js +12 -4
- package/src/x_ite/Browser/Core/X3DCoreContext.js +79 -31
- package/src/x_ite/Browser/NURBS/NURBS.js +3 -3
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +2 -2
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +10 -11
- package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -5
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +58 -31
- package/src/x_ite/Browser/X3DBrowserContext.js +0 -4
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +9 -14
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +6 -6
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +14 -34
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +9 -36
- package/src/x_ite/Components/NURBS/NurbsCurve.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +1 -1
- package/src/x_ite/Components/Picking/LinePickSensor.js +2 -2
- package/src/x_ite/Components/Picking/PointPickSensor.js +2 -2
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +2 -2
- package/src/x_ite/Components/Picking/VolumePickSensor.js +2 -2
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +1 -1
- package/src/x_ite/Components/Sound/ListenerPointSource.js +2 -1
- package/src/x_ite/Components/Sound/MicrophoneSource.js +2 -1
- package/src/x_ite/Components/Sound/OscillatorSource.js +2 -1
- package/src/x_ite/Components/Sound/StreamAudioSource.js +2 -1
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +3 -0
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +2 -2
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +2 -2
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +2 -2
- package/src/x_ite/Configuration/ComponentInfo.js +7 -4
- package/src/x_ite/Configuration/ProfileInfo.js +7 -4
- package/src/x_ite/Configuration/UnitInfo.js +5 -5
- package/src/x_ite/Execution/X3DScene.js +4 -7
- package/src/x_ite/Fields/SFNode.js +5 -5
- package/src/x_ite/Fields.js +5 -4
- package/src/x_ite/Parser/JSONParser.js +1 -1
- package/src/x_ite/Parser/X3DParser.js +1 -1
- package/src/x_ite/X3DCanvasElement.js +4 -4
- package/src/x_ite.html +1 -1
- package/x_ite.min.html +1 -1
package/dist/x_ite.zip
CHANGED
|
Binary file
|
package/docs/_config.yml
CHANGED
|
@@ -17,7 +17,7 @@ If you want combine DOM access with X3D access in your JavaScript functions then
|
|
|
17
17
|
There is the X3D object which is always available, it expects one function handler that is called when the browsers (\<x3d-canvas\> elements) are ready, and a second function handler, that is called if an error occurred. These two arguments are optional. The return value of the X3D function is a Promise, which can be used instead of the arguments.
|
|
18
18
|
|
|
19
19
|
```js
|
|
20
|
-
Promise X3D ([callback[, errorCallback]]);
|
|
20
|
+
Promise<void> X3D ([callback[, errorCallback]]);
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
The callback function is called when the browser is available. The callback function takes no arguments. The error callback is called if an error occurred, it has one argument *error.*
|
|
@@ -83,6 +83,47 @@ Rotation of Viewpoint, relative to default -Z axis direction in local coordinate
|
|
|
83
83
|
|
|
84
84
|
Preferred minimum viewing angle from this viewpoint in radians. Small field of view roughly corresponds to a telephoto lens, large field of view roughly corresponds to a wide-angle lens.
|
|
85
85
|
|
|
86
|
+
### SFFloat [in, out] **nearDistance** -1 <small>(0,∞)</small>
|
|
87
|
+
|
|
88
|
+
nearDistance defines minimum clipping plane distance necessary for object display.
|
|
89
|
+
|
|
90
|
+
#### Hints
|
|
91
|
+
|
|
92
|
+
- overrides bound NavigationInfo visibilityLimit value, if any.
|
|
93
|
+
- default value -1 means no effect on currently defined view frustum boundaries.
|
|
94
|
+
- [Aliasing](https://en.wikipedia.org/wiki/Aliasing){:target="_blank"} and [Clipping](https://en.wikipedia.org/wiki/Clipping_(computer_graphics)){:target="_blank"}
|
|
95
|
+
|
|
96
|
+
#### Warnings
|
|
97
|
+
|
|
98
|
+
- nearDistance must be less than farDistance.
|
|
99
|
+
|
|
100
|
+
### SFFloat [in, out] **farDistance** -1 <small>(0,∞)</small>
|
|
101
|
+
|
|
102
|
+
farDistance defines maximum clipping plane distance allowed for object display.
|
|
103
|
+
|
|
104
|
+
#### Hints
|
|
105
|
+
|
|
106
|
+
- overrides bound NavigationInfo visibilityLimit value, if any.
|
|
107
|
+
- default value -1 means no effect on currently defined view frustum boundaries.
|
|
108
|
+
- [Aliasing](https://en.wikipedia.org/wiki/Aliasing){:target="_blank"} and [Clipping](https://en.wikipedia.org/wiki/Clipping_(computer_graphics)){:target="_blank"}
|
|
109
|
+
|
|
110
|
+
#### Warnings
|
|
111
|
+
|
|
112
|
+
- nearDistance must be less than farDistance.
|
|
113
|
+
|
|
114
|
+
### SFBool [in, out] **viewAll** FALSE</small>
|
|
115
|
+
|
|
116
|
+
Viewpoint is automatically adjusted to view all visible geometry. Typically centerOfRotation is shifted to center of current bounding box and view is zoomed in or out until all visible objects are viewed.
|
|
117
|
+
|
|
118
|
+
#### Hints
|
|
119
|
+
|
|
120
|
+
- no collision detection or proximity sensing occurs when zooming.
|
|
121
|
+
- when the value of the viewAll field is changed from TRUE to FALSE, no change in the current view occurs.
|
|
122
|
+
|
|
123
|
+
#### Warning
|
|
124
|
+
|
|
125
|
+
- if needed, near and far clipping planes shall be adjusted to allow viewing the entire scene.
|
|
126
|
+
|
|
86
127
|
### SFBool [in, out] **jump** TRUE
|
|
87
128
|
|
|
88
129
|
Whether to transition instantly by jumping, or else smoothly animate to this Viewpoint.
|
|
@@ -77,6 +77,47 @@ Minimum and maximum extents of view in units of local coordinate system. Small f
|
|
|
77
77
|
|
|
78
78
|
- Minimum corner must remain less than maximum corner.
|
|
79
79
|
|
|
80
|
+
### SFFloat [in, out] **nearDistance** -1 <small>(0,∞)</small>
|
|
81
|
+
|
|
82
|
+
nearDistance defines minimum clipping plane distance necessary for object display.
|
|
83
|
+
|
|
84
|
+
#### Hints
|
|
85
|
+
|
|
86
|
+
- overrides bound NavigationInfo visibilityLimit value, if any.
|
|
87
|
+
- default value -1 means no effect on currently defined view frustum boundaries.
|
|
88
|
+
- [Aliasing](https://en.wikipedia.org/wiki/Aliasing){:target="_blank"} and [Clipping](https://en.wikipedia.org/wiki/Clipping_(computer_graphics)){:target="_blank"}
|
|
89
|
+
|
|
90
|
+
#### Warnings
|
|
91
|
+
|
|
92
|
+
- nearDistance must be less than farDistance.
|
|
93
|
+
|
|
94
|
+
### SFFloat [in, out] **farDistance** -1 <small>(0,∞)</small>
|
|
95
|
+
|
|
96
|
+
farDistance defines maximum clipping plane distance allowed for object display.
|
|
97
|
+
|
|
98
|
+
#### Hints
|
|
99
|
+
|
|
100
|
+
- overrides bound NavigationInfo visibilityLimit value, if any.
|
|
101
|
+
- default value -1 means no effect on currently defined view frustum boundaries.
|
|
102
|
+
- [Aliasing](https://en.wikipedia.org/wiki/Aliasing){:target="_blank"} and [Clipping](https://en.wikipedia.org/wiki/Clipping_(computer_graphics)){:target="_blank"}
|
|
103
|
+
|
|
104
|
+
#### Warnings
|
|
105
|
+
|
|
106
|
+
- nearDistance must be less than farDistance.
|
|
107
|
+
|
|
108
|
+
### SFBool [in, out] **viewAll** FALSE</small>
|
|
109
|
+
|
|
110
|
+
Viewpoint is automatically adjusted to view all visible geometry. Typically centerOfRotation is shifted to center of current bounding box and view is zoomed in or out until all visible objects are viewed.
|
|
111
|
+
|
|
112
|
+
#### Hints
|
|
113
|
+
|
|
114
|
+
- no collision detection or proximity sensing occurs when zooming.
|
|
115
|
+
- when the value of the viewAll field is changed from TRUE to FALSE, no change in the current view occurs.
|
|
116
|
+
|
|
117
|
+
#### Warning
|
|
118
|
+
|
|
119
|
+
- if needed, near and far clipping planes shall be adjusted to allow viewing the entire scene.
|
|
120
|
+
|
|
80
121
|
### SFBool [in, out] **jump** TRUE
|
|
81
122
|
|
|
82
123
|
Transition instantly by jumping, or smoothly adjust offsets in place when changing to this Viewpoint.
|
|
@@ -77,6 +77,47 @@ Preferred minimum viewing angle from this viewpoint in radians. Small field of v
|
|
|
77
77
|
|
|
78
78
|
- FieldOfView may not be correct for different window sizes and aspect ratios. Interchange profile hint: this field may be ignored, applying the default value regardless.
|
|
79
79
|
|
|
80
|
+
### SFFloat [in, out] **nearDistance** -1 <small>(0,∞)</small>
|
|
81
|
+
|
|
82
|
+
nearDistance defines minimum clipping plane distance necessary for object display.
|
|
83
|
+
|
|
84
|
+
#### Hints
|
|
85
|
+
|
|
86
|
+
- overrides bound NavigationInfo visibilityLimit value, if any.
|
|
87
|
+
- default value -1 means no effect on currently defined view frustum boundaries.
|
|
88
|
+
- [Aliasing](https://en.wikipedia.org/wiki/Aliasing){:target="_blank"} and [Clipping](https://en.wikipedia.org/wiki/Clipping_(computer_graphics)){:target="_blank"}
|
|
89
|
+
|
|
90
|
+
#### Warnings
|
|
91
|
+
|
|
92
|
+
- nearDistance must be less than farDistance.
|
|
93
|
+
|
|
94
|
+
### SFFloat [in, out] **farDistance** -1 <small>(0,∞)</small>
|
|
95
|
+
|
|
96
|
+
farDistance defines maximum clipping plane distance allowed for object display.
|
|
97
|
+
|
|
98
|
+
#### Hints
|
|
99
|
+
|
|
100
|
+
- overrides bound NavigationInfo visibilityLimit value, if any.
|
|
101
|
+
- default value -1 means no effect on currently defined view frustum boundaries.
|
|
102
|
+
- [Aliasing](https://en.wikipedia.org/wiki/Aliasing){:target="_blank"} and [Clipping](https://en.wikipedia.org/wiki/Clipping_(computer_graphics)){:target="_blank"}
|
|
103
|
+
|
|
104
|
+
#### Warnings
|
|
105
|
+
|
|
106
|
+
- nearDistance must be less than farDistance.
|
|
107
|
+
|
|
108
|
+
### SFBool [in, out] **viewAll** FALSE</small>
|
|
109
|
+
|
|
110
|
+
Viewpoint is automatically adjusted to view all visible geometry. Typically centerOfRotation is shifted to center of current bounding box and view is zoomed in or out until all visible objects are viewed.
|
|
111
|
+
|
|
112
|
+
#### Hints
|
|
113
|
+
|
|
114
|
+
- no collision detection or proximity sensing occurs when zooming.
|
|
115
|
+
- when the value of the viewAll field is changed from TRUE to FALSE, no change in the current view occurs.
|
|
116
|
+
|
|
117
|
+
#### Warning
|
|
118
|
+
|
|
119
|
+
- if needed, near and far clipping planes shall be adjusted to allow viewing the entire scene.
|
|
120
|
+
|
|
80
121
|
### SFBool [in, out] **jump** TRUE
|
|
81
122
|
|
|
82
123
|
Transition instantly by jumping, or smoothly adjust offsets in place when changing to this Viewpoint.
|
|
@@ -13,7 +13,7 @@ tags: [Inline, Networking]
|
|
|
13
13
|
|
|
14
14
|
## Overview
|
|
15
15
|
|
|
16
|
-
Inline is
|
|
16
|
+
Inline is an X3DBoundedObject node that can load nodes from another X3D scene via url.
|
|
17
17
|
|
|
18
18
|
The Inline node belongs to the **Networking** component and its default container field is *children.* It is available since X3D version 2.0 or later.
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ tags: [BlendMode, X_ITE]
|
|
|
13
13
|
|
|
14
14
|
## Overview
|
|
15
15
|
|
|
16
|
-
BlendMode controls how pixels of an objects are drawn. Pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in the frame buffer (the destination values). BlendMode is
|
|
16
|
+
BlendMode controls how pixels of an objects are drawn. Pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in the frame buffer (the destination values). BlendMode is an X3DAppearanceChildNode node that handles blend operations.
|
|
17
17
|
|
|
18
18
|
The BlendMode node belongs to the **X_ITE** component and its default container field is *blendMode.* It is available in Titania and X_ITE.
|
|
19
19
|
|
|
@@ -559,6 +559,9 @@ If you are a developer or you always wanna be up to date:
|
|
|
559
559
|
<script src="https://create3000.github.io/code/x_ite/latest/x_ite.min.js"></script>
|
|
560
560
|
```
|
|
561
561
|
|
|
562
|
+
>**Info:** It is no longer necessary to include the CSS file.
|
|
563
|
+
{: .prompt-info }
|
|
564
|
+
|
|
562
565
|
### jsDelivr CDN
|
|
563
566
|
|
|
564
567
|
Open Source CDN, free, fast, and reliable.
|
|
@@ -680,7 +683,7 @@ A Boolean value (`true` or `false`) to indicate whether rendering should use har
|
|
|
680
683
|
|
|
681
684
|
### baseURL
|
|
682
685
|
|
|
683
|
-
A String value containing the URL against which relative URLs are resolved. By default, this is the address of the web page itself. Although this feature is rarely needed, it can be useful when loading a `data:` URL with the *src* attribute, or with `Browser.loadURL
|
|
686
|
+
A String value containing the URL against which relative URLs are resolved. By default, this is the address of the web page itself. Although this feature is rarely needed, it can be useful when loading a `data:` URL with the *src* attribute, or with `Browser.loadURL`, or when using `Browser.createX3DFromString`. This will only have an effect on the external browser.
|
|
684
687
|
|
|
685
688
|
### cache
|
|
686
689
|
|
package/docs/_posts/glossary.md
CHANGED
|
@@ -201,7 +201,7 @@ Adding a node as the child of another node of the same type. For example, Transf
|
|
|
201
201
|
|
|
202
202
|
### node
|
|
203
203
|
|
|
204
|
-
The basic unit of
|
|
204
|
+
The basic unit of an X3D file. A node contains data for the scene in the form of *fields.* Some nodes also contain *events* (outgoing, incoming, or both).
|
|
205
205
|
|
|
206
206
|
### normal vector
|
|
207
207
|
|
|
@@ -269,7 +269,7 @@ Connection from an outgoing event to an incoming event of the same type.
|
|
|
269
269
|
|
|
270
270
|
### scene
|
|
271
271
|
|
|
272
|
-
The collection of 3D objects defined in
|
|
272
|
+
The collection of 3D objects defined in an X3D file; also referred to as a *world,* especially if it is large and immersive.
|
|
273
273
|
|
|
274
274
|
### script
|
|
275
275
|
|
|
@@ -289,7 +289,7 @@ Shading refers to the application of a reflection model over the surface of an o
|
|
|
289
289
|
|
|
290
290
|
### shape
|
|
291
291
|
|
|
292
|
-
The combination of geometry an appearance properties that describe a 3D object in
|
|
292
|
+
The combination of geometry an appearance properties that describe a 3D object in an X3D scene.
|
|
293
293
|
|
|
294
294
|
### siblings
|
|
295
295
|
|
|
@@ -157,7 +157,7 @@ $(() =>
|
|
|
157
157
|
|
|
158
158
|
## Upload and Convert
|
|
159
159
|
|
|
160
|
-
Convert **X3D, VRML, glTF (GLB), OBJ, STL,** and **SVG** to
|
|
160
|
+
Convert **X3D, VRML, glTF (GLB), OBJ, STL,** and **SVG** to an X3D format of your choice.
|
|
161
161
|
|
|
162
162
|
<div id="drop-zone">
|
|
163
163
|
<p id="open-files" class="center">
|
|
@@ -33,7 +33,7 @@ The current frame rate in frames per second.
|
|
|
33
33
|
|
|
34
34
|
#### **description**
|
|
35
35
|
|
|
36
|
-
A user-defined
|
|
36
|
+
A user-defined String which can be read and written.
|
|
37
37
|
|
|
38
38
|
#### **supportedComponents**
|
|
39
39
|
|
|
@@ -43,9 +43,13 @@ The property value cannot be changed, but the properties of the ComponentInfoArr
|
|
|
43
43
|
|
|
44
44
|
The property value cannot be changed, but the properties of the ProfileInfoArray can be.
|
|
45
45
|
|
|
46
|
+
#### **baseURL**
|
|
47
|
+
|
|
48
|
+
A String value containing the URL against which relative URLs are resolved. By default, this is the address of the web page itself. Although this feature is rarely needed, it can be useful when loading a `data:` URL with `Browser.loadURL`, or when using `Browser.createX3DFromString`. This will only have an effect on the external browser.
|
|
49
|
+
|
|
46
50
|
#### **currentScene**
|
|
47
51
|
|
|
48
|
-
The real type of this class is dependent on whether the user code is inside a prototype instance or not. If the user code is inside a prototype instance the property represent
|
|
52
|
+
The real type of this class is dependent on whether the user code is inside a prototype instance or not. If the user code is inside a prototype instance the property represent an X3DExecutionContext otherwise it represent an X3DScene.
|
|
49
53
|
|
|
50
54
|
### Methods
|
|
51
55
|
|
|
@@ -53,27 +57,29 @@ The real type of this class is dependent on whether the user code is inside a pr
|
|
|
53
57
|
|
|
54
58
|
Replace the current world with this new scene that has been loaded or constructed from somewhere. A Promise is returned that will be resolved when the scene is completely loaded.
|
|
55
59
|
|
|
56
|
-
#### X3DScene **createX3DFromString** (*String x3dSyntax*)
|
|
60
|
+
#### Promise\<X3DScene\> **createX3DFromString** (*String x3dSyntax*)
|
|
57
61
|
|
|
58
62
|
The string may be any valid X3D content in any language supported by the browser implementation. If the browser does not support the content encoding the appropriate exception will be thrown.
|
|
59
63
|
|
|
60
|
-
#### void
|
|
64
|
+
#### void **createX3DFromURL** (*MFString url, Node node, String event*)
|
|
65
|
+
|
|
66
|
+
Parse the passed URL into an X3D scene. When complete send the passed event to the passed node. The event is a string with the name of an MFNode inputOnly field of the passed node.
|
|
61
67
|
|
|
62
|
-
|
|
68
|
+
#### Promise\<X3DScene\> **createX3DFromURL** (*MFString url*)
|
|
63
69
|
|
|
64
|
-
|
|
70
|
+
Parse the passed URL into an X3D scene and return a Promise that resolves to an X3DScene object.
|
|
65
71
|
|
|
66
72
|
#### Promise\<void\> **loadURL** (*MFString url [, MFString parameter]*)
|
|
67
73
|
|
|
68
74
|
Load the passed URL, using the passed parameter string to possibly redirect it to another frame. If the destination is the frame containing the current scene, this method may never return. The return value is a Promise object, that is resolved when the new scene is loaded.
|
|
69
75
|
|
|
70
|
-
#### Promise\<X3DScene\> **importDocument** (*DOMObject dom*)
|
|
76
|
+
#### Promise\<X3DScene\> **importDocument** (*DOMObject|String dom*)
|
|
71
77
|
|
|
72
|
-
Imports
|
|
78
|
+
Imports an X3D XML DOM document or fragment, converts it, and returns a Promise that resolves to an X3DScene object.
|
|
73
79
|
|
|
74
|
-
#### Promise\<X3DScene\> **importJS** (*Object json*)
|
|
80
|
+
#### Promise\<X3DScene\> **importJS** (*Object|String json*)
|
|
75
81
|
|
|
76
|
-
Imports
|
|
82
|
+
Imports an X3D JSON document or fragment, converts it, and returns a Promise that resolves to an X3DScene object.
|
|
77
83
|
|
|
78
84
|
#### String **getBrowserProperty** (*String name*)
|
|
79
85
|
|
|
@@ -182,20 +188,20 @@ Returns a browser option with the corresponding name.
|
|
|
182
188
|
<tr>
|
|
183
189
|
<td>PrimitiveQuality</td>
|
|
184
190
|
<td>Render quality (tesselation level) for Box, Cone, Cylinder, Sphere.</td>
|
|
185
|
-
<td>
|
|
186
|
-
<td>
|
|
191
|
+
<td>LOW, MEDIUM, HIGH</td>
|
|
192
|
+
<td>MEDIUM</td>
|
|
187
193
|
</tr>
|
|
188
194
|
<tr>
|
|
189
195
|
<td>QualityWhenMoving</td>
|
|
190
196
|
<td>Render quality while camera is moving.</td>
|
|
191
|
-
<td>
|
|
192
|
-
<td>
|
|
197
|
+
<td>LOW, MEDIUM, HIGH, SAME (as while stationary)</td>
|
|
198
|
+
<td>SAME</td>
|
|
193
199
|
</tr>
|
|
194
200
|
<tr>
|
|
195
201
|
<td>Shading</td>
|
|
196
202
|
<td>Specify shading mode for all objects.</td>
|
|
197
|
-
<td>
|
|
198
|
-
<td>
|
|
203
|
+
<td>POINT, WIREFRAME, FLAT, GOURAUD, PHONG</td>
|
|
204
|
+
<td>GOURAUD</td>
|
|
199
205
|
</tr>
|
|
200
206
|
<tr>
|
|
201
207
|
<td>SplashScreen</td>
|
|
@@ -206,8 +212,8 @@ Returns a browser option with the corresponding name.
|
|
|
206
212
|
<tr>
|
|
207
213
|
<td>TextureQuality</td>
|
|
208
214
|
<td>Quality of texture map display.</td>
|
|
209
|
-
<td>
|
|
210
|
-
<td>
|
|
215
|
+
<td>LOW, MEDIUM, HIGH</td>
|
|
216
|
+
<td>MEDIUM</td>
|
|
211
217
|
</tr>
|
|
212
218
|
<tr>
|
|
213
219
|
<td>Cache</td>
|
|
@@ -351,7 +357,7 @@ Returns a rendering property with the corresponding *name*.
|
|
|
351
357
|
|
|
352
358
|
#### void **addBrowserCallback** (*Any key, Function callback*)
|
|
353
359
|
|
|
354
|
-
Adds a browser *callback* function associated with *key,* where *key* can be of any type. The callback function is called when a browser event has been occurred. The signature of the callback function is
|
|
360
|
+
Adds a browser *callback* function associated with *key,* where *key* can be of any type. The callback function is called when a browser event has been occurred. The signature of the callback function is `function (browserEvent)`, where browserEvent can be any value listed below:
|
|
355
361
|
|
|
356
362
|
- X3DConstants .CONNECTION_ERROR
|
|
357
363
|
- X3DConstants .BROWSER_EVENT
|
|
@@ -385,7 +391,7 @@ Changes the bound viewpoint node to the last viewpoint in the list of user viewp
|
|
|
385
391
|
|
|
386
392
|
#### void **changeViewpoint** (*[SFNode layerNode,] name String*)
|
|
387
393
|
|
|
388
|
-
Changes the bound viewpoint node to the viewpoint named name
|
|
394
|
+
Changes the bound viewpoint node to the viewpoint named *name*. The viewpoint must be available in *layerNode*. If *layerNode* is omitted, the active layer is used.
|
|
389
395
|
|
|
390
396
|
#### void **print** (*Object object*)
|
|
391
397
|
|
|
@@ -397,22 +403,40 @@ Prints *object* to the browser's console, inserting a newline character after th
|
|
|
397
403
|
|
|
398
404
|
### VRML Methods
|
|
399
405
|
|
|
406
|
+
To be downward compatible with VRML, the following additional functions are available:
|
|
407
|
+
|
|
400
408
|
#### String **getName** ()
|
|
401
409
|
|
|
410
|
+
A browser-implementation specific string describing the browser.
|
|
411
|
+
|
|
402
412
|
#### String **getVersion** ()
|
|
403
413
|
|
|
414
|
+
A browser-implementation specific string describing the browser version.
|
|
415
|
+
|
|
404
416
|
#### Number **getCurrentSpeed** ()
|
|
405
417
|
|
|
418
|
+
The current speed of the avatar in m/s.
|
|
419
|
+
|
|
406
420
|
#### Number **getCurrentFrameRate** ()
|
|
407
421
|
|
|
422
|
+
The current frame rate in frames per second.
|
|
423
|
+
|
|
408
424
|
#### String **getWorldURL** ()
|
|
409
425
|
|
|
426
|
+
A string containing the URL of this execution context.
|
|
427
|
+
|
|
410
428
|
#### void **replaceWorld** (*MFNode nodes*)
|
|
411
429
|
|
|
430
|
+
Replace the current world with this new nodes that has been loaded or constructed from somewhere.
|
|
431
|
+
|
|
412
432
|
#### MFNode **createVrmlFromString** (*String vrmlSyntax*)
|
|
413
433
|
|
|
434
|
+
The string may be any valid VRML content.
|
|
435
|
+
|
|
414
436
|
#### void **createVrmlFromURL** (*MFString url, SFNode node, String event*)
|
|
415
437
|
|
|
438
|
+
Parse the passed URL into an VRML scene. When complete send the passed event to the passed node. The event is a string with the name of an MFNode inputOnly field of the passed node.
|
|
439
|
+
|
|
416
440
|
#### void **addRoute** (*SFNode sourceNode, String sourceField, SFNode destinationNode, String destinationField*)
|
|
417
441
|
|
|
418
442
|
Add a route from the passed *sourceField* to the passed *destinationField*.
|
|
@@ -423,4 +447,8 @@ Remove the route between the passed *sourceField* and passed *destinationField*,
|
|
|
423
447
|
|
|
424
448
|
#### void **loadURL** (*MFString url [, MFString parameter]*)
|
|
425
449
|
|
|
450
|
+
Load the passed URL, using the passed parameter string to possibly redirect it to another frame. If the destination is the frame containing the current scene, this method may never return.
|
|
451
|
+
|
|
426
452
|
#### void **setDescription** (*String description*)
|
|
453
|
+
|
|
454
|
+
A user-defined String.
|
|
@@ -112,7 +112,7 @@ Returns true if the passed SF* or MF* *field* of the same type is equals to this
|
|
|
112
112
|
|
|
113
113
|
## SFColor Object
|
|
114
114
|
|
|
115
|
-
The SFColor object corresponds to
|
|
115
|
+
The SFColor object corresponds to an X3D SFColor field. All properties are accessed using the syntax *sfColorObjectName.<property>*, where *sfColorObjectName* is an instance of a SFColor object. All methods are invoked using the syntax *sfColorObjectName.method (<argument-list>*), where *sfColorObjectName* is an instance of a SFColor object.
|
|
116
116
|
|
|
117
117
|
### Instance Creation Method(s)
|
|
118
118
|
|
|
@@ -156,7 +156,7 @@ Linearely interpolate in HSV space between source color and destination color by
|
|
|
156
156
|
|
|
157
157
|
## SFColorRGBA Object
|
|
158
158
|
|
|
159
|
-
The SFColorRGBA object corresponds to
|
|
159
|
+
The SFColorRGBA object corresponds to an X3D SFColorRGBA field. All properties are accessed using the syntax *sfColorRGBAObjectName.<property>*, where *sfColorRGBAObjectName* is an instance of a SFColorRGBA object. All methods are invoked using the syntax *sfColorRGBAObjectName.method (<argument-list>*), where *sfColorRGBAObjectName* is an instance of a SFColorRGBA object.
|
|
160
160
|
|
|
161
161
|
### Instance Creation Method(s)
|
|
162
162
|
|
|
@@ -204,7 +204,7 @@ Linearely interpolate in HSVA space between source color and destination color b
|
|
|
204
204
|
|
|
205
205
|
## SFImage Object
|
|
206
206
|
|
|
207
|
-
The SFImage object corresponds to
|
|
207
|
+
The SFImage object corresponds to an X3D SFImage field.
|
|
208
208
|
|
|
209
209
|
### Instance Creation Method(s)
|
|
210
210
|
|
|
@@ -367,13 +367,13 @@ Returns a SFVec3d/f whose value is the object's 3×3 submatrix multiplied by the
|
|
|
367
367
|
|
|
368
368
|
## SFNode Object
|
|
369
369
|
|
|
370
|
-
The SFNode object corresponds to
|
|
370
|
+
The SFNode object corresponds to an X3D SFNode field.
|
|
371
371
|
|
|
372
372
|
### Instance Creation Method(s)
|
|
373
373
|
|
|
374
374
|
#### *sfNodeObjectName* = new **SFNode** (*x3dsyntax*)
|
|
375
375
|
|
|
376
|
-
*x3dsyntax* is a UTF-8 string containing the definition of
|
|
376
|
+
*x3dsyntax* is a UTF-8 string containing the definition of an X3D node.
|
|
377
377
|
|
|
378
378
|
### Properties
|
|
379
379
|
|
|
@@ -427,7 +427,7 @@ For options see [X3DScene.toVRMLString](scene-services#string-tovrmlstring-optio
|
|
|
427
427
|
|
|
428
428
|
## SFRotation Object
|
|
429
429
|
|
|
430
|
-
The SFRotation object corresponds to
|
|
430
|
+
The SFRotation object corresponds to an X3D SFRotation field.
|
|
431
431
|
|
|
432
432
|
### Instance Creation Method(s)
|
|
433
433
|
|
|
@@ -508,7 +508,7 @@ Returns a SFRotation whose value is the spherical linear interpolation between t
|
|
|
508
508
|
|
|
509
509
|
## SFVec2d/SFVec2f Object
|
|
510
510
|
|
|
511
|
-
The SFVec2d/f object corresponds to
|
|
511
|
+
The SFVec2d/f object corresponds to an X3D SFVec2d/f field. Each component of the vector can be accessed using the x and y properties or using C-style array dereferencing (i.e. *sfVec2d/fObjectName[0]* or *sfVec2d/fObjectName[1]).*
|
|
512
512
|
|
|
513
513
|
### Instance Creation Method(s)
|
|
514
514
|
|
|
@@ -598,7 +598,7 @@ Returns an SFVec2d/f whose value is the passed SFVec2d/f subtracted, componentwi
|
|
|
598
598
|
|
|
599
599
|
## SFVec3d/SFVec3f Object
|
|
600
600
|
|
|
601
|
-
The SFVec3d/f object corresponds to
|
|
601
|
+
The SFVec3d/f object corresponds to an X3D SFVec3d/f field. Each component of the vector can be accessed using the x, y, and z properties or using C-style array dereferencing (i.e. *sfVec3d/fObjectName[0], sfVec3d/fObjectName[1]* or *sfVec3d/fObjectName[2]).*
|
|
602
602
|
|
|
603
603
|
### Instance Creation Method(s)
|
|
604
604
|
|
|
@@ -696,7 +696,7 @@ Returns an SFVec3d/f whose value is the passed SFVec3d/f subtracted, componentwi
|
|
|
696
696
|
|
|
697
697
|
## SFVec4d/SFVec4d/f Object
|
|
698
698
|
|
|
699
|
-
The SFVec4d/f object corresponds to
|
|
699
|
+
The SFVec4d/f object corresponds to an X3D SFVec4d/f field. Each component of the vector can be accessed using the x, y, z and w properties or using C-style array dereferencing (i.e. *sfVec4d/fObjectName[0], sfVec4d/fObjectName[1], sfVec4d/fObjectName[2]* or *sfVec4d/fObjectName[3]).*
|
|
700
700
|
|
|
701
701
|
### Instance Creation Method(s)
|
|
702
702
|
|
|
@@ -818,7 +818,7 @@ Common Array functions like `at`, `concat`, `entries`, `every`, `fill`, `filter`
|
|
|
818
818
|
|
|
819
819
|
## MFBool Object
|
|
820
820
|
|
|
821
|
-
The MFBool object corresponds to
|
|
821
|
+
The MFBool object corresponds to an X3D MFBool field. It is used to store a one-dimensional array of SFBool objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfBoolObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to 0.0.
|
|
822
822
|
|
|
823
823
|
### Instance Creation Method(s)
|
|
824
824
|
|
|
@@ -838,7 +838,7 @@ None
|
|
|
838
838
|
|
|
839
839
|
## MFColor/MFColorRGBA Object
|
|
840
840
|
|
|
841
|
-
The MFColor/MFColorRGBA object corresponds to
|
|
841
|
+
The MFColor/MFColorRGBA object corresponds to an X3D MFColor/MFColorRGBA field. It is used to store a one-dimensional array of SFColor/SFColorRGBA objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfColorObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index* length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to SFColor (0, 0, 0) or SFColorRGBA.
|
|
842
842
|
|
|
843
843
|
### Instance Creation Method(s)
|
|
844
844
|
|
|
@@ -860,7 +860,7 @@ None
|
|
|
860
860
|
|
|
861
861
|
## MFDouble/MFFloat Object
|
|
862
862
|
|
|
863
|
-
The MFDouble/MFFloat object corresponds to
|
|
863
|
+
The MFDouble/MFFloat object corresponds to an X3D MFDouble/MFFloat field. It is used to store a one-dimensional array of SFFloat objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfFloatObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to 0.0.
|
|
864
864
|
|
|
865
865
|
### Instance Creation Method(s)
|
|
866
866
|
|
|
@@ -880,7 +880,7 @@ None
|
|
|
880
880
|
|
|
881
881
|
## MFImage Object
|
|
882
882
|
|
|
883
|
-
The MFImage object corresponds to
|
|
883
|
+
The MFImage object corresponds to an X3D MFImage field. It is used to store a one-dimensional array of SFImage objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfImageObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to SFImage (0,0,0).
|
|
884
884
|
|
|
885
885
|
### Instance Creation Method(s)
|
|
886
886
|
|
|
@@ -900,7 +900,7 @@ None
|
|
|
900
900
|
|
|
901
901
|
## MFInt32 Object
|
|
902
902
|
|
|
903
|
-
The MFInt32 object corresponds to
|
|
903
|
+
The MFInt32 object corresponds to an X3D MFInt32 field. It is used to store a one-dimensional array of SFInt32 objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfInt32ObjectName*[*index]*, where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to 0.
|
|
904
904
|
|
|
905
905
|
### Instance Creation Method(s)
|
|
906
906
|
|
|
@@ -920,7 +920,7 @@ None
|
|
|
920
920
|
|
|
921
921
|
## MFMatrix3d/MFMatrix3d/f Object
|
|
922
922
|
|
|
923
|
-
The MFMatrix3d/f object corresponds to
|
|
923
|
+
The MFMatrix3d/f object corresponds to an X3D MFMatrix3d/f field. It is used to store a one-dimensional array of SFMatrix3d/f objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfMatrix3d/fObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to NULL.
|
|
924
924
|
|
|
925
925
|
### Instance Creation Method(s)
|
|
926
926
|
|
|
@@ -940,7 +940,7 @@ None
|
|
|
940
940
|
|
|
941
941
|
## MFMatrix4d/MFMatrix4f Object
|
|
942
942
|
|
|
943
|
-
The MFMatrix4d/f object corresponds to
|
|
943
|
+
The MFMatrix4d/f object corresponds to an X3D MFMatrix4d/f field. It is used to store a one-dimensional array of SFMatrix4d/f objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfMatrix4d/fObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to NULL.
|
|
944
944
|
|
|
945
945
|
### Instance Creation Method(s)
|
|
946
946
|
|
|
@@ -960,7 +960,7 @@ None
|
|
|
960
960
|
|
|
961
961
|
## MFNode Object
|
|
962
962
|
|
|
963
|
-
The MFNode object corresponds to
|
|
963
|
+
The MFNode object corresponds to an X3D MFNode field. It is used to store a one-dimensional array of SFNode objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfNodeObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to NULL.
|
|
964
964
|
|
|
965
965
|
### Instance Creation Method(s)
|
|
966
966
|
|
|
@@ -996,7 +996,7 @@ For options see [X3DScene.toVRMLString](scene-services#string-tovrmlstring-optio
|
|
|
996
996
|
|
|
997
997
|
## MFRotation Object
|
|
998
998
|
|
|
999
|
-
The MFRotation object corresponds to
|
|
999
|
+
The MFRotation object corresponds to an X3D MFRotation field. It is used to store a one-dimensional array of SFRotation objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfRotationObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to SFRotation (0, 0, 1, 0).
|
|
1000
1000
|
|
|
1001
1001
|
### Instance Creation Method(s)
|
|
1002
1002
|
|
|
@@ -1016,7 +1016,7 @@ None
|
|
|
1016
1016
|
|
|
1017
1017
|
## MFString Object
|
|
1018
1018
|
|
|
1019
|
-
The MFString object corresponds to
|
|
1019
|
+
The MFString object corresponds to an X3D MFString field. It is used to store a one-dimensional array of String objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfStringObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to the empty string.
|
|
1020
1020
|
|
|
1021
1021
|
### Instance Creation Method(s)
|
|
1022
1022
|
|
|
@@ -1036,7 +1036,7 @@ None
|
|
|
1036
1036
|
|
|
1037
1037
|
## MFTime Object
|
|
1038
1038
|
|
|
1039
|
-
The MFTime object corresponds to
|
|
1039
|
+
The MFTime object corresponds to an X3D MFTime field. It is used to store a one-dimensional array of SFTime objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfTimeObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to the empty string.
|
|
1040
1040
|
|
|
1041
1041
|
### Instance Creation Method(s)
|
|
1042
1042
|
|
|
@@ -1056,7 +1056,7 @@ None
|
|
|
1056
1056
|
|
|
1057
1057
|
## MFVec2d/MFVec2f Object
|
|
1058
1058
|
|
|
1059
|
-
The MFVec2d/f object corresponds to
|
|
1059
|
+
The MFVec2d/f object corresponds to an X3D MFVec2d/f field. It is used to store a one-dimensional array of SFVec2d/f objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfVec2d/fObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to SFVec2d/f (0, 0).
|
|
1060
1060
|
|
|
1061
1061
|
### Instance Creation Method(s)
|
|
1062
1062
|
|
|
@@ -1076,7 +1076,7 @@ None
|
|
|
1076
1076
|
|
|
1077
1077
|
## MFVec3d/MFVec3d/f Object
|
|
1078
1078
|
|
|
1079
|
-
The MFVec3d/f object corresponds to
|
|
1079
|
+
The MFVec3d/f object corresponds to an X3D MFVec3d/f field. It is used to store a one-dimensional array of SFVec3d/f objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfVec3d/fObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to SFVec3d/f (0, 0, 0).
|
|
1080
1080
|
|
|
1081
1081
|
### Instance Creation Method(s)
|
|
1082
1082
|
|
|
@@ -1096,7 +1096,7 @@ None
|
|
|
1096
1096
|
|
|
1097
1097
|
## MFVec4d/MFVec4f Object
|
|
1098
1098
|
|
|
1099
|
-
The MFVec4d/f object corresponds to
|
|
1099
|
+
The MFVec4d/f object corresponds to an X3D MFVec4d/f field. It is used to store a one-dimensional array of SFVec4d/f objects. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *mfVec4d/fObjectName*[*index*], where *index* is an integer-valued expression with 0<=*index*<length and length is the number of elements in the array). Assigning to an element with *index* > length results in the array being dynamically expanded to contain length elements. All elements not explicitly initialized are set to SFVec4d/f (0, 0, 0, 0).
|
|
1100
1100
|
|
|
1101
1101
|
### Instance Creation Method(s)
|
|
1102
1102
|
|
|
@@ -92,7 +92,7 @@ Removes the imported node *importedName.*
|
|
|
92
92
|
|
|
93
93
|
#### X3DRoute **addRoute** (*SFNode sourceNode, String sourceField, SFNode destinationNode, String destinationField*)
|
|
94
94
|
|
|
95
|
-
Add a route from the passed *sourceField* to the passed *destinationField.* The return value is
|
|
95
|
+
Add a route from the passed *sourceField* to the passed *destinationField.* The return value is an X3DRoute object.
|
|
96
96
|
|
|
97
97
|
#### void **deleteRoute** (*X3DRoute route*)
|
|
98
98
|
|