x_ite 4.7.8 → 4.7.9
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/build/parts/default.end.frag.js +1 -2
- package/build/parts/default.start.frag.js +1 -8
- package/build/parts/x_ite.end.frag.js +1 -3
- package/build/parts/x_ite.start.frag.js +1 -2
- package/dist/assets/components/annotation.js +2 -10
- package/dist/assets/components/annotation.min.js +1 -1
- package/dist/assets/components/cad-geometry.js +2 -10
- package/dist/assets/components/cad-geometry.min.js +1 -1
- package/dist/assets/components/cube-map-texturing.js +2 -10
- package/dist/assets/components/cube-map-texturing.min.js +1 -1
- package/dist/assets/components/dis.js +2 -10
- package/dist/assets/components/dis.min.js +1 -1
- package/dist/assets/components/event-utilities.js +2 -10
- package/dist/assets/components/event-utilities.min.js +1 -1
- package/dist/assets/components/geometry2d.js +2 -10
- package/dist/assets/components/geometry2d.min.js +1 -1
- package/dist/assets/components/geospatial.js +2 -10
- package/dist/assets/components/geospatial.min.js +2 -2
- package/dist/assets/components/h-anim.js +2 -10
- package/dist/assets/components/h-anim.min.js +1 -1
- package/dist/assets/components/key-device-sensor.js +2 -10
- package/dist/assets/components/key-device-sensor.min.js +1 -1
- package/dist/assets/components/layout.js +2 -10
- package/dist/assets/components/layout.min.js +1 -1
- package/dist/assets/components/nurbs.js +2 -10
- package/dist/assets/components/nurbs.min.js +2 -2
- package/dist/assets/components/particle-systems.js +2 -10
- package/dist/assets/components/particle-systems.min.js +2 -2
- package/dist/assets/components/picking.js +2 -10
- package/dist/assets/components/picking.min.js +1 -1
- package/dist/assets/components/projective-texture-mapping.js +2 -10
- package/dist/assets/components/projective-texture-mapping.min.js +1 -1
- package/dist/assets/components/rigid-body-physics.js +2 -10
- package/dist/assets/components/rigid-body-physics.min.js +17 -17
- package/dist/assets/components/scripting.js +2 -10
- package/dist/assets/components/scripting.min.js +1 -1
- package/dist/assets/components/texturing-3d.js +2 -10
- package/dist/assets/components/texturing-3d.min.js +41 -41
- package/dist/assets/components/volume-rendering.js +2 -10
- package/dist/assets/components/volume-rendering.min.js +3 -3
- package/dist/assets/components/x_ite.js +2 -10
- package/dist/assets/components/x_ite.min.js +1 -1
- package/dist/example.html +2 -2
- package/dist/x_ite.css +4 -3
- package/dist/x_ite.js +117 -95
- package/dist/x_ite.min.js +41 -41
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/docs/index.md +2 -2
- package/package.json +5 -3
- package/src/locale/de.po +4 -4
- package/src/locale/fr.po +4 -4
- package/src/x_ite/Browser/Core/BrowserTimings.js +1 -3
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +1 -3
- package/src/x_ite/Browser/Networking/urls.js +24 -6
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Fields/SFColor.js +15 -2
- package/src/x_ite/Fields/SFDouble.js +1 -1
- package/src/x_ite/Fields/SFFloat.js +1 -1
- package/src/x_ite/Fields/SFMatrix3.js +4 -4
- package/src/x_ite/Fields/SFMatrix4.js +5 -5
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +14 -3
- package/src/x_ite/Fields/SFRotation.js +4 -4
- package/src/x_ite/Fields/SFTime.js +1 -1
- package/src/x_ite/Fields/SFVec2.js +4 -4
- package/src/x_ite/Fields/SFVec3.js +4 -4
- package/src/x_ite/Fields/SFVec4.js +4 -4
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +6 -5
- package/src/x_ite/InputOutput/Generator.js +14 -3
- package/src/x_ite/Parser/X3DParser.js +5 -12
- package/src/x_ite/X3D.js +2 -7
- package/src/x_ite.config.js +0 -5
- package/src/x_ite.css +2 -1
- package/src/x_ite.html +3 -3
- package/src/x_ite.js +1 -8
- package/x_ite.min.html +3 -3
|
@@ -22,6 +22,4 @@ for (const key in x_iteNoConfict)
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
})
|
|
25
|
-
(typeof module === "object" ? module : undefined,
|
|
26
|
-
typeof require === "function" ? require : undefined,
|
|
27
|
-
typeof process === "object" ? process : undefined);
|
|
25
|
+
(typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
(function (globalModule, globalRequire
|
|
1
|
+
(function (globalModule, globalRequire)
|
|
2
2
|
{
|
|
3
3
|
|
|
4
4
|
if (typeof __filename === "undefined")
|
|
5
5
|
{
|
|
6
6
|
globalModule = undefined;
|
|
7
7
|
globalRequire = undefined;
|
|
8
|
-
globalProcess = undefined;
|
|
9
8
|
}
|
|
10
9
|
|
|
11
10
|
// Undefine global variables.
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function ()
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
if (typeof __filename === "undefined")
|
|
5
|
-
{
|
|
6
|
-
globalModule = undefined;
|
|
7
|
-
globalRequire = undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
// Undefine global variables.
|
|
11
4
|
var module = { }, exports, process;
|
|
12
5
|
|
|
@@ -819,5 +812,4 @@ function (Components,
|
|
|
819
812
|
});
|
|
820
813
|
|
|
821
814
|
|
|
822
|
-
})
|
|
823
|
-
(typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
|
|
815
|
+
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(
|
|
1
|
+
!function(){const t=X3D.define,n=X3D.require;t("x_ite/Components/Annotation/AnnotationLayer",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Layering/X3DLayerNode","x_ite/Components/Navigation/Viewpoint","x_ite/Components/Grouping/Group","x_ite/Bits/X3DConstants"],function(t,n,e,i,o,a,u){"use strict";function p(t){i.call(this,t,new o(t),new a(t)),this.addType(u.AnnotationLayer)}return p.prototype=Object.assign(Object.create(i.prototype),{constructor:p,fieldDefinitions:new e([new n(u.inputOutput,"metadata",new t.SFNode),new n(u.inputOutput,"isPickable",new t.SFBool(!0)),new n(u.inputOutput,"layoutPolicy",new t.MFString),new n(u.inputOutput,"shownGroupID",new t.MFString),new n(u.inputOutput,"viewport",new t.SFNode)]),getTypeName:function(){return"AnnotationLayer"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"layers"},initialize:function(){i.prototype.initialize.call(this)}}),p}),t("x_ite/Components/Annotation/AnnotationTarget",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,o){"use strict";function a(t){i.call(this,t),this.addType(o.AnnotationTarget)}return a.prototype=Object.assign(Object.create(i.prototype),{constructor:a,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"referencePoint",new t.SFVec3f(0,0,0)),new n(o.inputOutput,"leadLineStyle",new t.SFNode),new n(o.inputOutput,"marker",new t.SFNode),new n(o.inputOutput,"annotations",new t.MFNode)]),getTypeName:function(){return"AnnotationTarget"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this)}}),a}),t("x_ite/Components/Annotation/X3DAnnotationNode",["x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(t,n){"use strict";function e(e){t.call(this,e),this.addType(n.X3DAnnotationNode)}return e.prototype=Object.assign(Object.create(t.prototype),{constructor:e,initialize:function(){t.prototype.initialize.call(this)}}),e}),t("x_ite/Components/Annotation/GroupAnnotation",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DGroupingNode","x_ite/Components/Annotation/X3DAnnotationNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,o,a){"use strict";function u(t){i.call(this,t),o.call(this,t),this.addType(a.GroupAnnotation)}return u.prototype=Object.assign(Object.create(i.prototype),o.prototype,{constructor:u,fieldDefinitions:new e([new n(a.inputOutput,"metadata",new t.SFNode),new n(a.inputOutput,"enabled",new t.SFBool(!0)),new n(a.inputOutput,"annotationGroupID",new t.SFString),new n(a.inputOutput,"displayPolicy",new t.SFString("NEVER")),new n(a.inputOutput,"visible",new t.SFBool(!0)),new n(a.inputOutput,"bboxDisplay",new t.SFBool),new n(a.initializeOnly,"bboxCenter",new t.SFVec3f(0,0,0)),new n(a.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(a.inputOnly,"addChildren",new t.MFNode),new n(a.inputOnly,"removeChildren",new t.MFNode),new n(a.inputOutput,"children",new t.MFNode)]),getTypeName:function(){return"GroupAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),o.prototype.initialize.call(this)}}),u}),t("x_ite/Components/Annotation/IconAnnotation",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Annotation/X3DAnnotationNode","x_ite/Components/Networking/X3DUrlObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,o,a){"use strict";function u(t){i.call(this,t),o.call(this,t),this.addType(a.IconAnnotation)}return u.prototype=Object.assign(Object.create(i.prototype),o.prototype,{constructor:u,fieldDefinitions:new e([new n(a.inputOutput,"metadata",new t.SFNode),new n(a.inputOutput,"enabled",new t.SFBool(!0)),new n(a.inputOutput,"annotationGroupID",new t.SFString),new n(a.inputOutput,"displayPolicy",new t.SFString("NEVER")),new n(a.inputOutput,"url",new t.MFString),new n(a.inputOutput,"autoRefresh",new t.SFTime),new n(a.inputOutput,"autoRefreshTimeLimit",new t.SFTime(3600))]),getTypeName:function(){return"IconAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),o.prototype.initialize.call(this)},requestImmediateLoad:function(t=!0){}}),u}),t("x_ite/Components/Annotation/TextAnnotation",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Annotation/X3DAnnotationNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,o){"use strict";function a(t){i.call(this,t),this.addType(o.TextAnnotation)}return a.prototype=Object.assign(Object.create(i.prototype),{constructor:a,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.inputOutput,"annotationGroupID",new t.SFString),new n(o.inputOutput,"displayPolicy",new t.SFString("NEVER")),new n(o.inputOutput,"contentType",new t.SFString("text/plain")),new n(o.inputOutput,"text",new t.SFString)]),getTypeName:function(){return"TextAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this)}}),a}),t("x_ite/Components/Annotation/URLAnnotation",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Annotation/X3DAnnotationNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,o){"use strict";function a(t){i.call(this,t),this.addType(o.URLAnnotation)}return a.prototype=Object.assign(Object.create(i.prototype),{constructor:a,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.inputOutput,"annotationGroupID",new t.SFString),new n(o.inputOutput,"displayPolicy",new t.SFString("NEVER")),new n(o.inputOutput,"url",new t.MFString)]),getTypeName:function(){return"URLAnnotation"},getComponentName:function(){return"Annotation"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this)}}),a}),t(n.getComponentUrl("annotation"),["x_ite/Components","x_ite/Components/Annotation/AnnotationLayer","x_ite/Components/Annotation/AnnotationTarget","x_ite/Components/Annotation/GroupAnnotation","x_ite/Components/Annotation/IconAnnotation","x_ite/Components/Annotation/TextAnnotation","x_ite/Components/Annotation/URLAnnotation","x_ite/Components/Annotation/X3DAnnotationNode"],function(t,n,e,i,o,a,u,p){"use strict";t.addComponent({name:"Annotation",types:{AnnotationLayer:n,AnnotationTarget:e,GroupAnnotation:i,IconAnnotation:o,TextAnnotation:a,URLAnnotation:u},abstractTypes:{X3DAnnotationNode:p}})})}();
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function ()
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
if (typeof __filename === "undefined")
|
|
5
|
-
{
|
|
6
|
-
globalModule = undefined;
|
|
7
|
-
globalRequire = undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
// Undefine global variables.
|
|
11
4
|
var module = { }, exports, process;
|
|
12
5
|
|
|
@@ -1043,5 +1036,4 @@ function (Components,
|
|
|
1043
1036
|
|
|
1044
1037
|
|
|
1045
1038
|
|
|
1046
|
-
})
|
|
1047
|
-
(typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
|
|
1039
|
+
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"undefined"==typeof __filename&&void 0;const n=X3D.define,i=X3D.require;n("x_ite/Components/CADGeometry/X3DProductStructureChildNode",["x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t){"use strict";function n(n){e.call(this,n),this.addType(t.X3DProductStructureChildNode)}return n.prototype=Object.assign(Object.create(e.prototype),{constructor:n}),n}),n("x_ite/Components/CADGeometry/CADAssembly",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DGroupingNode","x_ite/Components/CADGeometry/X3DProductStructureChildNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o,r){"use strict";function s(e){i.call(this,e),o.call(this,e),this.addType(r.CADAssembly)}return s.prototype=Object.assign(Object.create(i.prototype),{constructor:s,fieldDefinitions:new n([new t(r.inputOutput,"metadata",new e.SFNode),new t(r.inputOutput,"name",new e.SFString),new t(r.inputOutput,"visible",new e.SFBool(!0)),new t(r.inputOutput,"bboxDisplay",new e.SFBool),new t(r.initializeOnly,"bboxSize",new e.SFVec3f(-1,-1,-1)),new t(r.initializeOnly,"bboxCenter",new e.SFVec3f),new t(r.inputOnly,"addChildren",new e.MFNode),new t(r.inputOnly,"removeChildren",new e.MFNode),new t(r.inputOutput,"children",new e.MFNode)]),getTypeName:function(){return"CADAssembly"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}}),s}),n("x_ite/Components/CADGeometry/CADFace",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/CADGeometry/X3DProductStructureChildNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants","x_ite/Bits/TraverseType"],function(e,t,n,i,o,r,s){"use strict";function u(e){i.call(this,e),o.call(this,e),this.addType(r.CADFace),this.childNode=null,this.visibleNode=null,this.boundedObject=null}return u.prototype=Object.assign(Object.create(i.prototype),o.prototype,{constructor:u,fieldDefinitions:new n([new t(r.inputOutput,"metadata",new e.SFNode),new t(r.inputOutput,"name",new e.SFString),new t(r.inputOutput,"visible",new e.SFBool(!0)),new t(r.inputOutput,"bboxDisplay",new e.SFBool),new t(r.initializeOnly,"bboxSize",new e.SFVec3f(-1,-1,-1)),new t(r.initializeOnly,"bboxCenter",new e.SFVec3f),new t(r.inputOutput,"shape",new e.SFNode)]),getTypeName:function(){return"CADFace"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),o.prototype.initialize.call(this),this.shape_.addInterest("set_shape__",this),this.set_shape__()},getBBox:function(e,t){if(this.bboxSize_.getValue().equals(this.getDefaultBBoxSize())){const n=this.visibleNode;return n?n.getBBox(e,t):e.set()}return e.set(this.bboxSize_.getValue(),this.bboxCenter_.getValue())},set_shape__:function(){this.childNode&&(this.childNode.isCameraObject_.removeInterest("set_cameraObject__",this),this.childNode.isPickableObject_.removeInterest("set_transformSensors__",this),this.childNode.visible_.removeInterest("set_visible__",this),this.childNode.bboxDisplay_.removeInterest("set_bboxDisplay__",this)),this.childNode=null;try{const t=this.shape_.getValue().getInnerNode(),n=t.getType();for(var e=n.length-1;e>=0;--e){switch(n[e]){case r.LOD:case r.Transform:case r.X3DShapeNode:t.isCameraObject_.addInterest("set_cameraObject__",this),t.isPickableObject_.addInterest("set_transformSensors__",this),t.visible_.addInterest("set_visible__",this),t.bboxDisplay_.addInterest("set_bboxDisplay__",this),this.childNode=t;break;default:continue}break}}catch(e){}this.childNode?delete this.traverse:this.traverse=Function.prototype,this.set_transformSensors__(),this.set_visible__(),this.set_bboxDisplay__()},set_cameraObject__:function(){this.childNode&&this.childNode.getCameraObject()?this.setCameraObject(this.childNode.visible_.getValue()):this.setCameraObject(!1)},set_transformSensors__:function(){this.setPickableObject(Boolean(this.childNode&&this.childNode.getPickableObject()))},set_visible__:function(){this.childNode?this.visibleNode=this.childNode.visible_.getValue()?this.childNode:null:this.visibleNode=null,this.set_cameraObject__()},set_bboxDisplay__:function(){this.childNode?this.boundedObject=this.childNode.bboxDisplay_.getValue()?this.childNode:null:this.boundedObject=null},traverse:function(e,t){switch(e){case s.POINTER:case s.CAMERA:case s.SHADOW:{const n=this.visibleNode;return void(n&&n.traverse(e,t))}case s.PICKING:{const n=t.getBrowser(),i=n.getPickingHierarchy();return i.push(this),this.childNode.traverse(e,t),void i.pop()}case s.COLLISION:return void this.childNode.traverse(e,t);case s.DISPLAY:{const n=this.visibleNode;n&&n.traverse(e,t);const i=this.boundedObject;return void(i&&i.displayBBox(e,t))}}}}),u}),n("x_ite/Components/CADGeometry/CADLayer",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DGroupingNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o){"use strict";function r(e){i.call(this,e),this.addType(o.CADLayer)}return r.prototype=Object.assign(Object.create(i.prototype),{constructor:r,fieldDefinitions:new n([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOutput,"name",new e.SFString),new t(o.inputOutput,"visible",new e.SFBool(!0)),new t(o.inputOutput,"bboxDisplay",new e.SFBool),new t(o.initializeOnly,"bboxSize",new e.SFVec3f(-1,-1,-1)),new t(o.initializeOnly,"bboxCenter",new e.SFVec3f),new t(o.inputOnly,"addChildren",new e.MFNode),new t(o.inputOnly,"removeChildren",new e.MFNode),new t(o.inputOutput,"children",new e.MFNode)]),getTypeName:function(){return"CADLayer"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}}),r}),n("x_ite/Components/CADGeometry/CADPart",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DTransformNode","x_ite/Components/CADGeometry/X3DProductStructureChildNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o,r){"use strict";function s(e){i.call(this,e),o.call(this,e),this.addType(r.CADPart)}return s.prototype=Object.assign(Object.create(i.prototype),{constructor:s,fieldDefinitions:new n([new t(r.inputOutput,"metadata",new e.SFNode),new t(r.inputOutput,"name",new e.SFString),new t(r.inputOutput,"translation",new e.SFVec3f),new t(r.inputOutput,"rotation",new e.SFRotation),new t(r.inputOutput,"scale",new e.SFVec3f(1,1,1)),new t(r.inputOutput,"scaleOrientation",new e.SFRotation),new t(r.inputOutput,"center",new e.SFVec3f),new t(r.inputOutput,"visible",new e.SFBool(!0)),new t(r.inputOutput,"bboxDisplay",new e.SFBool),new t(r.initializeOnly,"bboxSize",new e.SFVec3f(-1,-1,-1)),new t(r.initializeOnly,"bboxCenter",new e.SFVec3f),new t(r.inputOnly,"addChildren",new e.MFNode),new t(r.inputOnly,"removeChildren",new e.MFNode),new t(r.inputOutput,"children",new e.MFNode)]),getTypeName:function(){return"CADPart"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}}),s}),n("x_ite/Components/CADGeometry/IndexedQuadSet",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DComposedGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o){"use strict";function r(e){i.call(this,e),this.addType(o.IndexedQuadSet)}return r.prototype=Object.assign(Object.create(i.prototype),{constructor:r,fieldDefinitions:new n([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_index",new e.MFInt32),new t(o.initializeOnly,"solid",new e.SFBool(!0)),new t(o.initializeOnly,"ccw",new e.SFBool(!0)),new t(o.initializeOnly,"colorPerVertex",new e.SFBool(!0)),new t(o.initializeOnly,"normalPerVertex",new e.SFBool(!0)),new t(o.initializeOnly,"index",new e.MFInt32),new t(o.inputOutput,"attrib",new e.MFNode),new t(o.inputOutput,"fogCoord",new e.SFNode),new t(o.inputOutput,"color",new e.SFNode),new t(o.inputOutput,"texCoord",new e.SFNode),new t(o.inputOutput,"normal",new e.SFNode),new t(o.inputOutput,"coord",new e.SFNode)]),getTypeName:function(){return"IndexedQuadSet"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"geometry"},initialize:function(){i.prototype.initialize.call(this),this.set_index_.addFieldInterest(this.index_)},getTriangleIndex:function(){var e=[0,1,2,0,2,3];return function(t){var n=t%6;return(t-n)/6*4+e[n]}}(),getPolygonIndex:function(e){return this.index_[e]},build:function(){var e=this.index_.length;e-=e%4,i.prototype.build.call(this,4,e,6,e/4*6)}}),r}),n("x_ite/Components/CADGeometry/QuadSet",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DComposedGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o){"use strict";function r(e){i.call(this,e),this.addType(o.QuadSet)}var s=[0,1,2,0,2,3];return r.prototype=Object.assign(Object.create(i.prototype),{constructor:r,fieldDefinitions:new n([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.initializeOnly,"solid",new e.SFBool(!0)),new t(o.initializeOnly,"ccw",new e.SFBool(!0)),new t(o.initializeOnly,"colorPerVertex",new e.SFBool(!0)),new t(o.initializeOnly,"normalPerVertex",new e.SFBool(!0)),new t(o.inputOutput,"attrib",new e.MFNode),new t(o.inputOutput,"fogCoord",new e.SFNode),new t(o.inputOutput,"color",new e.SFNode),new t(o.inputOutput,"texCoord",new e.SFNode),new t(o.inputOutput,"normal",new e.SFNode),new t(o.inputOutput,"coord",new e.SFNode)]),getTypeName:function(){return"QuadSet"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"geometry"},getTriangleIndex:function(e){var t=e%6;return(e-t)/6*4+s[t]},build:function(){if(this.getCoord()){var e=this.getCoord().getSize();e-=e%4,i.prototype.build.call(this,4,e,6,e/4*6)}},createNormals:function(e,t){return this.createFaceNormals(e,t)}}),r}),n(i.getComponentUrl("cad-geometry"),["x_ite/Components","x_ite/Components/CADGeometry/CADAssembly","x_ite/Components/CADGeometry/CADFace","x_ite/Components/CADGeometry/CADLayer","x_ite/Components/CADGeometry/CADPart","x_ite/Components/CADGeometry/IndexedQuadSet","x_ite/Components/CADGeometry/QuadSet","x_ite/Components/CADGeometry/X3DProductStructureChildNode"],function(e,t,n,i,o,r,s,u){"use strict";e.addComponent({name:"CADGeometry",types:{CADAssembly:t,CADFace:n,CADLayer:i,CADPart:o,IndexedQuadSet:r,QuadSet:s},abstractTypes:{X3DProductStructureChildNode:u}})})}("object"==typeof module?module:void 0,"function"==typeof require?require:void 0);
|
|
1
|
+
!function(){const e=X3D.define,t=X3D.require;e("x_ite/Components/CADGeometry/X3DProductStructureChildNode",["x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t){"use strict";function n(n){e.call(this,n),this.addType(t.X3DProductStructureChildNode)}return n.prototype=Object.assign(Object.create(e.prototype),{constructor:n}),n}),e("x_ite/Components/CADGeometry/CADAssembly",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DGroupingNode","x_ite/Components/CADGeometry/X3DProductStructureChildNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o,r){"use strict";function s(e){i.call(this,e),o.call(this,e),this.addType(r.CADAssembly)}return s.prototype=Object.assign(Object.create(i.prototype),{constructor:s,fieldDefinitions:new n([new t(r.inputOutput,"metadata",new e.SFNode),new t(r.inputOutput,"name",new e.SFString),new t(r.inputOutput,"visible",new e.SFBool(!0)),new t(r.inputOutput,"bboxDisplay",new e.SFBool),new t(r.initializeOnly,"bboxSize",new e.SFVec3f(-1,-1,-1)),new t(r.initializeOnly,"bboxCenter",new e.SFVec3f),new t(r.inputOnly,"addChildren",new e.MFNode),new t(r.inputOnly,"removeChildren",new e.MFNode),new t(r.inputOutput,"children",new e.MFNode)]),getTypeName:function(){return"CADAssembly"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}}),s}),e("x_ite/Components/CADGeometry/CADFace",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/CADGeometry/X3DProductStructureChildNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants","x_ite/Bits/TraverseType"],function(e,t,n,i,o,r,s){"use strict";function u(e){i.call(this,e),o.call(this,e),this.addType(r.CADFace),this.childNode=null,this.visibleNode=null,this.boundedObject=null}return u.prototype=Object.assign(Object.create(i.prototype),o.prototype,{constructor:u,fieldDefinitions:new n([new t(r.inputOutput,"metadata",new e.SFNode),new t(r.inputOutput,"name",new e.SFString),new t(r.inputOutput,"visible",new e.SFBool(!0)),new t(r.inputOutput,"bboxDisplay",new e.SFBool),new t(r.initializeOnly,"bboxSize",new e.SFVec3f(-1,-1,-1)),new t(r.initializeOnly,"bboxCenter",new e.SFVec3f),new t(r.inputOutput,"shape",new e.SFNode)]),getTypeName:function(){return"CADFace"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),o.prototype.initialize.call(this),this.shape_.addInterest("set_shape__",this),this.set_shape__()},getBBox:function(e,t){if(this.bboxSize_.getValue().equals(this.getDefaultBBoxSize())){const n=this.visibleNode;return n?n.getBBox(e,t):e.set()}return e.set(this.bboxSize_.getValue(),this.bboxCenter_.getValue())},set_shape__:function(){this.childNode&&(this.childNode.isCameraObject_.removeInterest("set_cameraObject__",this),this.childNode.isPickableObject_.removeInterest("set_transformSensors__",this),this.childNode.visible_.removeInterest("set_visible__",this),this.childNode.bboxDisplay_.removeInterest("set_bboxDisplay__",this)),this.childNode=null;try{const t=this.shape_.getValue().getInnerNode(),n=t.getType();for(var e=n.length-1;e>=0;--e){switch(n[e]){case r.LOD:case r.Transform:case r.X3DShapeNode:t.isCameraObject_.addInterest("set_cameraObject__",this),t.isPickableObject_.addInterest("set_transformSensors__",this),t.visible_.addInterest("set_visible__",this),t.bboxDisplay_.addInterest("set_bboxDisplay__",this),this.childNode=t;break;default:continue}break}}catch(e){}this.childNode?delete this.traverse:this.traverse=Function.prototype,this.set_transformSensors__(),this.set_visible__(),this.set_bboxDisplay__()},set_cameraObject__:function(){this.childNode&&this.childNode.getCameraObject()?this.setCameraObject(this.childNode.visible_.getValue()):this.setCameraObject(!1)},set_transformSensors__:function(){this.setPickableObject(Boolean(this.childNode&&this.childNode.getPickableObject()))},set_visible__:function(){this.childNode?this.visibleNode=this.childNode.visible_.getValue()?this.childNode:null:this.visibleNode=null,this.set_cameraObject__()},set_bboxDisplay__:function(){this.childNode?this.boundedObject=this.childNode.bboxDisplay_.getValue()?this.childNode:null:this.boundedObject=null},traverse:function(e,t){switch(e){case s.POINTER:case s.CAMERA:case s.SHADOW:{const n=this.visibleNode;return void(n&&n.traverse(e,t))}case s.PICKING:{const n=t.getBrowser(),i=n.getPickingHierarchy();return i.push(this),this.childNode.traverse(e,t),void i.pop()}case s.COLLISION:return void this.childNode.traverse(e,t);case s.DISPLAY:{const n=this.visibleNode;n&&n.traverse(e,t);const i=this.boundedObject;return void(i&&i.displayBBox(e,t))}}}}),u}),e("x_ite/Components/CADGeometry/CADLayer",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DGroupingNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o){"use strict";function r(e){i.call(this,e),this.addType(o.CADLayer)}return r.prototype=Object.assign(Object.create(i.prototype),{constructor:r,fieldDefinitions:new n([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOutput,"name",new e.SFString),new t(o.inputOutput,"visible",new e.SFBool(!0)),new t(o.inputOutput,"bboxDisplay",new e.SFBool),new t(o.initializeOnly,"bboxSize",new e.SFVec3f(-1,-1,-1)),new t(o.initializeOnly,"bboxCenter",new e.SFVec3f),new t(o.inputOnly,"addChildren",new e.MFNode),new t(o.inputOnly,"removeChildren",new e.MFNode),new t(o.inputOutput,"children",new e.MFNode)]),getTypeName:function(){return"CADLayer"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}}),r}),e("x_ite/Components/CADGeometry/CADPart",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DTransformNode","x_ite/Components/CADGeometry/X3DProductStructureChildNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o,r){"use strict";function s(e){i.call(this,e),o.call(this,e),this.addType(r.CADPart)}return s.prototype=Object.assign(Object.create(i.prototype),{constructor:s,fieldDefinitions:new n([new t(r.inputOutput,"metadata",new e.SFNode),new t(r.inputOutput,"name",new e.SFString),new t(r.inputOutput,"translation",new e.SFVec3f),new t(r.inputOutput,"rotation",new e.SFRotation),new t(r.inputOutput,"scale",new e.SFVec3f(1,1,1)),new t(r.inputOutput,"scaleOrientation",new e.SFRotation),new t(r.inputOutput,"center",new e.SFVec3f),new t(r.inputOutput,"visible",new e.SFBool(!0)),new t(r.inputOutput,"bboxDisplay",new e.SFBool),new t(r.initializeOnly,"bboxSize",new e.SFVec3f(-1,-1,-1)),new t(r.initializeOnly,"bboxCenter",new e.SFVec3f),new t(r.inputOnly,"addChildren",new e.MFNode),new t(r.inputOnly,"removeChildren",new e.MFNode),new t(r.inputOutput,"children",new e.MFNode)]),getTypeName:function(){return"CADPart"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"children"}}),s}),e("x_ite/Components/CADGeometry/IndexedQuadSet",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DComposedGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o){"use strict";function r(e){i.call(this,e),this.addType(o.IndexedQuadSet)}return r.prototype=Object.assign(Object.create(i.prototype),{constructor:r,fieldDefinitions:new n([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_index",new e.MFInt32),new t(o.initializeOnly,"solid",new e.SFBool(!0)),new t(o.initializeOnly,"ccw",new e.SFBool(!0)),new t(o.initializeOnly,"colorPerVertex",new e.SFBool(!0)),new t(o.initializeOnly,"normalPerVertex",new e.SFBool(!0)),new t(o.initializeOnly,"index",new e.MFInt32),new t(o.inputOutput,"attrib",new e.MFNode),new t(o.inputOutput,"fogCoord",new e.SFNode),new t(o.inputOutput,"color",new e.SFNode),new t(o.inputOutput,"texCoord",new e.SFNode),new t(o.inputOutput,"normal",new e.SFNode),new t(o.inputOutput,"coord",new e.SFNode)]),getTypeName:function(){return"IndexedQuadSet"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"geometry"},initialize:function(){i.prototype.initialize.call(this),this.set_index_.addFieldInterest(this.index_)},getTriangleIndex:function(){var e=[0,1,2,0,2,3];return function(t){var n=t%6;return(t-n)/6*4+e[n]}}(),getPolygonIndex:function(e){return this.index_[e]},build:function(){var e=this.index_.length;e-=e%4,i.prototype.build.call(this,4,e,6,e/4*6)}}),r}),e("x_ite/Components/CADGeometry/QuadSet",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DComposedGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,n,i,o){"use strict";function r(e){i.call(this,e),this.addType(o.QuadSet)}var s=[0,1,2,0,2,3];return r.prototype=Object.assign(Object.create(i.prototype),{constructor:r,fieldDefinitions:new n([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.initializeOnly,"solid",new e.SFBool(!0)),new t(o.initializeOnly,"ccw",new e.SFBool(!0)),new t(o.initializeOnly,"colorPerVertex",new e.SFBool(!0)),new t(o.initializeOnly,"normalPerVertex",new e.SFBool(!0)),new t(o.inputOutput,"attrib",new e.MFNode),new t(o.inputOutput,"fogCoord",new e.SFNode),new t(o.inputOutput,"color",new e.SFNode),new t(o.inputOutput,"texCoord",new e.SFNode),new t(o.inputOutput,"normal",new e.SFNode),new t(o.inputOutput,"coord",new e.SFNode)]),getTypeName:function(){return"QuadSet"},getComponentName:function(){return"CADGeometry"},getContainerField:function(){return"geometry"},getTriangleIndex:function(e){var t=e%6;return(e-t)/6*4+s[t]},build:function(){if(this.getCoord()){var e=this.getCoord().getSize();e-=e%4,i.prototype.build.call(this,4,e,6,e/4*6)}},createNormals:function(e,t){return this.createFaceNormals(e,t)}}),r}),e(t.getComponentUrl("cad-geometry"),["x_ite/Components","x_ite/Components/CADGeometry/CADAssembly","x_ite/Components/CADGeometry/CADFace","x_ite/Components/CADGeometry/CADLayer","x_ite/Components/CADGeometry/CADPart","x_ite/Components/CADGeometry/IndexedQuadSet","x_ite/Components/CADGeometry/QuadSet","x_ite/Components/CADGeometry/X3DProductStructureChildNode"],function(e,t,n,i,o,r,s,u){"use strict";e.addComponent({name:"CADGeometry",types:{CADAssembly:t,CADFace:n,CADLayer:i,CADPart:o,IndexedQuadSet:r,QuadSet:s},abstractTypes:{X3DProductStructureChildNode:u}})})}();
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function ()
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
if (typeof __filename === "undefined")
|
|
5
|
-
{
|
|
6
|
-
globalModule = undefined;
|
|
7
|
-
globalRequire = undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
// Undefine global variables.
|
|
11
4
|
var module = { }, exports, process;
|
|
12
5
|
|
|
@@ -1218,5 +1211,4 @@ function (Components,
|
|
|
1218
1211
|
|
|
1219
1212
|
|
|
1220
1213
|
|
|
1221
|
-
})
|
|
1222
|
-
(typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
|
|
1214
|
+
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"undefined"==typeof __filename&&void 0;const i=X3D.define,r=X3D.require;i("x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",["x_ite/Components/Texturing/X3DSingleTextureNode","x_ite/Bits/X3DConstants"],function(e,t){"use strict";function i(i){e.call(this,i),this.addType(t.X3DEnvironmentTextureNode);const r=this.getBrowser().getContext();this.target=r.TEXTURE_CUBE_MAP,this.targets=[r.TEXTURE_CUBE_MAP_POSITIVE_Z,r.TEXTURE_CUBE_MAP_NEGATIVE_Z,r.TEXTURE_CUBE_MAP_NEGATIVE_X,r.TEXTURE_CUBE_MAP_POSITIVE_X,r.TEXTURE_CUBE_MAP_POSITIVE_Y,r.TEXTURE_CUBE_MAP_NEGATIVE_Y]}return i.prototype=Object.assign(Object.create(e.prototype),{constructor:i,getTarget:function(){return this.target},getTargets:function(){return this.targets},clearTexture:function(){var e=new Uint8Array([255,255,255,255]);return function(){var t=this.getBrowser().getContext(),i=this.getTargets();t.bindTexture(this.getTarget(),this.getTexture());for(var r=0,n=i.length;r<n;++r)t.texImage2D(i[r],0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,e)}}(),updateTextureProperties:function(){e.prototype.updateTextureProperties.call(this,this.target,this.textureProperties_.getValue(),this.texturePropertiesNode,128,128,!1,!1,!1)},setShaderUniformsToChannel:function(e,t,i,r){e.activeTexture(e.TEXTURE0+t.getBrowser().getCubeMapTextureUnits()[r]),e.bindTexture(e.TEXTURE_CUBE_MAP,this.getTexture()),e.uniform1i(t.x3d_TextureType[r],4)}}),i}),i("x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode","x_ite/Bits/X3DCast","x_ite/Bits/X3DConstants"],function(e,t,i,r,n,s){"use strict";function a(e){r.call(this,e),this.addType(s.ComposedCubeMapTexture),this.addAlias("front",this.frontTexture_),this.addAlias("back",this.backTexture_),this.addAlias("left",this.leftTexture_),this.addAlias("right",this.rightTexture_),this.addAlias("bottom",this.bottomTexture_),this.addAlias("top",this.topTexture_),this.textures=[null,null,null,null,null,null],this.loadStates=0}return a.prototype=Object.assign(Object.create(r.prototype),{constructor:a,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.inputOutput,"description",new e.SFString),new t(s.inputOutput,"frontTexture",new e.SFNode),new t(s.inputOutput,"backTexture",new e.SFNode),new t(s.inputOutput,"leftTexture",new e.SFNode),new t(s.inputOutput,"rightTexture",new e.SFNode),new t(s.inputOutput,"bottomTexture",new e.SFNode),new t(s.inputOutput,"topTexture",new e.SFNode),new t(s.initializeOnly,"textureProperties",new e.SFNode)]),getTypeName:function(){return"ComposedCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){r.prototype.initialize.call(this),this.clearTexture(),this.frontTexture_.addInterest("set_texture__",this,0),this.backTexture_.addInterest("set_texture__",this,1),this.leftTexture_.addInterest("set_texture__",this,2),this.rightTexture_.addInterest("set_texture__",this,3),this.topTexture_.addInterest("set_texture__",this,5),this.bottomTexture_.addInterest("set_texture__",this,4),this.set_texture__(this.frontTexture_,0),this.set_texture__(this.backTexture_,1),this.set_texture__(this.leftTexture_,2),this.set_texture__(this.rightTexture_,3),this.set_texture__(this.topTexture_,4),this.set_texture__(this.bottomTexture_,5)},set_texture__:function(e,t){var i=this.textures[t];if(i){var r="set_loadState__"+i.getId()+"_"+t;i.removeInterest("set_loadState__",this),i.loadState_.removeFieldCallback(r)}var i=this.textures[t]=n(s.X3DTexture2DNode,e);if(i){var r="set_loadState__"+i.getId()+"_"+t;i.addInterest("set_loadState__",this,i,t),i.loadState_.addFieldCallback(r,this.set_loadState__.bind(this,null,i,t))}this.set_loadState__(null,i,t)},set_loadState__:function(e,t,i){t?this.setLoadStateBit(t.checkLoadState(),t.getData(),i):this.setLoadStateBit(s.NOT_STARTED,null,i),this.setTextures()},setLoadStateBit:function(e,t,i){e===s.COMPLETE_STATE||t?this.loadStates|=1<<i:this.loadStates&=~(1<<i)},isComplete:function(){if(63!==this.loadStates)return!1;for(var e=this.textures,t=e[0].getWidth(),i=0;i<6;++i){var r=e[i];if(r.getWidth()!==t)return!1;if(r.getHeight()!==t)return!1}return!0},setTextures:function(){var e=this.getBrowser().getContext();if(e.bindTexture(this.getTarget(),this.getTexture()),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),this.isComplete()){for(var t=this.textures,i=0;i<6;++i){var e=this.getBrowser().getContext(),r=t[i],n=r.getWidth(),s=r.getHeight(),a=r.getData();e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!r.getFlipY()),e.pixelStorei(e.UNPACK_ALIGNMENT,1),a instanceof Uint8Array?e.texImage2D(this.getTargets()[i],0,e.RGBA,n,s,!1,e.RGBA,e.UNSIGNED_BYTE,a):e.texImage2D(this.getTargets()[i],0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a)}this.updateTextureProperties()}else this.clearTexture();this.set_transparent__()},set_transparent__:function(){var e=this.textures,t=!1;if(this.isComplete())for(var i=0;i<6;++i)if(e[i].transparent_.getValue()){t=!0;break}this.setTransparent(t)}}),a}),i("x_ite/Rendering/DependentRenderer",["x_ite/Basic/X3DBaseNode","x_ite/Rendering/X3DRenderObject","x_ite/Bits/TraverseType"],function(e,t,i){"use strict";function r(i){e.call(this,i),t.call(this,i),this.renderObject=null}return r.prototype=Object.assign(Object.create(e.prototype),t.prototype,{constructor:r,initialize:function(){e.prototype.initialize.call(this),t.prototype.initialize.call(this)},isIndependent:function(){return!1},setRenderer:function(e){this.renderObject=e},getBrowser:function(){return this.renderObject.getBrowser()},getLayer:function(){return this.renderObject.getLayer()},getBackground:function(){return this.renderObject.getBackground()},getFog:function(){return this.renderObject.getFog()},getNavigationInfo:function(){return this.renderObject.getNavigationInfo()},getViewpoint:function(){return this.renderObject.getViewpoint()},getLightContainer:function(){return this.renderObject.getLights()[this.lightIndex++]},render:function(e,r,n){switch(e){case i.COLLISION:t.prototype.render.call(this,e,r,n);break;case i.SHADOW:t.prototype.render.call(this,e,r,n);break;case i.DISPLAY:this.lightIndex=0,t.prototype.render.call(this,e,r,n);for(const e of this.renderObject.getLights())e.getModelViewMatrix().pop()}}}),r}),i("x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode","x_ite/Rendering/DependentRenderer","x_ite/Rendering/TextureBuffer","x_ite/Bits/X3DConstants","x_ite/Bits/TraverseType","standard/Math/Geometry/Camera","standard/Math/Geometry/ViewVolume","standard/Math/Numbers/Rotation4","standard/Math/Numbers/Vector3","standard/Math/Numbers/Vector4","standard/Math/Numbers/Matrix4","standard/Math/Algorithm"],function(e,t,i,r,n,s,a,o,u,h,d,g,p,x,c){"use strict";function l(e){r.call(this,e),this.addType(a.GeneratedCubeMapTexture),this.renderer=new n(e),this.projectionMatrix=new x,this.modelMatrix=new x,this.viewVolume=new h}var _=[new d(g.zAxis,new g(0,0,-1)),new d(g.zAxis,new g(0,0,1)),new d(g.zAxis,new g(1,0,0)),new d(g.zAxis,new g(-1,0,0)),new d(g.zAxis,new g(0,-1,0)),new d(g.zAxis,new g(0,1,0))],T=[new g(-1,-1,1),new g(-1,-1,1),new g(-1,-1,1),new g(-1,-1,1),new g(1,1,1),new g(1,1,1)],f=new x;return l.prototype=Object.assign(Object.create(r.prototype),{constructor:l,fieldDefinitions:new i([new t(a.inputOutput,"metadata",new e.SFNode),new t(a.inputOutput,"description",new e.SFString),new t(a.inputOutput,"update",new e.SFString("NONE")),new t(a.initializeOnly,"size",new e.SFInt32(128)),new t(a.initializeOnly,"textureProperties",new e.SFNode)]),getTypeName:function(){return"GeneratedCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){r.prototype.initialize.call(this),this.renderer.setup();var e=c.nextPowerOfTwo(this.size_.getValue());if(e>0){e=c.nextPowerOfTwo(e);var t=this.getBrowser().getContext(),i=new Uint8Array(e*e*4);t.bindTexture(this.getTarget(),this.getTexture());for(var n=0;n<6;++n)t.texImage2D(this.getTargets()[n],0,t.RGBA,e,e,0,t.RGBA,t.UNSIGNED_BYTE,i);this.viewport=new p(0,0,e,e),this.frameBuffer=new s(this.getBrowser(),e,e)}},traverse:function(e,t){e===o.DISPLAY&&"NONE"!==this.update_.getValue()&&this.frameBuffer&&t.isIndependent()&&(t.getGeneratedCubeMapTextures().push(this),this.modelMatrix.assign(t.getModelViewMatrix().get()).multRight(t.getCameraSpaceMatrix().get()))},renderTexture:function(e){this.renderer.setRenderer(e);var t=this.renderer,i=e.getBrowser(),r=e.getLayer(),n=i.getContext(),s=t.getBackground(),a=t.getNavigationInfo(),h=t.getViewpoint(),d=i.getHeadlight(),g=a.headlight_.getValue(),p=a.getNearValue(),l=a.getFarValue(h),w=u.perspective(c.radians(90),p,l,1,1,this.projectionMatrix);this.setTransparent(s.getTransparent()),this.frameBuffer.bind(),t.getViewVolumes().push(this.viewVolume.set(w,this.viewport,this.viewport)),t.getProjectionMatrix().pushMatrix(w),n.bindTexture(this.getTarget(),this.getTexture()),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1);for(var m=0;m<6;++m){n.clear(n.COLOR_BUFFER_BIT),t.getCameraSpaceMatrix().pushMatrix(this.modelMatrix),t.getCameraSpaceMatrix().rotate(_[m]),t.getCameraSpaceMatrix().scale(T[m]);try{t.getViewMatrix().pushMatrix(f.assign(t.getCameraSpaceMatrix().get()).inverse())}catch(e){console.log(e),t.getViewMatrix().pushMatrix(x.Identity)}t.getModelViewMatrix().pushMatrix(f),g&&(d.getModelViewMatrix().pushMatrix(f),d.getModelViewMatrix().multLeft(h.getCameraSpaceMatrix())),r.traverse(o.DISPLAY,t),g&&d.getModelViewMatrix().pop(),t.getModelViewMatrix().pop(),t.getCameraSpaceMatrix().pop(),t.getViewMatrix().pop();var C=this.frameBuffer.readPixels(),M=this.frameBuffer.getWidth(),S=this.frameBuffer.getHeight();n.texImage2D(this.getTargets()[m],0,n.RGBA,M,S,!1,n.RGBA,n.UNSIGNED_BYTE,C)}this.updateTextureProperties(),t.getProjectionMatrix().pop(),t.getViewVolumes().pop(),this.frameBuffer.unbind(),"NEXT_FRAME_ONLY"===this.update_.getValue()&&(this.update_="NONE")},setShaderUniformsToChannel:function(){const e=new Float32Array(16);return function(t,i,n,s){r.prototype.setShaderUniformsToChannel.call(this,t,i,n,s),n.isIndependent()||t.uniformMatrix4fv(i.x3d_ModelViewMatrix,!1,e)}}()}),l}),i("x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",["jquery","x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode","x_ite/Components/Networking/X3DUrlObject","x_ite/Bits/X3DConstants","standard/Math/Numbers/Vector2","standard/Math/Algorithm","x_ite/DEBUG"],function(e,t,i,r,n,s,a,o,u,h){"use strict";function d(e){n.call(this,e),s.call(this,e),this.addType(a.ImageCubeMapTexture),this.urlStack=new t.MFString}const g=new Uint8Array([255,255,255,255]),p=[new o(1,1),new o(3,1),new o(0,1),new o(2,1),new o(1,0),new o(1,2)];return d.prototype=Object.assign(Object.create(n.prototype),s.prototype,{constructor:d,fieldDefinitions:new r([new i(a.inputOutput,"metadata",new t.SFNode),new i(a.inputOutput,"description",new t.SFString),new i(a.inputOutput,"url",new t.MFString),new i(a.inputOutput,"autoRefresh",new t.SFTime),new i(a.inputOutput,"autoRefreshTimeLimit",new t.SFTime(3600)),new i(a.initializeOnly,"textureProperties",new t.SFNode)]),getTypeName:function(){return"ImageCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){n.prototype.initialize.call(this),s.prototype.initialize.call(this);const t=this.getBrowser().getContext();t.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)t.texImage2D(this.getTargets()[e],0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,g);this.url_.addInterest("set_url__",this),this.canvas=e("<canvas></canvas>"),this.image=e("<img></img>"),this.image.on("load",this.setImage.bind(this)),this.image.on("error",this.setError.bind(this)),this.image.bind("abort",this.setError.bind(this)),this.image[0].crossOrigin="Anonymous",this.requestImmediateLoad()},set_url__:function(){this.setLoadState(a.NOT_STARTED_STATE),this.requestImmediateLoad()},requestImmediateLoad:function(e=!0){this.checkLoadState()!==a.COMPLETE_STATE&&this.checkLoadState()!==a.IN_PROGRESS_STATE&&(this.setCache(e),this.setLoadState(a.IN_PROGRESS_STATE),this.urlStack.setValue(this.url_),this.loadNext())},loadNext:function(){if(0===this.urlStack.length)return this.clearTexture(),void this.setLoadState(a.FAILED_STATE);this.URL=new URL(this.urlStack.shift(),this.getExecutionContext().getWorldURL()),this.getBrowser().getBrowserOptions().getCache()&&this.getCache()||this.URL.searchParams.set("_",Date.now()),this.image.attr("src",this.URL.href)},setError:function(){"data:"!==this.URL.protocol&&console.warn("Error loading image:",this.URL.href),this.loadNext()},setImage:function(){h&&"data:"!==this.URL.protocol&&console.info("Done loading image cube map texture:",this.URL.href);try{const e=this.image[0],t=this.canvas[0],i=t.getContext("2d");let r=e.width,n=e.height,s=Math.floor(r/4),o=Math.floor(n/3);u.isPowerOfTwo(s)&&u.isPowerOfTwo(o)&&4*s===r&&3*o===n?(t.width=r,t.height=n,i.drawImage(e,0,0)):(s=u.nextPowerOfTwo(s),o=u.nextPowerOfTwo(o),r=4*s,n=3*o,t.width=r,t.height=n,i.drawImage(e,0,0,e.width,e.height,0,0,r,n));const h=this.getBrowser().getContext();let d=!0;h.bindTexture(this.getTarget(),this.getTexture()),h.pixelStorei(h.UNPACK_FLIP_Y_WEBGL,!1);for(let e=0;e<6;++e){const t=i.getImageData(p[e].x*s,p[e].y*o,s,o).data;if(d)for(let e=3;e<t.length;e+=4)if(255!==t[e]){d=!1;break}h.texImage2D(this.getTargets()[e],0,h.RGBA,s,o,!1,h.RGBA,h.UNSIGNED_BYTE,new Uint8Array(t))}this.updateTextureProperties(),this.setTransparent(!d),this.setLoadState(a.COMPLETE_STATE)}catch(e){console.log(e.message),this.setError()}}}),d}),i(r.getComponentUrl("cube-map-texturing"),["x_ite/Components","x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture","x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture","x_ite/Components/CubeMapTexturing/ImageCubeMapTexture","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode"],function(e,t,i,r,n){"use strict";e.addComponent({name:"CubeMapTexturing",types:{ComposedCubeMapTexture:t,GeneratedCubeMapTexture:i,ImageCubeMapTexture:r},abstractTypes:{X3DEnvironmentTextureNode:n}})})}("object"==typeof module?module:void 0,"function"==typeof require?require:void 0);
|
|
1
|
+
!function(){const e=X3D.define,t=X3D.require;e("x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode",["x_ite/Components/Texturing/X3DSingleTextureNode","x_ite/Bits/X3DConstants"],function(e,t){"use strict";function i(i){e.call(this,i),this.addType(t.X3DEnvironmentTextureNode);const r=this.getBrowser().getContext();this.target=r.TEXTURE_CUBE_MAP,this.targets=[r.TEXTURE_CUBE_MAP_POSITIVE_Z,r.TEXTURE_CUBE_MAP_NEGATIVE_Z,r.TEXTURE_CUBE_MAP_NEGATIVE_X,r.TEXTURE_CUBE_MAP_POSITIVE_X,r.TEXTURE_CUBE_MAP_POSITIVE_Y,r.TEXTURE_CUBE_MAP_NEGATIVE_Y]}return i.prototype=Object.assign(Object.create(e.prototype),{constructor:i,getTarget:function(){return this.target},getTargets:function(){return this.targets},clearTexture:function(){var e=new Uint8Array([255,255,255,255]);return function(){var t=this.getBrowser().getContext(),i=this.getTargets();t.bindTexture(this.getTarget(),this.getTexture());for(var r=0,n=i.length;r<n;++r)t.texImage2D(i[r],0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,e)}}(),updateTextureProperties:function(){e.prototype.updateTextureProperties.call(this,this.target,this.textureProperties_.getValue(),this.texturePropertiesNode,128,128,!1,!1,!1)},setShaderUniformsToChannel:function(e,t,i,r){e.activeTexture(e.TEXTURE0+t.getBrowser().getCubeMapTextureUnits()[r]),e.bindTexture(e.TEXTURE_CUBE_MAP,this.getTexture()),e.uniform1i(t.x3d_TextureType[r],4)}}),i}),e("x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode","x_ite/Bits/X3DCast","x_ite/Bits/X3DConstants"],function(e,t,i,r,n,s){"use strict";function a(e){r.call(this,e),this.addType(s.ComposedCubeMapTexture),this.addAlias("front",this.frontTexture_),this.addAlias("back",this.backTexture_),this.addAlias("left",this.leftTexture_),this.addAlias("right",this.rightTexture_),this.addAlias("bottom",this.bottomTexture_),this.addAlias("top",this.topTexture_),this.textures=[null,null,null,null,null,null],this.loadStates=0}return a.prototype=Object.assign(Object.create(r.prototype),{constructor:a,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.inputOutput,"description",new e.SFString),new t(s.inputOutput,"frontTexture",new e.SFNode),new t(s.inputOutput,"backTexture",new e.SFNode),new t(s.inputOutput,"leftTexture",new e.SFNode),new t(s.inputOutput,"rightTexture",new e.SFNode),new t(s.inputOutput,"bottomTexture",new e.SFNode),new t(s.inputOutput,"topTexture",new e.SFNode),new t(s.initializeOnly,"textureProperties",new e.SFNode)]),getTypeName:function(){return"ComposedCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){r.prototype.initialize.call(this),this.clearTexture(),this.frontTexture_.addInterest("set_texture__",this,0),this.backTexture_.addInterest("set_texture__",this,1),this.leftTexture_.addInterest("set_texture__",this,2),this.rightTexture_.addInterest("set_texture__",this,3),this.topTexture_.addInterest("set_texture__",this,5),this.bottomTexture_.addInterest("set_texture__",this,4),this.set_texture__(this.frontTexture_,0),this.set_texture__(this.backTexture_,1),this.set_texture__(this.leftTexture_,2),this.set_texture__(this.rightTexture_,3),this.set_texture__(this.topTexture_,4),this.set_texture__(this.bottomTexture_,5)},set_texture__:function(e,t){var i=this.textures[t];if(i){var r="set_loadState__"+i.getId()+"_"+t;i.removeInterest("set_loadState__",this),i.loadState_.removeFieldCallback(r)}var i=this.textures[t]=n(s.X3DTexture2DNode,e);if(i){var r="set_loadState__"+i.getId()+"_"+t;i.addInterest("set_loadState__",this,i,t),i.loadState_.addFieldCallback(r,this.set_loadState__.bind(this,null,i,t))}this.set_loadState__(null,i,t)},set_loadState__:function(e,t,i){t?this.setLoadStateBit(t.checkLoadState(),t.getData(),i):this.setLoadStateBit(s.NOT_STARTED,null,i),this.setTextures()},setLoadStateBit:function(e,t,i){e===s.COMPLETE_STATE||t?this.loadStates|=1<<i:this.loadStates&=~(1<<i)},isComplete:function(){if(63!==this.loadStates)return!1;for(var e=this.textures,t=e[0].getWidth(),i=0;i<6;++i){var r=e[i];if(r.getWidth()!==t)return!1;if(r.getHeight()!==t)return!1}return!0},setTextures:function(){var e=this.getBrowser().getContext();if(e.bindTexture(this.getTarget(),this.getTexture()),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),this.isComplete()){for(var t=this.textures,i=0;i<6;++i){var e=this.getBrowser().getContext(),r=t[i],n=r.getWidth(),s=r.getHeight(),a=r.getData();e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!r.getFlipY()),e.pixelStorei(e.UNPACK_ALIGNMENT,1),a instanceof Uint8Array?e.texImage2D(this.getTargets()[i],0,e.RGBA,n,s,!1,e.RGBA,e.UNSIGNED_BYTE,a):e.texImage2D(this.getTargets()[i],0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a)}this.updateTextureProperties()}else this.clearTexture();this.set_transparent__()},set_transparent__:function(){var e=this.textures,t=!1;if(this.isComplete())for(var i=0;i<6;++i)if(e[i].transparent_.getValue()){t=!0;break}this.setTransparent(t)}}),a}),e("x_ite/Rendering/DependentRenderer",["x_ite/Basic/X3DBaseNode","x_ite/Rendering/X3DRenderObject","x_ite/Bits/TraverseType"],function(e,t,i){"use strict";function r(i){e.call(this,i),t.call(this,i),this.renderObject=null}return r.prototype=Object.assign(Object.create(e.prototype),t.prototype,{constructor:r,initialize:function(){e.prototype.initialize.call(this),t.prototype.initialize.call(this)},isIndependent:function(){return!1},setRenderer:function(e){this.renderObject=e},getBrowser:function(){return this.renderObject.getBrowser()},getLayer:function(){return this.renderObject.getLayer()},getBackground:function(){return this.renderObject.getBackground()},getFog:function(){return this.renderObject.getFog()},getNavigationInfo:function(){return this.renderObject.getNavigationInfo()},getViewpoint:function(){return this.renderObject.getViewpoint()},getLightContainer:function(){return this.renderObject.getLights()[this.lightIndex++]},render:function(e,r,n){switch(e){case i.COLLISION:t.prototype.render.call(this,e,r,n);break;case i.SHADOW:t.prototype.render.call(this,e,r,n);break;case i.DISPLAY:this.lightIndex=0,t.prototype.render.call(this,e,r,n);for(const e of this.renderObject.getLights())e.getModelViewMatrix().pop()}}}),r}),e("x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode","x_ite/Rendering/DependentRenderer","x_ite/Rendering/TextureBuffer","x_ite/Bits/X3DConstants","x_ite/Bits/TraverseType","standard/Math/Geometry/Camera","standard/Math/Geometry/ViewVolume","standard/Math/Numbers/Rotation4","standard/Math/Numbers/Vector3","standard/Math/Numbers/Vector4","standard/Math/Numbers/Matrix4","standard/Math/Algorithm"],function(e,t,i,r,n,s,a,o,u,h,d,g,p,x,c){"use strict";function l(e){r.call(this,e),this.addType(a.GeneratedCubeMapTexture),this.renderer=new n(e),this.projectionMatrix=new x,this.modelMatrix=new x,this.viewVolume=new h}var _=[new d(g.zAxis,new g(0,0,-1)),new d(g.zAxis,new g(0,0,1)),new d(g.zAxis,new g(1,0,0)),new d(g.zAxis,new g(-1,0,0)),new d(g.zAxis,new g(0,-1,0)),new d(g.zAxis,new g(0,1,0))],T=[new g(-1,-1,1),new g(-1,-1,1),new g(-1,-1,1),new g(-1,-1,1),new g(1,1,1),new g(1,1,1)],f=new x;return l.prototype=Object.assign(Object.create(r.prototype),{constructor:l,fieldDefinitions:new i([new t(a.inputOutput,"metadata",new e.SFNode),new t(a.inputOutput,"description",new e.SFString),new t(a.inputOutput,"update",new e.SFString("NONE")),new t(a.initializeOnly,"size",new e.SFInt32(128)),new t(a.initializeOnly,"textureProperties",new e.SFNode)]),getTypeName:function(){return"GeneratedCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){r.prototype.initialize.call(this),this.renderer.setup();var e=c.nextPowerOfTwo(this.size_.getValue());if(e>0){e=c.nextPowerOfTwo(e);var t=this.getBrowser().getContext(),i=new Uint8Array(e*e*4);t.bindTexture(this.getTarget(),this.getTexture());for(var n=0;n<6;++n)t.texImage2D(this.getTargets()[n],0,t.RGBA,e,e,0,t.RGBA,t.UNSIGNED_BYTE,i);this.viewport=new p(0,0,e,e),this.frameBuffer=new s(this.getBrowser(),e,e)}},traverse:function(e,t){e===o.DISPLAY&&"NONE"!==this.update_.getValue()&&this.frameBuffer&&t.isIndependent()&&(t.getGeneratedCubeMapTextures().push(this),this.modelMatrix.assign(t.getModelViewMatrix().get()).multRight(t.getCameraSpaceMatrix().get()))},renderTexture:function(e){this.renderer.setRenderer(e);var t=this.renderer,i=e.getBrowser(),r=e.getLayer(),n=i.getContext(),s=t.getBackground(),a=t.getNavigationInfo(),h=t.getViewpoint(),d=i.getHeadlight(),g=a.headlight_.getValue(),p=a.getNearValue(),l=a.getFarValue(h),w=u.perspective(c.radians(90),p,l,1,1,this.projectionMatrix);this.setTransparent(s.getTransparent()),this.frameBuffer.bind(),t.getViewVolumes().push(this.viewVolume.set(w,this.viewport,this.viewport)),t.getProjectionMatrix().pushMatrix(w),n.bindTexture(this.getTarget(),this.getTexture()),n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,!1);for(var m=0;m<6;++m){n.clear(n.COLOR_BUFFER_BIT),t.getCameraSpaceMatrix().pushMatrix(this.modelMatrix),t.getCameraSpaceMatrix().rotate(_[m]),t.getCameraSpaceMatrix().scale(T[m]);try{t.getViewMatrix().pushMatrix(f.assign(t.getCameraSpaceMatrix().get()).inverse())}catch(e){console.log(e),t.getViewMatrix().pushMatrix(x.Identity)}t.getModelViewMatrix().pushMatrix(f),g&&(d.getModelViewMatrix().pushMatrix(f),d.getModelViewMatrix().multLeft(h.getCameraSpaceMatrix())),r.traverse(o.DISPLAY,t),g&&d.getModelViewMatrix().pop(),t.getModelViewMatrix().pop(),t.getCameraSpaceMatrix().pop(),t.getViewMatrix().pop();var C=this.frameBuffer.readPixels(),M=this.frameBuffer.getWidth(),S=this.frameBuffer.getHeight();n.texImage2D(this.getTargets()[m],0,n.RGBA,M,S,!1,n.RGBA,n.UNSIGNED_BYTE,C)}this.updateTextureProperties(),t.getProjectionMatrix().pop(),t.getViewVolumes().pop(),this.frameBuffer.unbind(),"NEXT_FRAME_ONLY"===this.update_.getValue()&&(this.update_="NONE")},setShaderUniformsToChannel:function(){const e=new Float32Array(16);return function(t,i,n,s){r.prototype.setShaderUniformsToChannel.call(this,t,i,n,s),n.isIndependent()||t.uniformMatrix4fv(i.x3d_ModelViewMatrix,!1,e)}}()}),l}),e("x_ite/Components/CubeMapTexturing/ImageCubeMapTexture",["jquery","x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode","x_ite/Components/Networking/X3DUrlObject","x_ite/Bits/X3DConstants","standard/Math/Numbers/Vector2","standard/Math/Algorithm","x_ite/DEBUG"],function(e,t,i,r,n,s,a,o,u,h){"use strict";function d(e){n.call(this,e),s.call(this,e),this.addType(a.ImageCubeMapTexture),this.urlStack=new t.MFString}const g=new Uint8Array([255,255,255,255]),p=[new o(1,1),new o(3,1),new o(0,1),new o(2,1),new o(1,0),new o(1,2)];return d.prototype=Object.assign(Object.create(n.prototype),s.prototype,{constructor:d,fieldDefinitions:new r([new i(a.inputOutput,"metadata",new t.SFNode),new i(a.inputOutput,"description",new t.SFString),new i(a.inputOutput,"url",new t.MFString),new i(a.inputOutput,"autoRefresh",new t.SFTime),new i(a.inputOutput,"autoRefreshTimeLimit",new t.SFTime(3600)),new i(a.initializeOnly,"textureProperties",new t.SFNode)]),getTypeName:function(){return"ImageCubeMapTexture"},getComponentName:function(){return"CubeMapTexturing"},getContainerField:function(){return"texture"},initialize:function(){n.prototype.initialize.call(this),s.prototype.initialize.call(this);const t=this.getBrowser().getContext();t.bindTexture(this.getTarget(),this.getTexture());for(let e=0;e<6;++e)t.texImage2D(this.getTargets()[e],0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,g);this.url_.addInterest("set_url__",this),this.canvas=e("<canvas></canvas>"),this.image=e("<img></img>"),this.image.on("load",this.setImage.bind(this)),this.image.on("error",this.setError.bind(this)),this.image.bind("abort",this.setError.bind(this)),this.image[0].crossOrigin="Anonymous",this.requestImmediateLoad()},set_url__:function(){this.setLoadState(a.NOT_STARTED_STATE),this.requestImmediateLoad()},requestImmediateLoad:function(e=!0){this.checkLoadState()!==a.COMPLETE_STATE&&this.checkLoadState()!==a.IN_PROGRESS_STATE&&(this.setCache(e),this.setLoadState(a.IN_PROGRESS_STATE),this.urlStack.setValue(this.url_),this.loadNext())},loadNext:function(){if(0===this.urlStack.length)return this.clearTexture(),void this.setLoadState(a.FAILED_STATE);this.URL=new URL(this.urlStack.shift(),this.getExecutionContext().getWorldURL()),this.getBrowser().getBrowserOptions().getCache()&&this.getCache()||this.URL.searchParams.set("_",Date.now()),this.image.attr("src",this.URL.href)},setError:function(){"data:"!==this.URL.protocol&&console.warn("Error loading image:",this.URL.href),this.loadNext()},setImage:function(){h&&"data:"!==this.URL.protocol&&console.info("Done loading image cube map texture:",this.URL.href);try{const e=this.image[0],t=this.canvas[0],i=t.getContext("2d");let r=e.width,n=e.height,s=Math.floor(r/4),o=Math.floor(n/3);u.isPowerOfTwo(s)&&u.isPowerOfTwo(o)&&4*s===r&&3*o===n?(t.width=r,t.height=n,i.drawImage(e,0,0)):(s=u.nextPowerOfTwo(s),o=u.nextPowerOfTwo(o),r=4*s,n=3*o,t.width=r,t.height=n,i.drawImage(e,0,0,e.width,e.height,0,0,r,n));const h=this.getBrowser().getContext();let d=!0;h.bindTexture(this.getTarget(),this.getTexture()),h.pixelStorei(h.UNPACK_FLIP_Y_WEBGL,!1);for(let e=0;e<6;++e){const t=i.getImageData(p[e].x*s,p[e].y*o,s,o).data;if(d)for(let e=3;e<t.length;e+=4)if(255!==t[e]){d=!1;break}h.texImage2D(this.getTargets()[e],0,h.RGBA,s,o,!1,h.RGBA,h.UNSIGNED_BYTE,new Uint8Array(t))}this.updateTextureProperties(),this.setTransparent(!d),this.setLoadState(a.COMPLETE_STATE)}catch(e){console.log(e.message),this.setError()}}}),d}),e(t.getComponentUrl("cube-map-texturing"),["x_ite/Components","x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture","x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture","x_ite/Components/CubeMapTexturing/ImageCubeMapTexture","x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode"],function(e,t,i,r,n){"use strict";e.addComponent({name:"CubeMapTexturing",types:{ComposedCubeMapTexture:t,GeneratedCubeMapTexture:i,ImageCubeMapTexture:r},abstractTypes:{X3DEnvironmentTextureNode:n}})})}();
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function ()
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
if (typeof __filename === "undefined")
|
|
5
|
-
{
|
|
6
|
-
globalModule = undefined;
|
|
7
|
-
globalRequire = undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
// Undefine global variables.
|
|
11
4
|
var module = { }, exports, process;
|
|
12
5
|
|
|
@@ -914,5 +907,4 @@ function (Components,
|
|
|
914
907
|
|
|
915
908
|
|
|
916
909
|
|
|
917
|
-
})
|
|
918
|
-
(typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
|
|
910
|
+
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){"undefined"==typeof __filename&&void 0;const e=X3D.define,i=X3D.require;e("x_ite/Components/DIS/DISEntityManager",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u){"use strict";function o(t){i.call(this,t),this.addType(u.DISEntityManager)}return o.prototype=Object.assign(Object.create(i.prototype),{constructor:o,fieldDefinitions:new e([new n(u.inputOutput,"metadata",new t.SFNode),new n(u.inputOutput,"address",new t.SFString("localhost")),new n(u.inputOutput,"applicationID",new t.SFInt32(1)),new n(u.inputOutput,"mapping",new t.MFNode),new n(u.inputOutput,"port",new t.SFInt32),new n(u.inputOutput,"siteID",new t.SFInt32),new n(u.outputOnly,"addedEntities",new t.MFNode),new n(u.outputOnly,"removedEntities",new t.MFNode)]),getTypeName:function(){return"DISEntityManager"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"}}),o}),e("x_ite/Components/DIS/DISEntityTypeMapping",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DInfoNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u){"use strict";function o(t){i.call(this,t),this.addType(u.DISEntityTypeMapping)}return o.prototype=Object.assign(Object.create(i.prototype),{constructor:o,fieldDefinitions:new e([new n(u.inputOutput,"metadata",new t.SFNode),new n(u.inputOutput,"url",new t.MFString),new n(u.initializeOnly,"category",new t.SFInt32),new n(u.initializeOnly,"country",new t.SFInt32),new n(u.initializeOnly,"domain",new t.SFInt32),new n(u.initializeOnly,"extra",new t.SFInt32),new n(u.initializeOnly,"kind",new t.SFInt32),new n(u.initializeOnly,"specific",new t.SFInt32),new n(u.initializeOnly,"subcategory",new t.SFInt32)]),getTypeName:function(){return"DISEntityTypeMapping"},getComponentName:function(){return"DIS"},getContainerField:function(){return"mapping"}}),o}),e("x_ite/Components/DIS/EspduTransform",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DGroupingNode","x_ite/Components/Core/X3DSensorNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.EspduTransform)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOnly,"addChildren",new t.MFNode),new n(o.inputOnly,"removeChildren",new t.MFNode),new n(o.inputOutput,"children",new t.MFNode),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOnly,"set_articulationParameterValue0",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue1",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue2",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue3",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue4",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue5",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue6",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue7",new t.SFFloat),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"articulationParameterCount",new t.SFInt32),new n(o.inputOutput,"articulationParameterDesignatorArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterChangeIndicatorArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterIdPartAttachedToArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterTypeArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterArray",new t.MFFloat),new n(o.inputOutput,"center",new t.SFVec3f),new n(o.inputOutput,"collisionType",new t.SFInt32),new n(o.inputOutput,"deadReckoning",new t.SFInt32),new n(o.inputOutput,"detonationLocation",new t.SFVec3f),new n(o.inputOutput,"detonationRelativeLocation",new t.SFVec3f),new n(o.inputOutput,"detonationResult",new t.SFInt32),new n(o.inputOutput,"entityCategory",new t.SFInt32),new n(o.inputOutput,"entityCountry",new t.SFInt32),new n(o.inputOutput,"entityDomain",new t.SFInt32),new n(o.inputOutput,"entityExtra",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"entityKind",new t.SFInt32),new n(o.inputOutput,"entitySpecific",new t.SFInt32),new n(o.inputOutput,"entitySubCategory",new t.SFInt32),new n(o.inputOutput,"eventApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"eventEntityID",new t.SFInt32),new n(o.inputOutput,"eventNumber",new t.SFInt32),new n(o.inputOutput,"eventSiteID",new t.SFInt32),new n(o.inputOutput,"fired1",new t.SFBool),new n(o.inputOutput,"fired2",new t.SFBool),new n(o.inputOutput,"fireMissionIndex",new t.SFInt32),new n(o.inputOutput,"firingRange",new t.SFFloat),new n(o.inputOutput,"firingRate",new t.SFInt32),new n(o.inputOutput,"forceID",new t.SFInt32),new n(o.inputOutput,"fuse",new t.SFInt32),new n(o.inputOutput,"linearVelocity",new t.SFVec3f),new n(o.inputOutput,"linearAcceleration",new t.SFVec3f),new n(o.inputOutput,"marking",new t.SFString),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"munitionApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"munitionEndPoint",new t.SFVec3f),new n(o.inputOutput,"munitionEntityID",new t.SFInt32),new n(o.inputOutput,"munitionQuantity",new t.SFInt32),new n(o.inputOutput,"munitionSiteID",new t.SFInt32),new n(o.inputOutput,"munitionStartPoint",new t.SFVec3f),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFTime(.1)),new n(o.inputOutput,"rotation",new t.SFRotation),new n(o.inputOutput,"scale",new t.SFVec3f(1,1,1)),new n(o.inputOutput,"scaleOrientation",new t.SFRotation),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"translation",new t.SFVec3f),new n(o.inputOutput,"warhead",new t.SFInt32),new n(o.inputOutput,"writeInterval",new t.SFTime(1)),new n(o.outputOnly,"articulationParameterValue0_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue1_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue2_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue3_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue4_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue5_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue6_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue7_changed",new t.SFFloat),new n(o.outputOnly,"collideTime",new t.SFTime),new n(o.outputOnly,"detonateTime",new t.SFTime),new n(o.outputOnly,"firedTime",new t.SFTime),new n(o.outputOnly,"isCollided",new t.SFBool),new n(o.outputOnly,"isDetonated",new t.SFBool),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime),new n(o.initializeOnly,"rtpHeaderExpected",new t.SFBool)]),getTypeName:function(){return"EspduTransform"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),e("x_ite/Components/DIS/ReceiverPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.ReceiverPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"receivedPower",new t.SFFloat),new n(o.inputOutput,"receiverState",new t.SFInt32),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"transmitterApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"transmitterEntityID",new t.SFInt32),new n(o.inputOutput,"transmitterRadioID",new t.SFInt32),new n(o.inputOutput,"transmitterSiteID",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"ReceiverPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),e("x_ite/Components/DIS/SignalPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.SignalPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"data",new t.MFInt32),new n(o.inputOutput,"dataLength",new t.SFInt32),new n(o.inputOutput,"encodingScheme",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"sampleRate",new t.SFInt32),new n(o.inputOutput,"samples",new t.SFInt32),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"tdlType",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"SignalPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),e("x_ite/Components/DIS/TransmitterPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.TransmitterPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"antennaLocation",new t.SFVec3f),new n(o.inputOutput,"antennaPatternLength",new t.SFInt32),new n(o.inputOutput,"antennaPatternType",new t.SFInt32),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"cryptoKeyID",new t.SFInt32),new n(o.inputOutput,"cryptoSystem",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"frequency",new t.SFInt32),new n(o.inputOutput,"inputSource",new t.SFInt32),new n(o.inputOutput,"lengthOfModulationParameters",new t.SFInt32),new n(o.inputOutput,"modulationTypeDetail",new t.SFInt32),new n(o.inputOutput,"modulationTypeMajor",new t.SFInt32),new n(o.inputOutput,"modulationTypeSpreadSpectrum",new t.SFInt32),new n(o.inputOutput,"modulationTypeSystem",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"power",new t.SFFloat),new n(o.inputOutput,"radioEntityTypeCategory",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeCountry",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeDomain",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeKind",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeNomenclature",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeNomenclatureVersion",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"relativeAntennaLocation",new t.SFVec3f),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"transmitFrequencyBandwidth",new t.SFFloat),new n(o.inputOutput,"transmitState",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"TransmitterPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),e(i.getComponentUrl("dis"),["x_ite/Components","x_ite/Components/DIS/DISEntityManager","x_ite/Components/DIS/DISEntityTypeMapping","x_ite/Components/DIS/EspduTransform","x_ite/Components/DIS/ReceiverPdu","x_ite/Components/DIS/SignalPdu","x_ite/Components/DIS/TransmitterPdu"],function(t,n,e,i,u,o,p){"use strict";t.addComponent({name:"DIS",types:{DISEntityManager:n,DISEntityTypeMapping:e,EspduTransform:i,ReceiverPdu:u,SignalPdu:o,TransmitterPdu:p},abstractTypes:{}})})}("object"==typeof module?module:void 0,"function"==typeof require?require:void 0);
|
|
1
|
+
!function(){const t=X3D.define,n=X3D.require;t("x_ite/Components/DIS/DISEntityManager",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u){"use strict";function o(t){i.call(this,t),this.addType(u.DISEntityManager)}return o.prototype=Object.assign(Object.create(i.prototype),{constructor:o,fieldDefinitions:new e([new n(u.inputOutput,"metadata",new t.SFNode),new n(u.inputOutput,"address",new t.SFString("localhost")),new n(u.inputOutput,"applicationID",new t.SFInt32(1)),new n(u.inputOutput,"mapping",new t.MFNode),new n(u.inputOutput,"port",new t.SFInt32),new n(u.inputOutput,"siteID",new t.SFInt32),new n(u.outputOnly,"addedEntities",new t.MFNode),new n(u.outputOnly,"removedEntities",new t.MFNode)]),getTypeName:function(){return"DISEntityManager"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"}}),o}),t("x_ite/Components/DIS/DISEntityTypeMapping",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DInfoNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u){"use strict";function o(t){i.call(this,t),this.addType(u.DISEntityTypeMapping)}return o.prototype=Object.assign(Object.create(i.prototype),{constructor:o,fieldDefinitions:new e([new n(u.inputOutput,"metadata",new t.SFNode),new n(u.inputOutput,"url",new t.MFString),new n(u.initializeOnly,"category",new t.SFInt32),new n(u.initializeOnly,"country",new t.SFInt32),new n(u.initializeOnly,"domain",new t.SFInt32),new n(u.initializeOnly,"extra",new t.SFInt32),new n(u.initializeOnly,"kind",new t.SFInt32),new n(u.initializeOnly,"specific",new t.SFInt32),new n(u.initializeOnly,"subcategory",new t.SFInt32)]),getTypeName:function(){return"DISEntityTypeMapping"},getComponentName:function(){return"DIS"},getContainerField:function(){return"mapping"}}),o}),t("x_ite/Components/DIS/EspduTransform",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DGroupingNode","x_ite/Components/Core/X3DSensorNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.EspduTransform)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOnly,"addChildren",new t.MFNode),new n(o.inputOnly,"removeChildren",new t.MFNode),new n(o.inputOutput,"children",new t.MFNode),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOnly,"set_articulationParameterValue0",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue1",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue2",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue3",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue4",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue5",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue6",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue7",new t.SFFloat),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"articulationParameterCount",new t.SFInt32),new n(o.inputOutput,"articulationParameterDesignatorArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterChangeIndicatorArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterIdPartAttachedToArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterTypeArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterArray",new t.MFFloat),new n(o.inputOutput,"center",new t.SFVec3f),new n(o.inputOutput,"collisionType",new t.SFInt32),new n(o.inputOutput,"deadReckoning",new t.SFInt32),new n(o.inputOutput,"detonationLocation",new t.SFVec3f),new n(o.inputOutput,"detonationRelativeLocation",new t.SFVec3f),new n(o.inputOutput,"detonationResult",new t.SFInt32),new n(o.inputOutput,"entityCategory",new t.SFInt32),new n(o.inputOutput,"entityCountry",new t.SFInt32),new n(o.inputOutput,"entityDomain",new t.SFInt32),new n(o.inputOutput,"entityExtra",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"entityKind",new t.SFInt32),new n(o.inputOutput,"entitySpecific",new t.SFInt32),new n(o.inputOutput,"entitySubCategory",new t.SFInt32),new n(o.inputOutput,"eventApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"eventEntityID",new t.SFInt32),new n(o.inputOutput,"eventNumber",new t.SFInt32),new n(o.inputOutput,"eventSiteID",new t.SFInt32),new n(o.inputOutput,"fired1",new t.SFBool),new n(o.inputOutput,"fired2",new t.SFBool),new n(o.inputOutput,"fireMissionIndex",new t.SFInt32),new n(o.inputOutput,"firingRange",new t.SFFloat),new n(o.inputOutput,"firingRate",new t.SFInt32),new n(o.inputOutput,"forceID",new t.SFInt32),new n(o.inputOutput,"fuse",new t.SFInt32),new n(o.inputOutput,"linearVelocity",new t.SFVec3f),new n(o.inputOutput,"linearAcceleration",new t.SFVec3f),new n(o.inputOutput,"marking",new t.SFString),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"munitionApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"munitionEndPoint",new t.SFVec3f),new n(o.inputOutput,"munitionEntityID",new t.SFInt32),new n(o.inputOutput,"munitionQuantity",new t.SFInt32),new n(o.inputOutput,"munitionSiteID",new t.SFInt32),new n(o.inputOutput,"munitionStartPoint",new t.SFVec3f),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFTime(.1)),new n(o.inputOutput,"rotation",new t.SFRotation),new n(o.inputOutput,"scale",new t.SFVec3f(1,1,1)),new n(o.inputOutput,"scaleOrientation",new t.SFRotation),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"translation",new t.SFVec3f),new n(o.inputOutput,"warhead",new t.SFInt32),new n(o.inputOutput,"writeInterval",new t.SFTime(1)),new n(o.outputOnly,"articulationParameterValue0_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue1_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue2_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue3_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue4_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue5_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue6_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue7_changed",new t.SFFloat),new n(o.outputOnly,"collideTime",new t.SFTime),new n(o.outputOnly,"detonateTime",new t.SFTime),new n(o.outputOnly,"firedTime",new t.SFTime),new n(o.outputOnly,"isCollided",new t.SFBool),new n(o.outputOnly,"isDetonated",new t.SFBool),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime),new n(o.initializeOnly,"rtpHeaderExpected",new t.SFBool)]),getTypeName:function(){return"EspduTransform"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),t("x_ite/Components/DIS/ReceiverPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.ReceiverPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"receivedPower",new t.SFFloat),new n(o.inputOutput,"receiverState",new t.SFInt32),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"transmitterApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"transmitterEntityID",new t.SFInt32),new n(o.inputOutput,"transmitterRadioID",new t.SFInt32),new n(o.inputOutput,"transmitterSiteID",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"ReceiverPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),t("x_ite/Components/DIS/SignalPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.SignalPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"data",new t.MFInt32),new n(o.inputOutput,"dataLength",new t.SFInt32),new n(o.inputOutput,"encodingScheme",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"sampleRate",new t.SFInt32),new n(o.inputOutput,"samples",new t.SFInt32),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"tdlType",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"SignalPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),t("x_ite/Components/DIS/TransmitterPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.TransmitterPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"antennaLocation",new t.SFVec3f),new n(o.inputOutput,"antennaPatternLength",new t.SFInt32),new n(o.inputOutput,"antennaPatternType",new t.SFInt32),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"cryptoKeyID",new t.SFInt32),new n(o.inputOutput,"cryptoSystem",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"frequency",new t.SFInt32),new n(o.inputOutput,"inputSource",new t.SFInt32),new n(o.inputOutput,"lengthOfModulationParameters",new t.SFInt32),new n(o.inputOutput,"modulationTypeDetail",new t.SFInt32),new n(o.inputOutput,"modulationTypeMajor",new t.SFInt32),new n(o.inputOutput,"modulationTypeSpreadSpectrum",new t.SFInt32),new n(o.inputOutput,"modulationTypeSystem",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"power",new t.SFFloat),new n(o.inputOutput,"radioEntityTypeCategory",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeCountry",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeDomain",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeKind",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeNomenclature",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeNomenclatureVersion",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"relativeAntennaLocation",new t.SFVec3f),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"transmitFrequencyBandwidth",new t.SFFloat),new n(o.inputOutput,"transmitState",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"TransmitterPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),t(n.getComponentUrl("dis"),["x_ite/Components","x_ite/Components/DIS/DISEntityManager","x_ite/Components/DIS/DISEntityTypeMapping","x_ite/Components/DIS/EspduTransform","x_ite/Components/DIS/ReceiverPdu","x_ite/Components/DIS/SignalPdu","x_ite/Components/DIS/TransmitterPdu"],function(t,n,e,i,u,o,p){"use strict";t.addComponent({name:"DIS",types:{DISEntityManager:n,DISEntityTypeMapping:e,EspduTransform:i,ReceiverPdu:u,SignalPdu:o,TransmitterPdu:p},abstractTypes:{}})})}();
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function ()
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
if (typeof __filename === "undefined")
|
|
5
|
-
{
|
|
6
|
-
globalModule = undefined;
|
|
7
|
-
globalRequire = undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
// Undefine global variables.
|
|
11
4
|
var module = { }, exports, process;
|
|
12
5
|
|
|
@@ -1120,5 +1113,4 @@ function (Components,
|
|
|
1120
1113
|
|
|
1121
1114
|
|
|
1122
1115
|
|
|
1123
|
-
})
|
|
1124
|
-
(typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
|
|
1116
|
+
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(
|
|
1
|
+
!function(){const e=X3D.define,t=X3D.require;e("x_ite/Components/EventUtilities/BooleanFilter",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanFilter)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.outputOnly,"inputTrue",new e.SFBool),new t(o.outputOnly,"inputFalse",new e.SFBool),new t(o.outputOnly,"inputNegate",new e.SFBool)]),getTypeName:function(){return"BooleanFilter"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){var e=this.set_boolean_.getValue();e?this.inputTrue_=!0:this.inputFalse_=!1,this.inputNegate_=!e}}),s}),e("x_ite/Components/EventUtilities/X3DSequencerNode",["x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants","standard/Math/Algorithm"],function(e,t,i){"use strict";function n(i){e.call(this,i),this.addType(t.X3DSequencerNode),this.index=-1}return n.prototype=Object.assign(Object.create(e.prototype),{constructor:n,initialize:function(){e.prototype.initialize.call(this),this.set_fraction_.addInterest("set_fraction__",this),this.previous_.addInterest("set_previous__",this),this.next_.addInterest("set_next__",this),this.key_.addInterest("set_index__",this)},set_fraction__:function(){var e=this.set_fraction_.getValue(),t=this.key_,n=t.length;if(0!==n){var o=0;if(1===n||e<=t[0])o=0;else if(e>=t[n-1])o=this.getSize()-1;else{var s=i.upperBound(t,0,n,e,i.less);o=s-1}o!==this.index&&o<this.getSize()&&this.sequence(this.index=o)}},set_previous__:function(){this.previous_.getValue()&&(this.index<=0?this.index=this.getSize()-1:--this.index,this.index<this.getSize()&&this.sequence(this.index))},set_next__:function(){this.next_.getValue()&&(this.index>=this.getSize()-1?this.index=0:++this.index,this.index<this.getSize()&&this.sequence(this.index))},set_index__:function(){this.index=-1}}),n}),e("x_ite/Components/EventUtilities/BooleanSequencer",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DSequencerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanSequencer)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_fraction",new e.SFFloat),new t(o.inputOnly,"previous",new e.SFBool),new t(o.inputOnly,"next",new e.SFBool),new t(o.inputOutput,"key",new e.MFFloat),new t(o.inputOutput,"keyValue",new e.MFBool),new t(o.outputOnly,"value_changed",new e.SFBool)]),getTypeName:function(){return"BooleanSequencer"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.keyValue_.addInterest("set_index__",this)},getSize:function(){return this.keyValue_.length},sequence:function(e){this.value_changed_=this.keyValue_[e]}}),s}),e("x_ite/Components/EventUtilities/BooleanToggle",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanToggle)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.inputOutput,"toggle",new e.SFBool)]),getTypeName:function(){return"BooleanToggle"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){this.set_boolean_.getValue()&&(this.toggle_=!this.toggle_.getValue())}}),s}),e("x_ite/Components/EventUtilities/X3DTriggerNode",["x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t){"use strict";function i(i){e.call(this,i),this.addType(t.X3DTriggerNode)}return i.prototype=Object.assign(Object.create(e.prototype),{constructor:i}),i}),e("x_ite/Components/EventUtilities/BooleanTrigger",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DTriggerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanTrigger)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_triggerTime",new e.SFTime),new t(o.outputOnly,"triggerTrue",new e.SFBool)]),getTypeName:function(){return"BooleanTrigger"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_triggerTime_.addInterest("set_triggerTime__",this)},set_triggerTime__:function(){this.triggerTrue_=!0}}),s}),e("x_ite/Components/EventUtilities/IntegerSequencer",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DSequencerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.IntegerSequencer)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_fraction",new e.SFFloat),new t(o.inputOnly,"previous",new e.SFBool),new t(o.inputOnly,"next",new e.SFBool),new t(o.inputOutput,"key",new e.MFFloat),new t(o.inputOutput,"keyValue",new e.MFInt32),new t(o.outputOnly,"value_changed",new e.SFInt32)]),getTypeName:function(){return"IntegerSequencer"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.keyValue_.addInterest("set_index__",this)},getSize:function(){return this.keyValue_.length},sequence:function(e){this.value_changed_=this.keyValue_[e]}}),s}),e("x_ite/Components/EventUtilities/IntegerTrigger",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DTriggerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.IntegerTrigger)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.inputOutput,"integerKey",new e.SFInt32(-1)),new t(o.outputOnly,"triggerValue",new e.SFInt32)]),getTypeName:function(){return"IntegerTrigger"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){this.triggerValue_=this.integerKey_}}),s}),e("x_ite/Components/EventUtilities/TimeTrigger",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DTriggerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.TimeTrigger)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.outputOnly,"triggerTime",new e.SFTime)]),getTypeName:function(){return"TimeTrigger"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){this.triggerTime_=this.getBrowser().getCurrentTime()}}),s}),e(t.getComponentUrl("event-utilities"),["x_ite/Components","x_ite/Components/EventUtilities/BooleanFilter","x_ite/Components/EventUtilities/BooleanSequencer","x_ite/Components/EventUtilities/BooleanToggle","x_ite/Components/EventUtilities/BooleanTrigger","x_ite/Components/EventUtilities/IntegerSequencer","x_ite/Components/EventUtilities/IntegerTrigger","x_ite/Components/EventUtilities/TimeTrigger","x_ite/Components/EventUtilities/X3DSequencerNode","x_ite/Components/EventUtilities/X3DTriggerNode"],function(e,t,i,n,o,s,r,l,u,a){"use strict";e.addComponent({name:"EventUtilities",types:{BooleanFilter:t,BooleanSequencer:i,BooleanToggle:n,BooleanTrigger:o,IntegerSequencer:s,IntegerTrigger:r,TimeTrigger:l},abstractTypes:{X3DSequencerNode:u,X3DTriggerNode:a}})})}();
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function ()
|
|
2
2
|
{
|
|
3
|
-
|
|
4
|
-
if (typeof __filename === "undefined")
|
|
5
|
-
{
|
|
6
|
-
globalModule = undefined;
|
|
7
|
-
globalRequire = undefined;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
3
|
// Undefine global variables.
|
|
11
4
|
var module = { }, exports, process;
|
|
12
5
|
|
|
@@ -2196,5 +2189,4 @@ function (Components,
|
|
|
2196
2189
|
|
|
2197
2190
|
|
|
2198
2191
|
|
|
2199
|
-
})
|
|
2200
|
-
(typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
|
|
2192
|
+
})();
|