x_ite 8.7.8 → 8.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +3 -0
- package/build/bin/version.pl +1 -1
- package/dist/assets/components/Annotation.js +248 -169
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +296 -233
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +217 -172
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +451 -387
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +309 -208
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +397 -333
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +705 -575
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +319 -259
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +134 -99
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +305 -240
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +781 -626
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +632 -460
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +376 -295
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +936 -749
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +173 -103
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +241 -207
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +162 -129
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +485 -384
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +741 -547
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +66 -54
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +61554 -59658
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -2
- package/package.json +4 -4
- package/src/assets/components/Annotation.js +14 -14
- package/src/assets/components/CADGeometry.js +14 -14
- package/src/assets/components/CubeMapTexturing.js +11 -11
- package/src/assets/components/DIS.js +13 -13
- package/src/assets/components/EventUtilities.js +16 -16
- package/src/assets/components/Geometry2D.js +15 -15
- package/src/assets/components/Geospatial.js +19 -19
- package/src/assets/components/HAnim.js +13 -13
- package/src/assets/components/KeyDeviceSensor.js +10 -10
- package/src/assets/components/Layout.js +13 -13
- package/src/assets/components/NURBS.js +24 -24
- package/src/assets/components/ParticleSystems.js +19 -19
- package/src/assets/components/Picking.js +14 -14
- package/src/assets/components/RigidBodyPhysics.js +24 -24
- package/src/assets/components/Scripting.js +9 -9
- package/src/assets/components/Text.js +10 -10
- package/src/assets/components/TextureProjector.js +10 -10
- package/src/assets/components/Texturing3D.js +16 -16
- package/src/assets/components/VolumeRendering.js +23 -23
- package/src/assets/components/X_ITE.js +8 -7
- package/src/assets/shaders/webgl1/include/Shadow.glsl.js +21 -25
- package/src/assets/shaders/webgl2/include/Shadow.glsl.js +23 -27
- package/src/bookmarks.js +2 -2
- package/src/lib/jquery.js +42 -30
- package/src/standard/Geospatial/Geodetic.js +8 -9
- package/src/standard/Geospatial/UniversalTransverseMercator.js +4 -5
- package/src/standard/Math/Algorithm.js +41 -56
- package/src/standard/Math/Algorithms/Bezier.js +2 -2
- package/src/standard/Math/Algorithms/MergeSort.js +6 -6
- package/src/standard/Math/Algorithms/PartialSort.js +5 -5
- package/src/standard/Math/Algorithms/QuickSort.js +5 -5
- package/src/standard/Math/Geometry/Box2.js +16 -17
- package/src/standard/Math/Geometry/Box3.js +18 -19
- package/src/standard/Math/Geometry/Camera.js +6 -5
- package/src/standard/Math/Geometry/Cylinder3.js +6 -7
- package/src/standard/Math/Geometry/Line2.js +20 -18
- package/src/standard/Math/Geometry/Line3.js +20 -18
- package/src/standard/Math/Geometry/Plane3.js +11 -12
- package/src/standard/Math/Geometry/Sphere3.js +6 -7
- package/src/standard/Math/Geometry/Spheroid3.js +6 -7
- package/src/standard/Math/Geometry/Triangle2.js +4 -3
- package/src/standard/Math/Geometry/Triangle3.js +5 -4
- package/src/standard/Math/Geometry/ViewVolume.js +6 -7
- package/src/standard/Math/Numbers/Color3.js +18 -19
- package/src/standard/Math/Numbers/Color4.js +20 -21
- package/src/standard/Math/Numbers/Complex.js +28 -29
- package/src/standard/Math/Numbers/Matrix2.js +22 -23
- package/src/standard/Math/Numbers/Matrix3.js +28 -29
- package/src/standard/Math/Numbers/Matrix4.js +29 -30
- package/src/standard/Math/Numbers/Quaternion.js +40 -41
- package/src/standard/Math/Numbers/Rotation4.js +34 -35
- package/src/standard/Math/Numbers/Vector2.js +29 -30
- package/src/standard/Math/Numbers/Vector3.js +32 -33
- package/src/standard/Math/Numbers/Vector4.js +34 -35
- package/src/standard/Math/Utility/BVH.js +14 -15
- package/src/standard/Math/Utility/MatrixStack.js +12 -12
- package/src/standard/Time/MicroTime.js +4 -3
- package/src/standard/Utility/BitSet.js +10 -11
- package/src/standard/Utility/DataStorage.js +10 -10
- package/src/standard/Utility/MapUtilities.js +2 -1
- package/src/standard/Utility/ObjectCache.js +3 -3
- package/src/tests.js +10 -0
- package/src/x_ite/Base/Events.js +3 -3
- package/src/x_ite/Base/FieldArray.js +11 -9
- package/src/x_ite/Base/FieldDefinitionArray.js +11 -9
- package/src/x_ite/Base/X3DArrayField.js +13 -14
- package/src/x_ite/Base/X3DBaseNode.js +219 -181
- package/src/x_ite/Base/X3DCast.js +1 -1
- package/src/x_ite/Base/X3DChildObject.js +162 -53
- package/src/x_ite/Base/X3DConstants.js +74 -60
- package/src/x_ite/Base/X3DEventObject.js +6 -12
- package/src/x_ite/Base/X3DField.js +45 -42
- package/src/x_ite/Base/X3DFieldDefinition.js +9 -7
- package/src/x_ite/Base/X3DInfoArray.js +75 -65
- package/src/x_ite/Base/X3DObject.js +59 -29
- package/src/x_ite/Base/X3DObjectArrayField.js +51 -117
- package/src/x_ite/Base/X3DTypedArrayField.js +48 -42
- package/src/x_ite/Browser/Core/BrowserOptions.js +55 -57
- package/src/x_ite/Browser/Core/BrowserProperties.js +18 -20
- package/src/x_ite/Browser/Core/BrowserTimings.js +29 -33
- package/src/x_ite/Browser/Core/Context.js +7 -7
- package/src/x_ite/Browser/Core/ContextMenu.js +61 -83
- package/src/x_ite/Browser/Core/Notification.js +12 -12
- package/src/x_ite/Browser/Core/RenderingProperties.js +28 -28
- package/src/x_ite/Browser/Core/X3DCoreContext.js +45 -37
- package/src/x_ite/Browser/DOMIntegration.js +4 -1
- package/src/x_ite/Browser/EnvironmentalEffects/X3DEnvironmentalEffectsContext.js +3 -3
- package/src/x_ite/Browser/Followers/X3DArrayChaserTemplate.js +1 -1
- package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +12 -12
- package/src/x_ite/Browser/Geometry2D/Arc2DOptions.js +8 -14
- package/src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js +8 -14
- package/src/x_ite/Browser/Geometry2D/Circle2DOptions.js +13 -17
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +15 -19
- package/src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js +12 -16
- package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +9 -9
- package/src/x_ite/Browser/Geometry3D/BoxOptions.js +12 -16
- package/src/x_ite/Browser/Geometry3D/ConeOptions.js +6 -12
- package/src/x_ite/Browser/Geometry3D/CylinderOptions.js +6 -12
- package/src/x_ite/Browser/Geometry3D/IcoSphereOptions.js +13 -17
- package/src/x_ite/Browser/Geometry3D/QuadSphereOptions.js +17 -21
- package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +8 -8
- package/src/x_ite/Browser/Geospatial/Geocentric.js +5 -6
- package/src/x_ite/Browser/Geospatial/Geospatial.js +10 -10
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +3 -3
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +2 -3
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator1.js +8 -9
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +7 -8
- package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +3 -4
- package/src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js +8 -8
- package/src/x_ite/Browser/Layering/X3DLayeringContext.js +4 -4
- package/src/x_ite/Browser/Layout/ScreenText.js +7 -8
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +3 -3
- package/src/x_ite/Browser/Legacy.js +32 -12
- package/src/x_ite/Browser/Lighting/X3DLightingContext.js +5 -5
- package/src/x_ite/Browser/NURBS/NURBS.js +10 -10
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +32 -20
- package/src/x_ite/Browser/Navigation/FlyViewer.js +22 -10
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +29 -17
- package/src/x_ite/Browser/Navigation/NoneViewer.js +15 -5
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +24 -12
- package/src/x_ite/Browser/Navigation/WalkViewer.js +22 -10
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +17 -18
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +19 -19
- package/src/x_ite/Browser/Navigation/X3DViewer.js +13 -19
- package/src/x_ite/Browser/Networking/URLs.js +5 -5
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +16 -16
- package/src/x_ite/Browser/ParticleSystems/X3DParticleSystemsContext.js +3 -3
- package/src/x_ite/Browser/Picking/VolumePicker.js +8 -8
- package/src/x_ite/Browser/Picking/X3DPickingContext.js +12 -12
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +24 -20
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDeviceSensorContainer.js +6 -6
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +21 -21
- package/src/x_ite/Browser/Rendering/GeometryContext.js +4 -5
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +18 -18
- package/src/x_ite/Browser/Scripting/X3DScriptingContext.js +4 -4
- package/src/x_ite/Browser/Shaders/ShaderCompiler.js +4 -4
- package/src/x_ite/Browser/Shaders/ShaderSource.js +1 -1
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +13 -13
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +12 -12
- package/src/x_ite/Browser/Sound/X3DSoundContext.js +0 -2
- package/src/x_ite/Browser/Text/PolygonText.js +10 -11
- package/src/x_ite/Browser/Text/X3DTextContext.js +6 -6
- package/src/x_ite/Browser/Text/X3DTextGeometry.js +18 -19
- package/src/x_ite/Browser/Texturing/GifMedia.js +7 -7
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +24 -24
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +38 -38
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +14 -14
- package/src/x_ite/Browser/Time/X3DTimeContext.js +5 -5
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/VolumeRendering/VolumeMaterial.js +39 -22
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +6 -6
- package/src/x_ite/Browser/X3DBrowser.js +170 -136
- package/src/x_ite/Browser/X3DBrowserContext.js +23 -24
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +30 -19
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +30 -19
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +40 -29
- package/src/x_ite/Components/Annotation/IconAnnotation.js +38 -27
- package/src/x_ite/Components/Annotation/TextAnnotation.js +31 -20
- package/src/x_ite/Components/Annotation/URLAnnotation.js +30 -19
- package/src/x_ite/Components/Annotation/X3DAnnotationNode.js +16 -3
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +32 -21
- package/src/x_ite/Components/CADGeometry/CADFace.js +48 -37
- package/src/x_ite/Components/CADGeometry/CADLayer.js +30 -21
- package/src/x_ite/Components/CADGeometry/CADPart.js +37 -26
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +51 -46
- package/src/x_ite/Components/CADGeometry/QuadSet.js +48 -43
- package/src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js +13 -2
- package/src/x_ite/Components/Core/MetadataBoolean.js +33 -22
- package/src/x_ite/Components/Core/MetadataDouble.js +33 -22
- package/src/x_ite/Components/Core/MetadataFloat.js +33 -22
- package/src/x_ite/Components/Core/MetadataInteger.js +33 -22
- package/src/x_ite/Components/Core/MetadataSet.js +33 -22
- package/src/x_ite/Components/Core/MetadataString.js +33 -22
- package/src/x_ite/Components/Core/WorldInfo.js +34 -23
- package/src/x_ite/Components/Core/X3DBindableNode.js +17 -4
- package/src/x_ite/Components/Core/X3DChildNode.js +19 -6
- package/src/x_ite/Components/Core/X3DInfoNode.js +13 -2
- package/src/x_ite/Components/Core/X3DMetadataObject.js +18 -5
- package/src/x_ite/Components/Core/X3DNode.js +66 -34
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +68 -77
- package/src/x_ite/Components/Core/X3DSensorNode.js +13 -2
- package/src/x_ite/Components/Core.js +22 -29
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +46 -35
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +39 -28
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +47 -36
- package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +21 -8
- package/src/x_ite/Components/DIS/DISEntityManager.js +29 -20
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +41 -30
- package/src/x_ite/Components/DIS/EspduTransform.js +117 -106
- package/src/x_ite/Components/DIS/ReceiverPdu.js +60 -49
- package/src/x_ite/Components/DIS/SignalPdu.js +60 -49
- package/src/x_ite/Components/DIS/TransmitterPdu.js +76 -65
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +47 -36
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +42 -31
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +39 -28
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +40 -29
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +48 -37
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +28 -15
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +30 -18
- package/src/x_ite/Components/EnvironmentalEffects.js +15 -22
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +45 -34
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +50 -39
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +41 -30
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +22 -9
- package/src/x_ite/Components/EnvironmentalSensor.js +12 -19
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +38 -27
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +38 -27
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +33 -22
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +32 -21
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +38 -27
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +33 -22
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +32 -21
- package/src/x_ite/Components/EventUtilities/X3DSequencerNode.js +20 -7
- package/src/x_ite/Components/EventUtilities/X3DTriggerNode.js +13 -2
- package/src/x_ite/Components/Followers/ColorChaser.js +47 -36
- package/src/x_ite/Components/Followers/ColorDamper.js +49 -38
- package/src/x_ite/Components/Followers/CoordinateChaser.js +33 -22
- package/src/x_ite/Components/Followers/CoordinateDamper.js +35 -24
- package/src/x_ite/Components/Followers/OrientationChaser.js +43 -32
- package/src/x_ite/Components/Followers/OrientationDamper.js +41 -30
- package/src/x_ite/Components/Followers/PositionChaser.js +33 -22
- package/src/x_ite/Components/Followers/PositionChaser2D.js +33 -22
- package/src/x_ite/Components/Followers/PositionDamper.js +35 -24
- package/src/x_ite/Components/Followers/PositionDamper2D.js +35 -24
- package/src/x_ite/Components/Followers/ScalarChaser.js +47 -36
- package/src/x_ite/Components/Followers/ScalarDamper.js +43 -32
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +33 -22
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +35 -24
- package/src/x_ite/Components/Followers/X3DChaserNode.js +27 -14
- package/src/x_ite/Components/Followers/X3DDamperNode.js +22 -9
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +29 -16
- package/src/x_ite/Components/Followers.js +25 -32
- package/src/x_ite/Components/Geometry2D/Arc2D.js +38 -27
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +39 -28
- package/src/x_ite/Components/Geometry2D/Circle2D.js +35 -24
- package/src/x_ite/Components/Geometry2D/Disk2D.js +40 -29
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +34 -23
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +34 -23
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +34 -23
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +36 -25
- package/src/x_ite/Components/Geometry3D/Box.js +34 -23
- package/src/x_ite/Components/Geometry3D/Cone.js +40 -29
- package/src/x_ite/Components/Geometry3D/Cylinder.js +41 -30
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +63 -52
- package/src/x_ite/Components/Geometry3D/Extrusion.js +49 -38
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +98 -95
- package/src/x_ite/Components/Geometry3D/Sphere.js +36 -25
- package/src/x_ite/Components/Geometry3D.js +15 -22
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +37 -26
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +63 -52
- package/src/x_ite/Components/Geospatial/GeoLOD.js +59 -48
- package/src/x_ite/Components/Geospatial/GeoLocation.js +45 -34
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +38 -27
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +37 -26
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +43 -32
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +48 -37
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +45 -34
- package/src/x_ite/Components/Geospatial/GeoTransform.js +49 -38
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +56 -45
- package/src/x_ite/Components/Geospatial/X3DGeospatialObject.js +30 -17
- package/src/x_ite/Components/Grouping/Group.js +29 -20
- package/src/x_ite/Components/Grouping/StaticGroup.js +40 -48
- package/src/x_ite/Components/Grouping/Switch.js +51 -40
- package/src/x_ite/Components/Grouping/Transform.js +34 -25
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +22 -9
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +224 -221
- package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +20 -7
- package/src/x_ite/Components/Grouping/X3DTransformNode.js +17 -4
- package/src/x_ite/Components/Grouping.js +16 -23
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +27 -18
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +73 -62
- package/src/x_ite/Components/HAnim/HAnimJoint.js +61 -50
- package/src/x_ite/Components/HAnim/HAnimMotion.js +44 -33
- package/src/x_ite/Components/HAnim/HAnimSegment.js +36 -27
- package/src/x_ite/Components/HAnim/HAnimSite.js +36 -27
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +38 -27
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +39 -28
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +38 -27
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +38 -27
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +39 -28
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +44 -33
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +44 -33
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +44 -33
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +40 -29
- package/src/x_ite/Components/Interpolation/X3DInterpolatorNode.js +21 -8
- package/src/x_ite/Components/Interpolation.js +22 -29
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +44 -33
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +38 -27
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +23 -10
- package/src/x_ite/Components/Layering/Layer.js +40 -29
- package/src/x_ite/Components/Layering/LayerSet.js +44 -33
- package/src/x_ite/Components/Layering/Viewport.js +48 -37
- package/src/x_ite/Components/Layering/X3DLayerNode.js +45 -32
- package/src/x_ite/Components/Layering/X3DViewportNode.js +13 -2
- package/src/x_ite/Components/Layering.js +13 -20
- package/src/x_ite/Components/Layout/Layout.js +60 -49
- package/src/x_ite/Components/Layout/LayoutGroup.js +48 -37
- package/src/x_ite/Components/Layout/LayoutLayer.js +41 -30
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +41 -30
- package/src/x_ite/Components/Layout/ScreenGroup.js +42 -31
- package/src/x_ite/Components/Layout/X3DLayoutNode.js +13 -2
- package/src/x_ite/Components/Lighting/DirectionalLight.js +45 -35
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +51 -41
- package/src/x_ite/Components/Lighting/PointLight.js +53 -43
- package/src/x_ite/Components/Lighting/SpotLight.js +62 -52
- package/src/x_ite/Components/Lighting/X3DLightNode.js +29 -16
- package/src/x_ite/Components/Lighting.js +13 -20
- package/src/x_ite/Components/NURBS/Contour2D.js +45 -45
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +34 -23
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +23 -14
- package/src/x_ite/Components/NURBS/NurbsCurve.js +47 -36
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +44 -33
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +46 -35
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +36 -27
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +46 -35
- package/src/x_ite/Components/NURBS/NurbsSet.js +52 -52
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +44 -33
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +40 -29
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +40 -29
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +43 -32
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +59 -59
- package/src/x_ite/Components/NURBS/X3DNurbsControlCurveNode.js +13 -2
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +30 -17
- package/src/x_ite/Components/NURBS/X3DParametricGeometryNode.js +16 -3
- package/src/x_ite/Components/Navigation/Billboard.js +43 -32
- package/src/x_ite/Components/Navigation/Collision.js +49 -38
- package/src/x_ite/Components/Navigation/LOD.js +54 -43
- package/src/x_ite/Components/Navigation/NavigationInfo.js +58 -47
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +69 -58
- package/src/x_ite/Components/Navigation/Viewpoint.js +53 -42
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +44 -33
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +48 -35
- package/src/x_ite/Components/Navigation.js +16 -23
- package/src/x_ite/Components/Networking/Anchor.js +51 -40
- package/src/x_ite/Components/Networking/Inline.js +54 -43
- package/src/x_ite/Components/Networking/LoadSensor.js +49 -38
- package/src/x_ite/Components/Networking/X3DNetworkSensorNode.js +13 -2
- package/src/x_ite/Components/Networking/X3DUrlObject.js +35 -22
- package/src/x_ite/Components/Networking.js +13 -20
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +37 -26
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +44 -33
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +41 -30
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +34 -23
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +83 -72
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +41 -30
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +42 -31
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +42 -31
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +43 -32
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +38 -27
- package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +33 -20
- package/src/x_ite/Components/ParticleSystems/X3DParticlePhysicsModelNode.js +16 -3
- package/src/x_ite/Components/Picking/LinePickSensor.js +49 -38
- package/src/x_ite/Components/Picking/PickableGroup.js +45 -34
- package/src/x_ite/Components/Picking/PointPickSensor.js +46 -35
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +46 -35
- package/src/x_ite/Components/Picking/VolumePickSensor.js +45 -34
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +31 -18
- package/src/x_ite/Components/Picking/X3DPickableObject.js +20 -7
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +50 -39
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +52 -45
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +44 -33
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +30 -21
- package/src/x_ite/Components/PointingDeviceSensor/X3DDragSensorNode.js +13 -2
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +22 -11
- package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +16 -3
- package/src/x_ite/Components/PointingDeviceSensor.js +15 -22
- package/src/x_ite/Components/Rendering/ClipPlane.js +44 -34
- package/src/x_ite/Components/Rendering/Color.js +37 -26
- package/src/x_ite/Components/Rendering/ColorRGBA.js +37 -26
- package/src/x_ite/Components/Rendering/Coordinate.js +23 -14
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +52 -41
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +48 -37
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +44 -33
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +48 -37
- package/src/x_ite/Components/Rendering/LineSet.js +45 -34
- package/src/x_ite/Components/Rendering/Normal.js +39 -28
- package/src/x_ite/Components/Rendering/PointSet.js +45 -34
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +47 -36
- package/src/x_ite/Components/Rendering/TriangleSet.js +41 -30
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +47 -36
- package/src/x_ite/Components/Rendering/X3DColorNode.js +17 -4
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +33 -20
- package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +23 -10
- package/src/x_ite/Components/Rendering/X3DGeometricPropertyNode.js +13 -2
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +96 -80
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +21 -8
- package/src/x_ite/Components/Rendering/X3DNormalNode.js +13 -2
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +20 -7
- package/src/x_ite/Components/Rendering.js +29 -36
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +43 -32
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +48 -37
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +52 -41
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +47 -36
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +41 -30
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +44 -33
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +38 -29
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +60 -49
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +48 -39
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +69 -58
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +61 -50
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +49 -38
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +47 -36
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +36 -27
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +24 -11
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpaceNode.js +17 -4
- package/src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js +34 -21
- package/src/x_ite/Components/Scripting/Script.js +83 -53
- package/src/x_ite/Components/Scripting/X3DScriptNode.js +17 -4
- package/src/x_ite/Components/Shaders/ComposedShader.js +46 -35
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +40 -29
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +38 -27
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +38 -27
- package/src/x_ite/Components/Shaders/PackagedShader.js +45 -34
- package/src/x_ite/Components/Shaders/ProgramShader.js +27 -18
- package/src/x_ite/Components/Shaders/ShaderPart.js +47 -36
- package/src/x_ite/Components/Shaders/ShaderProgram.js +42 -31
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +51 -38
- package/src/x_ite/Components/Shaders/X3DShaderNode.js +19 -6
- package/src/x_ite/Components/Shaders/X3DVertexAttributeNode.js +17 -4
- package/src/x_ite/Components/Shaders.js +19 -26
- package/src/x_ite/Components/Shape/AcousticProperties.js +28 -19
- package/src/x_ite/Components/Shape/Appearance.js +79 -68
- package/src/x_ite/Components/Shape/FillProperties.js +44 -33
- package/src/x_ite/Components/Shape/LineProperties.js +44 -33
- package/src/x_ite/Components/Shape/Material.js +75 -64
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +65 -54
- package/src/x_ite/Components/Shape/PointProperties.js +43 -32
- package/src/x_ite/Components/Shape/Shape.js +48 -37
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +60 -49
- package/src/x_ite/Components/Shape/UnlitMaterial.js +44 -33
- package/src/x_ite/Components/Shape/X3DAppearanceChildNode.js +13 -2
- package/src/x_ite/Components/Shape/X3DAppearanceNode.js +17 -4
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +41 -33
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +29 -16
- package/src/x_ite/Components/Shape/X3DShapeNode.js +28 -15
- package/src/x_ite/Components/Shape.js +23 -30
- package/src/x_ite/Components/Sound/Analyser.js +46 -37
- package/src/x_ite/Components/Sound/AudioClip.js +61 -50
- package/src/x_ite/Components/Sound/AudioDestination.js +35 -26
- package/src/x_ite/Components/Sound/BiquadFilter.js +45 -36
- package/src/x_ite/Components/Sound/BufferAudioSource.js +61 -50
- package/src/x_ite/Components/Sound/ChannelMerger.js +32 -23
- package/src/x_ite/Components/Sound/ChannelSelector.js +33 -24
- package/src/x_ite/Components/Sound/ChannelSplitter.js +33 -24
- package/src/x_ite/Components/Sound/Convolver.js +43 -34
- package/src/x_ite/Components/Sound/Delay.js +43 -34
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +47 -38
- package/src/x_ite/Components/Sound/Gain.js +41 -32
- package/src/x_ite/Components/Sound/ListenerPointSource.js +39 -30
- package/src/x_ite/Components/Sound/MicrophoneSource.js +35 -26
- package/src/x_ite/Components/Sound/OscillatorSource.js +37 -28
- package/src/x_ite/Components/Sound/PeriodicWave.js +27 -18
- package/src/x_ite/Components/Sound/Sound.js +51 -40
- package/src/x_ite/Components/Sound/SpatialSound.js +42 -33
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +35 -26
- package/src/x_ite/Components/Sound/StreamAudioSource.js +35 -26
- package/src/x_ite/Components/Sound/WaveShaper.js +43 -34
- package/src/x_ite/Components/Sound/X3DSoundChannelNode.js +13 -2
- package/src/x_ite/Components/Sound/X3DSoundDestinationNode.js +13 -2
- package/src/x_ite/Components/Sound/X3DSoundNode.js +13 -2
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +17 -4
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +30 -17
- package/src/x_ite/Components/Sound.js +34 -41
- package/src/x_ite/Components/Text/FontStyle.js +37 -26
- package/src/x_ite/Components/Text/Text.js +50 -39
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +32 -18
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +49 -39
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +58 -48
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +27 -14
- package/src/x_ite/Components/Texturing/ImageTexture.js +50 -39
- package/src/x_ite/Components/Texturing/MovieTexture.js +67 -56
- package/src/x_ite/Components/Texturing/MultiTexture.js +52 -41
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +44 -33
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +39 -28
- package/src/x_ite/Components/Texturing/PixelTexture.js +42 -31
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +41 -30
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +41 -30
- package/src/x_ite/Components/Texturing/TextureProperties.js +47 -36
- package/src/x_ite/Components/Texturing/TextureTransform.js +39 -28
- package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +20 -7
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +21 -8
- package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +20 -7
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +26 -13
- package/src/x_ite/Components/Texturing/X3DTextureCoordinateNode.js +13 -2
- package/src/x_ite/Components/Texturing/X3DTextureNode.js +17 -4
- package/src/x_ite/Components/Texturing/X3DTextureTransformNode.js +13 -2
- package/src/x_ite/Components/Texturing.js +25 -32
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +44 -33
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +46 -35
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +54 -43
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +40 -29
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +41 -30
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +41 -30
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +39 -28
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +36 -25
- package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +26 -13
- package/src/x_ite/Components/Time/TimeSensor.js +55 -44
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +38 -25
- package/src/x_ite/Components/Time.js +10 -17
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +51 -41
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +39 -28
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +42 -31
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +41 -30
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +41 -30
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +50 -39
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +39 -28
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +38 -27
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +49 -38
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +44 -33
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +42 -31
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +41 -30
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +45 -34
- package/src/x_ite/Components/VolumeRendering/X3DComposableVolumeRenderStyleNode.js +13 -2
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +25 -12
- package/src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js +22 -9
- package/src/x_ite/Components/X_ITE/BlendMode.js +48 -37
- package/src/x_ite/Components.js +38 -14
- package/src/x_ite/Configuration/AbstractNodes.js +50 -0
- package/src/x_ite/{Fallback.js → Configuration/AbstractNodesArray.js} +22 -29
- package/src/x_ite/Configuration/ComponentInfo.js +14 -10
- package/src/x_ite/Configuration/ComponentInfoArray.js +14 -10
- package/src/x_ite/Configuration/ConcreteNodes.js +50 -0
- package/src/x_ite/Configuration/{SupportedNodes.js → ConcreteNodesArray.js} +26 -40
- package/src/x_ite/Configuration/ProfileInfo.js +13 -9
- package/src/x_ite/Configuration/ProfileInfoArray.js +14 -13
- package/src/x_ite/Configuration/SupportedComponents.js +40 -78
- package/src/x_ite/Configuration/SupportedProfiles.js +16 -16
- package/src/x_ite/Configuration/UnitInfo.js +14 -10
- package/src/x_ite/Configuration/UnitInfoArray.js +10 -21
- package/src/x_ite/Execution/BindableList.js +14 -10
- package/src/x_ite/Execution/BindableStack.js +14 -10
- package/src/x_ite/Execution/ExportedNodesArray.js +11 -9
- package/src/x_ite/Execution/ImportedNodesArray.js +11 -9
- package/src/x_ite/Execution/NamedNodesArray.js +11 -22
- package/src/x_ite/Execution/X3DExecutionContext.js +181 -152
- package/src/x_ite/Execution/X3DExportedNode.js +18 -10
- package/src/x_ite/Execution/X3DImportedNode.js +35 -22
- package/src/x_ite/Execution/X3DScene.js +93 -64
- package/src/x_ite/Execution/X3DWorld.js +21 -17
- package/src/x_ite/Fields/ArrayFields.js +87 -153
- package/src/x_ite/Fields/SFBool.js +21 -25
- package/src/x_ite/Fields/SFColor.js +43 -39
- package/src/x_ite/Fields/SFColorRGBA.js +39 -35
- package/src/x_ite/Fields/SFDouble.js +20 -21
- package/src/x_ite/Fields/SFFloat.js +20 -21
- package/src/x_ite/Fields/SFImage.js +50 -48
- package/src/x_ite/Fields/SFInt32.js +20 -21
- package/src/x_ite/Fields/SFMatrix3.js +23 -16
- package/src/x_ite/Fields/SFMatrix4.js +24 -17
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +31 -31
- package/src/x_ite/Fields/SFNode.js +57 -88
- package/src/x_ite/Fields/SFNodeCache.js +7 -11
- package/src/x_ite/Fields/SFRotation.js +73 -62
- package/src/x_ite/Fields/SFString.js +35 -36
- package/src/x_ite/Fields/SFTime.js +20 -21
- package/src/x_ite/Fields/SFVec2.js +17 -14
- package/src/x_ite/Fields/SFVec3.js +20 -17
- package/src/x_ite/Fields/SFVec4.js +21 -18
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +36 -36
- package/src/x_ite/Fields.js +6 -13
- package/src/x_ite/InputOutput/FileLoader.js +36 -40
- package/src/x_ite/InputOutput/Generator.js +50 -51
- package/src/x_ite/Parser/GLB2Parser.js +12 -13
- package/src/x_ite/Parser/GLTF2Parser.js +111 -112
- package/src/x_ite/Parser/GoldenGate.js +11 -13
- package/src/x_ite/Parser/HTMLSupport.js +15 -5
- package/src/x_ite/Parser/JSONParser.js +21 -22
- package/src/x_ite/Parser/OBJParser.js +56 -57
- package/src/x_ite/Parser/STLAParser.js +22 -23
- package/src/x_ite/Parser/STLBParser.js +12 -13
- package/src/x_ite/Parser/SVGParser.js +85 -86
- package/src/x_ite/Parser/VRMLParser.js +495 -878
- package/src/x_ite/Parser/X3DOptimizer.js +7 -7
- package/src/x_ite/Parser/X3DParser.js +17 -17
- package/src/x_ite/Parser/XMLParser.js +215 -269
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +11 -9
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +11 -9
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +35 -27
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +28 -20
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +18 -10
- package/src/x_ite/Rendering/DependentRenderer.js +11 -12
- package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +9 -10
- package/src/x_ite/Rendering/PointingBuffer.js +6 -7
- package/src/x_ite/Rendering/TextureBuffer.js +11 -12
- package/src/x_ite/Rendering/VertexArray.js +5 -5
- package/src/x_ite/Rendering/X3DRenderObject.js +51 -52
- package/src/x_ite/Routing/RouteArray.js +11 -9
- package/src/x_ite/Routing/X3DRoute.js +35 -19
- package/src/x_ite/Routing/X3DRoutingContext.js +8 -9
- package/src/x_ite/X3D.js +27 -26
- package/src/x_ite/X3DCanvasElement.js +18 -7
- package/src/x_ite.css +2 -1
- package/webpack.config.js +2 -2
- /package/src/x_ite/{DEBUG.js → DEVELOPMENT.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.
|
|
1
|
+
/* X_ITE v8.8.0 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,31 +39,31 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/PixelTexture\")"
|
|
45
|
-
const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
45
|
+
const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Texturing/PixelTexture");
|
|
46
46
|
var PixelTexture_default = /*#__PURE__*/__webpack_require__.n(PixelTexture_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/TextureProperties\")"
|
|
48
|
-
const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
48
|
+
const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Texturing/TextureProperties");
|
|
49
49
|
var TextureProperties_default = /*#__PURE__*/__webpack_require__.n(TextureProperties_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
51
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
51
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Fields");
|
|
52
52
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
54
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
54
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
55
55
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
57
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
57
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
58
58
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
|
|
60
|
-
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
60
|
+
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Core/X3DNode");
|
|
61
61
|
var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
63
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
63
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DConstants");
|
|
64
64
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
65
65
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
66
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
66
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Namespace");
|
|
67
67
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
68
68
|
;// CONCATENATED MODULE: ./src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js
|
|
69
69
|
/*******************************************************************************
|
|
@@ -125,32 +125,31 @@ function X3DVolumeRenderStyleNode (executionContext)
|
|
|
125
125
|
this .volumeDataNodes = new Set ();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
Object .assign (Object .setPrototypeOf (X3DVolumeRenderStyleNode .prototype, (X3DNode_default()).prototype),
|
|
129
129
|
{
|
|
130
|
-
|
|
131
|
-
addShaderFields: function (shaderNode)
|
|
130
|
+
addShaderFields (shaderNode)
|
|
132
131
|
{ },
|
|
133
|
-
getUniformsText
|
|
132
|
+
getUniformsText ()
|
|
134
133
|
{
|
|
135
134
|
return "";
|
|
136
135
|
},
|
|
137
|
-
getFunctionsText
|
|
136
|
+
getFunctionsText ()
|
|
138
137
|
{
|
|
139
138
|
return "";
|
|
140
139
|
},
|
|
141
|
-
getVolumeData
|
|
140
|
+
getVolumeData ()
|
|
142
141
|
{
|
|
143
142
|
return this .volumeDataNodes;
|
|
144
143
|
},
|
|
145
|
-
addVolumeData
|
|
144
|
+
addVolumeData (volumeDataNode)
|
|
146
145
|
{
|
|
147
146
|
this .volumeDataNodes .add (volumeDataNode);
|
|
148
147
|
},
|
|
149
|
-
removeVolumeData
|
|
148
|
+
removeVolumeData (volumeDataNode)
|
|
150
149
|
{
|
|
151
150
|
this .volumeDataNodes .delete (volumeDataNode);
|
|
152
151
|
},
|
|
153
|
-
getNormalText
|
|
152
|
+
getNormalText (surfaceNormalsNode)
|
|
154
153
|
{
|
|
155
154
|
let string = "";
|
|
156
155
|
|
|
@@ -190,6 +189,20 @@ X3DVolumeRenderStyleNode .prototype = Object .assign (Object .create ((X3DNode_d
|
|
|
190
189
|
},
|
|
191
190
|
});
|
|
192
191
|
|
|
192
|
+
Object .defineProperties (X3DVolumeRenderStyleNode,
|
|
193
|
+
{
|
|
194
|
+
typeName:
|
|
195
|
+
{
|
|
196
|
+
value: "X3DVolumeRenderStyleNode",
|
|
197
|
+
enumerable: true,
|
|
198
|
+
},
|
|
199
|
+
componentName:
|
|
200
|
+
{
|
|
201
|
+
value: "VolumeRendering",
|
|
202
|
+
enumerable: true,
|
|
203
|
+
},
|
|
204
|
+
});
|
|
205
|
+
|
|
193
206
|
const __default__ = X3DVolumeRenderStyleNode;
|
|
194
207
|
;
|
|
195
208
|
|
|
@@ -248,14 +261,25 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/X3DVolumeRenderStyleN
|
|
|
248
261
|
|
|
249
262
|
function X3DComposableVolumeRenderStyleNode (executionContext)
|
|
250
263
|
{
|
|
251
|
-
VolumeRendering_X3DVolumeRenderStyleNode.call (this, executionContext);
|
|
264
|
+
VolumeRendering_X3DVolumeRenderStyleNode .call (this, executionContext);
|
|
252
265
|
|
|
253
266
|
this .addType ((X3DConstants_default()).X3DComposableVolumeRenderStyleNode);
|
|
254
267
|
}
|
|
255
268
|
|
|
256
|
-
|
|
269
|
+
Object .setPrototypeOf (X3DComposableVolumeRenderStyleNode .prototype, VolumeRendering_X3DVolumeRenderStyleNode .prototype);
|
|
270
|
+
|
|
271
|
+
Object .defineProperties (X3DComposableVolumeRenderStyleNode,
|
|
257
272
|
{
|
|
258
|
-
|
|
273
|
+
typeName:
|
|
274
|
+
{
|
|
275
|
+
value: "X3DComposableVolumeRenderStyleNode",
|
|
276
|
+
enumerable: true,
|
|
277
|
+
},
|
|
278
|
+
componentName:
|
|
279
|
+
{
|
|
280
|
+
value: "VolumeRendering",
|
|
281
|
+
enumerable: true,
|
|
282
|
+
},
|
|
259
283
|
});
|
|
260
284
|
|
|
261
285
|
const X3DComposableVolumeRenderStyleNode_default_ = X3DComposableVolumeRenderStyleNode;
|
|
@@ -264,7 +288,7 @@ const X3DComposableVolumeRenderStyleNode_default_ = X3DComposableVolumeRenderSty
|
|
|
264
288
|
Namespace_default().set ("x_ite/Components/VolumeRendering/X3DComposableVolumeRenderStyleNode", X3DComposableVolumeRenderStyleNode_default_);
|
|
265
289
|
/* harmony default export */ const VolumeRendering_X3DComposableVolumeRenderStyleNode = (X3DComposableVolumeRenderStyleNode_default_);
|
|
266
290
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
267
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
291
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Base/X3DCast");
|
|
268
292
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
269
293
|
;// CONCATENATED MODULE: ./src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js
|
|
270
294
|
/*******************************************************************************
|
|
@@ -323,38 +347,16 @@ var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject
|
|
|
323
347
|
|
|
324
348
|
function OpacityMapVolumeStyle (executionContext)
|
|
325
349
|
{
|
|
326
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.call (this, executionContext);
|
|
350
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .call (this, executionContext);
|
|
327
351
|
|
|
328
352
|
this .addType ((X3DConstants_default()).OpacityMapVolumeStyle);
|
|
329
353
|
}
|
|
330
354
|
|
|
331
|
-
|
|
355
|
+
Object .assign (Object .setPrototypeOf (OpacityMapVolumeStyle .prototype, VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype),
|
|
332
356
|
{
|
|
333
|
-
|
|
334
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
335
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
336
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
337
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "transferFunction", new (Fields_default()).SFNode ()),
|
|
338
|
-
]),
|
|
339
|
-
getTypeName: function ()
|
|
340
|
-
{
|
|
341
|
-
return "OpacityMapVolumeStyle";
|
|
342
|
-
},
|
|
343
|
-
getComponentName: function ()
|
|
344
|
-
{
|
|
345
|
-
return "VolumeRendering";
|
|
346
|
-
},
|
|
347
|
-
getContainerField: function ()
|
|
348
|
-
{
|
|
349
|
-
return "renderStyle";
|
|
350
|
-
},
|
|
351
|
-
getSpecificationRange: function ()
|
|
352
|
-
{
|
|
353
|
-
return ["3.3", "Infinity"];
|
|
354
|
-
},
|
|
355
|
-
initialize: function ()
|
|
357
|
+
initialize ()
|
|
356
358
|
{
|
|
357
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.initialize.call (this);
|
|
359
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
358
360
|
|
|
359
361
|
const gl = this .getBrowser () .getContext ();
|
|
360
362
|
|
|
@@ -365,7 +367,7 @@ OpacityMapVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
365
367
|
|
|
366
368
|
this .set_transferFunction__ ();
|
|
367
369
|
},
|
|
368
|
-
set_transferFunction__
|
|
370
|
+
set_transferFunction__ ()
|
|
369
371
|
{
|
|
370
372
|
this .transferFunctionNode = X3DCast_default() ((X3DConstants_default()).X3DTexture2DNode, this ._transferFunction);
|
|
371
373
|
|
|
@@ -375,14 +377,14 @@ OpacityMapVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
375
377
|
if (! this .transferFunctionNode)
|
|
376
378
|
this .transferFunctionNode = this .getBrowser () .getDefaultTransferFunction ();
|
|
377
379
|
},
|
|
378
|
-
addShaderFields
|
|
380
|
+
addShaderFields (shaderNode)
|
|
379
381
|
{
|
|
380
382
|
if (! this ._enabled .getValue ())
|
|
381
383
|
return;
|
|
382
384
|
|
|
383
385
|
shaderNode .addUserDefinedField ((X3DConstants_default()).inputOutput, "transferFunction_" + this .getId (), new (Fields_default()).SFNode (this .transferFunctionNode));
|
|
384
386
|
},
|
|
385
|
-
getUniformsText
|
|
387
|
+
getUniformsText ()
|
|
386
388
|
{
|
|
387
389
|
if (! this ._enabled .getValue ())
|
|
388
390
|
return "";
|
|
@@ -418,7 +420,7 @@ OpacityMapVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
418
420
|
|
|
419
421
|
return string;
|
|
420
422
|
},
|
|
421
|
-
getFunctionsText
|
|
423
|
+
getFunctionsText ()
|
|
422
424
|
{
|
|
423
425
|
if (! this ._enabled .getValue ())
|
|
424
426
|
return "";
|
|
@@ -434,6 +436,39 @@ OpacityMapVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
434
436
|
},
|
|
435
437
|
});
|
|
436
438
|
|
|
439
|
+
Object .defineProperties (OpacityMapVolumeStyle,
|
|
440
|
+
{
|
|
441
|
+
typeName:
|
|
442
|
+
{
|
|
443
|
+
value: "OpacityMapVolumeStyle",
|
|
444
|
+
enumerable: true,
|
|
445
|
+
},
|
|
446
|
+
componentName:
|
|
447
|
+
{
|
|
448
|
+
value: "VolumeRendering",
|
|
449
|
+
enumerable: true,
|
|
450
|
+
},
|
|
451
|
+
containerField:
|
|
452
|
+
{
|
|
453
|
+
value: "renderStyle",
|
|
454
|
+
enumerable: true,
|
|
455
|
+
},
|
|
456
|
+
specificationRange:
|
|
457
|
+
{
|
|
458
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
459
|
+
enumerable: true,
|
|
460
|
+
},
|
|
461
|
+
fieldDefinitions:
|
|
462
|
+
{
|
|
463
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
464
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
465
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
466
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "transferFunction", new (Fields_default()).SFNode ()),
|
|
467
|
+
]),
|
|
468
|
+
enumerable: true,
|
|
469
|
+
},
|
|
470
|
+
});
|
|
471
|
+
|
|
437
472
|
const OpacityMapVolumeStyle_default_ = OpacityMapVolumeStyle;
|
|
438
473
|
;
|
|
439
474
|
|
|
@@ -499,9 +534,9 @@ const
|
|
|
499
534
|
|
|
500
535
|
function X3DVolumeRenderingContext () { }
|
|
501
536
|
|
|
502
|
-
X3DVolumeRenderingContext .prototype
|
|
537
|
+
Object .assign (X3DVolumeRenderingContext .prototype,
|
|
503
538
|
{
|
|
504
|
-
getDefaultVoxels
|
|
539
|
+
getDefaultVoxels ()
|
|
505
540
|
{
|
|
506
541
|
this [_defaultVoxelsNode] = this .getPrivateScene () .createNode ("PixelTexture3D", false);
|
|
507
542
|
this [_defaultVoxelsNode] ._image = [1, 1, 1, 1, 255];
|
|
@@ -517,7 +552,7 @@ X3DVolumeRenderingContext .prototype =
|
|
|
517
552
|
|
|
518
553
|
return this [_defaultVoxelsNode];
|
|
519
554
|
},
|
|
520
|
-
getDefaultVolumeStyle
|
|
555
|
+
getDefaultVolumeStyle ()
|
|
521
556
|
{
|
|
522
557
|
this [_defaultVolumeStyle] = new VolumeRendering_OpacityMapVolumeStyle (this .getPrivateScene ());
|
|
523
558
|
this [_defaultVolumeStyle] .setPrivate (true);
|
|
@@ -529,7 +564,7 @@ X3DVolumeRenderingContext .prototype =
|
|
|
529
564
|
|
|
530
565
|
return this [_defaultVolumeStyle];
|
|
531
566
|
},
|
|
532
|
-
getDefaultBlendedVolumeStyle
|
|
567
|
+
getDefaultBlendedVolumeStyle ()
|
|
533
568
|
{
|
|
534
569
|
this [_defaultBlendedVolumeStyle] = new VolumeRendering_OpacityMapVolumeStyle (this .getPrivateScene ());
|
|
535
570
|
this [_defaultBlendedVolumeStyle] .setPrivate (true);
|
|
@@ -541,7 +576,7 @@ X3DVolumeRenderingContext .prototype =
|
|
|
541
576
|
|
|
542
577
|
return this [_defaultBlendedVolumeStyle];
|
|
543
578
|
},
|
|
544
|
-
getDefaultTransferFunction
|
|
579
|
+
getDefaultTransferFunction ()
|
|
545
580
|
{
|
|
546
581
|
const textureProperties = new (TextureProperties_default()) (this .getPrivateScene ());
|
|
547
582
|
textureProperties ._boundaryModeS = "CLAMP_TO_EDGE";
|
|
@@ -568,15 +603,13 @@ X3DVolumeRenderingContext .prototype =
|
|
|
568
603
|
|
|
569
604
|
return this [_defaultTransferFunction];
|
|
570
605
|
},
|
|
571
|
-
};
|
|
606
|
+
});
|
|
572
607
|
|
|
573
608
|
const X3DVolumeRenderingContext_default_ = X3DVolumeRenderingContext;
|
|
574
609
|
;
|
|
575
610
|
|
|
576
611
|
Namespace_default().set ("x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext", X3DVolumeRenderingContext_default_);
|
|
577
612
|
/* harmony default export */ const VolumeRendering_X3DVolumeRenderingContext = (X3DVolumeRenderingContext_default_);
|
|
578
|
-
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/DEBUG\")"
|
|
579
|
-
const DEBUG_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require ("x_ite/DEBUG");
|
|
580
613
|
;// CONCATENATED MODULE: ./src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js
|
|
581
614
|
/*******************************************************************************
|
|
582
615
|
*
|
|
@@ -632,48 +665,18 @@ const DEBUG_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.8")] .require
|
|
|
632
665
|
|
|
633
666
|
|
|
634
667
|
|
|
635
|
-
|
|
636
668
|
function BlendedVolumeStyle (executionContext)
|
|
637
669
|
{
|
|
638
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.call (this, executionContext);
|
|
670
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .call (this, executionContext);
|
|
639
671
|
|
|
640
672
|
this .addType ((X3DConstants_default()).BlendedVolumeStyle);
|
|
641
673
|
}
|
|
642
674
|
|
|
643
|
-
|
|
675
|
+
Object .assign (Object .setPrototypeOf (BlendedVolumeStyle .prototype, VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype),
|
|
644
676
|
{
|
|
645
|
-
|
|
646
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
647
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
648
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
649
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightConstant1", new (Fields_default()).SFFloat (0.5)),
|
|
650
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightConstant2", new (Fields_default()).SFFloat (0.5)),
|
|
651
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightFunction1", new (Fields_default()).SFString ("CONSTANT")),
|
|
652
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightFunction2", new (Fields_default()).SFString ("CONSTANT")),
|
|
653
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightTransferFunction1", new (Fields_default()).SFNode ()),
|
|
654
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightTransferFunction2", new (Fields_default()).SFNode ()),
|
|
655
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).SFNode ()),
|
|
656
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "voxels", new (Fields_default()).SFNode ()),
|
|
657
|
-
]),
|
|
658
|
-
getTypeName: function ()
|
|
677
|
+
initialize ()
|
|
659
678
|
{
|
|
660
|
-
|
|
661
|
-
},
|
|
662
|
-
getComponentName: function ()
|
|
663
|
-
{
|
|
664
|
-
return "VolumeRendering";
|
|
665
|
-
},
|
|
666
|
-
getContainerField: function ()
|
|
667
|
-
{
|
|
668
|
-
return "renderStyle";
|
|
669
|
-
},
|
|
670
|
-
getSpecificationRange: function ()
|
|
671
|
-
{
|
|
672
|
-
return ["3.3", "Infinity"];
|
|
673
|
-
},
|
|
674
|
-
initialize: function ()
|
|
675
|
-
{
|
|
676
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.initialize.call (this);
|
|
679
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
677
680
|
|
|
678
681
|
const gl = this .getBrowser () .getContext ();
|
|
679
682
|
|
|
@@ -690,29 +693,29 @@ BlendedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_
|
|
|
690
693
|
this .set_renderStyle__ ();
|
|
691
694
|
this .set_voxels__ ();
|
|
692
695
|
},
|
|
693
|
-
addVolumeData
|
|
696
|
+
addVolumeData (volumeDataNode)
|
|
694
697
|
{
|
|
695
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.addVolumeData.call (this, volumeDataNode);
|
|
698
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .addVolumeData .call (this, volumeDataNode);
|
|
696
699
|
|
|
697
700
|
if (this .renderStyleNode)
|
|
698
701
|
this .renderStyleNode .addVolumeData (volumeDataNode);
|
|
699
702
|
},
|
|
700
|
-
removeVolumeData
|
|
703
|
+
removeVolumeData (volumeDataNode)
|
|
701
704
|
{
|
|
702
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.removeVolumeData.call (this, volumeDataNode);
|
|
705
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .removeVolumeData .call (this, volumeDataNode);
|
|
703
706
|
|
|
704
707
|
if (this .renderStyleNode)
|
|
705
708
|
this .renderStyleNode .removeVolumeData (volumeDataNode);
|
|
706
709
|
},
|
|
707
|
-
set_weightTransferFunction1__
|
|
710
|
+
set_weightTransferFunction1__ ()
|
|
708
711
|
{
|
|
709
712
|
this .weightTransferFunction1Node = X3DCast_default() ((X3DConstants_default()).X3DTexture2DNode, this ._weightTransferFunction1);
|
|
710
713
|
},
|
|
711
|
-
set_weightTransferFunction2__
|
|
714
|
+
set_weightTransferFunction2__ ()
|
|
712
715
|
{
|
|
713
716
|
this .weightTransferFunction2Node = X3DCast_default() ((X3DConstants_default()).X3DTexture2DNode, this ._weightTransferFunction2);
|
|
714
717
|
},
|
|
715
|
-
set_renderStyle__
|
|
718
|
+
set_renderStyle__ ()
|
|
716
719
|
{
|
|
717
720
|
if (this .renderStyleNode)
|
|
718
721
|
{
|
|
@@ -732,11 +735,11 @@ BlendedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_
|
|
|
732
735
|
this .renderStyleNode .addVolumeData (volumeDataNode);
|
|
733
736
|
}
|
|
734
737
|
},
|
|
735
|
-
set_voxels__
|
|
738
|
+
set_voxels__ ()
|
|
736
739
|
{
|
|
737
740
|
this .voxelsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._voxels);
|
|
738
741
|
},
|
|
739
|
-
addShaderFields
|
|
742
|
+
addShaderFields (shaderNode)
|
|
740
743
|
{
|
|
741
744
|
if (! this ._enabled .getValue ())
|
|
742
745
|
return;
|
|
@@ -760,7 +763,7 @@ BlendedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_
|
|
|
760
763
|
if (this .renderStyleNode)
|
|
761
764
|
this .renderStyleNode .addShaderFields (shaderNode);
|
|
762
765
|
},
|
|
763
|
-
getUniformsText
|
|
766
|
+
getUniformsText ()
|
|
764
767
|
{
|
|
765
768
|
if (! this ._enabled .getValue ())
|
|
766
769
|
return "";
|
|
@@ -903,7 +906,7 @@ BlendedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_
|
|
|
903
906
|
|
|
904
907
|
return string;
|
|
905
908
|
},
|
|
906
|
-
getFunctionsText
|
|
909
|
+
getFunctionsText ()
|
|
907
910
|
{
|
|
908
911
|
if (! this ._enabled .getValue ())
|
|
909
912
|
return "";
|
|
@@ -922,6 +925,46 @@ BlendedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_
|
|
|
922
925
|
},
|
|
923
926
|
});
|
|
924
927
|
|
|
928
|
+
Object .defineProperties (BlendedVolumeStyle,
|
|
929
|
+
{
|
|
930
|
+
typeName:
|
|
931
|
+
{
|
|
932
|
+
value: "BlendedVolumeStyle",
|
|
933
|
+
enumerable: true,
|
|
934
|
+
},
|
|
935
|
+
componentName:
|
|
936
|
+
{
|
|
937
|
+
value: "VolumeRendering",
|
|
938
|
+
enumerable: true,
|
|
939
|
+
},
|
|
940
|
+
containerField:
|
|
941
|
+
{
|
|
942
|
+
value: "renderStyle",
|
|
943
|
+
enumerable: true,
|
|
944
|
+
},
|
|
945
|
+
specificationRange:
|
|
946
|
+
{
|
|
947
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
948
|
+
enumerable: true,
|
|
949
|
+
},
|
|
950
|
+
fieldDefinitions:
|
|
951
|
+
{
|
|
952
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
953
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
954
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
955
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightConstant1", new (Fields_default()).SFFloat (0.5)),
|
|
956
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightConstant2", new (Fields_default()).SFFloat (0.5)),
|
|
957
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightFunction1", new (Fields_default()).SFString ("CONSTANT")),
|
|
958
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightFunction2", new (Fields_default()).SFString ("CONSTANT")),
|
|
959
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightTransferFunction1", new (Fields_default()).SFNode ()),
|
|
960
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "weightTransferFunction2", new (Fields_default()).SFNode ()),
|
|
961
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).SFNode ()),
|
|
962
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "voxels", new (Fields_default()).SFNode ()),
|
|
963
|
+
]),
|
|
964
|
+
enumerable: true,
|
|
965
|
+
},
|
|
966
|
+
});
|
|
967
|
+
|
|
925
968
|
const BlendedVolumeStyle_default_ = BlendedVolumeStyle;
|
|
926
969
|
;
|
|
927
970
|
|
|
@@ -983,38 +1026,14 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/BlendedVolumeStyle",
|
|
|
983
1026
|
|
|
984
1027
|
function BoundaryEnhancementVolumeStyle (executionContext)
|
|
985
1028
|
{
|
|
986
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.call (this, executionContext);
|
|
1029
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .call (this, executionContext);
|
|
987
1030
|
|
|
988
1031
|
this .addType ((X3DConstants_default()).BoundaryEnhancementVolumeStyle);
|
|
989
1032
|
}
|
|
990
1033
|
|
|
991
|
-
|
|
1034
|
+
Object .assign (Object .setPrototypeOf (BoundaryEnhancementVolumeStyle .prototype, VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype),
|
|
992
1035
|
{
|
|
993
|
-
|
|
994
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
995
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
996
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
997
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "retainedOpacity", new (Fields_default()).SFFloat (0.2)),
|
|
998
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "boundaryOpacity", new (Fields_default()).SFFloat (0.9)),
|
|
999
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "opacityFactor", new (Fields_default()).SFFloat (2)),
|
|
1000
|
-
]),
|
|
1001
|
-
getTypeName: function ()
|
|
1002
|
-
{
|
|
1003
|
-
return "BoundaryEnhancementVolumeStyle";
|
|
1004
|
-
},
|
|
1005
|
-
getComponentName: function ()
|
|
1006
|
-
{
|
|
1007
|
-
return "VolumeRendering";
|
|
1008
|
-
},
|
|
1009
|
-
getContainerField: function ()
|
|
1010
|
-
{
|
|
1011
|
-
return "renderStyle";
|
|
1012
|
-
},
|
|
1013
|
-
getSpecificationRange: function ()
|
|
1014
|
-
{
|
|
1015
|
-
return ["3.3", "Infinity"];
|
|
1016
|
-
},
|
|
1017
|
-
addShaderFields: function (shaderNode)
|
|
1036
|
+
addShaderFields (shaderNode)
|
|
1018
1037
|
{
|
|
1019
1038
|
if (! this ._enabled .getValue ())
|
|
1020
1039
|
return;
|
|
@@ -1023,7 +1042,7 @@ BoundaryEnhancementVolumeStyle .prototype = Object .assign (Object .create (Volu
|
|
|
1023
1042
|
shaderNode .addUserDefinedField ((X3DConstants_default()).inputOutput, "boundaryOpacity_" + this .getId (), this ._boundaryOpacity .copy ());
|
|
1024
1043
|
shaderNode .addUserDefinedField ((X3DConstants_default()).inputOutput, "opacityFactor_" + this .getId (), this ._opacityFactor .copy ());
|
|
1025
1044
|
},
|
|
1026
|
-
getUniformsText
|
|
1045
|
+
getUniformsText ()
|
|
1027
1046
|
{
|
|
1028
1047
|
if (! this ._enabled .getValue ())
|
|
1029
1048
|
return "";
|
|
@@ -1054,7 +1073,7 @@ BoundaryEnhancementVolumeStyle .prototype = Object .assign (Object .create (Volu
|
|
|
1054
1073
|
|
|
1055
1074
|
return string;
|
|
1056
1075
|
},
|
|
1057
|
-
getFunctionsText
|
|
1076
|
+
getFunctionsText ()
|
|
1058
1077
|
{
|
|
1059
1078
|
if (! this ._enabled .getValue ())
|
|
1060
1079
|
return "";
|
|
@@ -1070,6 +1089,41 @@ BoundaryEnhancementVolumeStyle .prototype = Object .assign (Object .create (Volu
|
|
|
1070
1089
|
},
|
|
1071
1090
|
});
|
|
1072
1091
|
|
|
1092
|
+
Object .defineProperties (BoundaryEnhancementVolumeStyle,
|
|
1093
|
+
{
|
|
1094
|
+
typeName:
|
|
1095
|
+
{
|
|
1096
|
+
value: "BoundaryEnhancementVolumeStyle",
|
|
1097
|
+
enumerable: true,
|
|
1098
|
+
},
|
|
1099
|
+
componentName:
|
|
1100
|
+
{
|
|
1101
|
+
value: "VolumeRendering",
|
|
1102
|
+
enumerable: true,
|
|
1103
|
+
},
|
|
1104
|
+
containerField:
|
|
1105
|
+
{
|
|
1106
|
+
value: "renderStyle",
|
|
1107
|
+
enumerable: true,
|
|
1108
|
+
},
|
|
1109
|
+
specificationRange:
|
|
1110
|
+
{
|
|
1111
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
1112
|
+
enumerable: true,
|
|
1113
|
+
},
|
|
1114
|
+
fieldDefinitions:
|
|
1115
|
+
{
|
|
1116
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
1117
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1118
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1119
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "retainedOpacity", new (Fields_default()).SFFloat (0.2)),
|
|
1120
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "boundaryOpacity", new (Fields_default()).SFFloat (0.9)),
|
|
1121
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "opacityFactor", new (Fields_default()).SFFloat (2)),
|
|
1122
|
+
]),
|
|
1123
|
+
enumerable: true,
|
|
1124
|
+
},
|
|
1125
|
+
});
|
|
1126
|
+
|
|
1073
1127
|
const BoundaryEnhancementVolumeStyle_default_ = BoundaryEnhancementVolumeStyle;
|
|
1074
1128
|
;
|
|
1075
1129
|
|
|
@@ -1132,41 +1186,16 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/BoundaryEnhancementVo
|
|
|
1132
1186
|
|
|
1133
1187
|
function CartoonVolumeStyle (executionContext)
|
|
1134
1188
|
{
|
|
1135
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.call (this, executionContext);
|
|
1189
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .call (this, executionContext);
|
|
1136
1190
|
|
|
1137
1191
|
this .addType ((X3DConstants_default()).CartoonVolumeStyle);
|
|
1138
1192
|
}
|
|
1139
1193
|
|
|
1140
|
-
|
|
1194
|
+
Object .assign (Object .setPrototypeOf (CartoonVolumeStyle .prototype, VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype),
|
|
1141
1195
|
{
|
|
1142
|
-
|
|
1143
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
1144
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1145
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1146
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "colorSteps", new (Fields_default()).SFInt32 (4)),
|
|
1147
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "orthogonalColor", new (Fields_default()).SFColorRGBA (1, 1, 1, 1)),
|
|
1148
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "parallelColor", new (Fields_default()).SFColorRGBA (0, 0, 0, 1)),
|
|
1149
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
1150
|
-
]),
|
|
1151
|
-
getTypeName: function ()
|
|
1152
|
-
{
|
|
1153
|
-
return "CartoonVolumeStyle";
|
|
1154
|
-
},
|
|
1155
|
-
getComponentName: function ()
|
|
1196
|
+
initialize ()
|
|
1156
1197
|
{
|
|
1157
|
-
|
|
1158
|
-
},
|
|
1159
|
-
getContainerField: function ()
|
|
1160
|
-
{
|
|
1161
|
-
return "renderStyle";
|
|
1162
|
-
},
|
|
1163
|
-
getSpecificationRange: function ()
|
|
1164
|
-
{
|
|
1165
|
-
return ["3.3", "Infinity"];
|
|
1166
|
-
},
|
|
1167
|
-
initialize: function ()
|
|
1168
|
-
{
|
|
1169
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.initialize.call (this);
|
|
1198
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
1170
1199
|
|
|
1171
1200
|
const gl = this .getBrowser () .getContext ();
|
|
1172
1201
|
|
|
@@ -1177,11 +1206,11 @@ CartoonVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_
|
|
|
1177
1206
|
|
|
1178
1207
|
this .set_surfaceNormals__ ();
|
|
1179
1208
|
},
|
|
1180
|
-
set_surfaceNormals__
|
|
1209
|
+
set_surfaceNormals__ ()
|
|
1181
1210
|
{
|
|
1182
1211
|
this .surfaceNormalsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._surfaceNormals);
|
|
1183
1212
|
},
|
|
1184
|
-
addShaderFields
|
|
1213
|
+
addShaderFields (shaderNode)
|
|
1185
1214
|
{
|
|
1186
1215
|
if (! this ._enabled .getValue ())
|
|
1187
1216
|
return;
|
|
@@ -1193,7 +1222,7 @@ CartoonVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_
|
|
|
1193
1222
|
if (this .surfaceNormalsNode)
|
|
1194
1223
|
shaderNode .addUserDefinedField ((X3DConstants_default()).inputOutput, "surfaceNormals_" + this .getId (), new (Fields_default()).SFNode (this .surfaceNormalsNode));
|
|
1195
1224
|
},
|
|
1196
|
-
getUniformsText
|
|
1225
|
+
getUniformsText ()
|
|
1197
1226
|
{
|
|
1198
1227
|
if (! this ._enabled .getValue ())
|
|
1199
1228
|
return "";
|
|
@@ -1359,7 +1388,7 @@ CartoonVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_
|
|
|
1359
1388
|
|
|
1360
1389
|
return string;
|
|
1361
1390
|
},
|
|
1362
|
-
getFunctionsText
|
|
1391
|
+
getFunctionsText ()
|
|
1363
1392
|
{
|
|
1364
1393
|
if (! this ._enabled .getValue ())
|
|
1365
1394
|
return "";
|
|
@@ -1375,6 +1404,42 @@ CartoonVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_
|
|
|
1375
1404
|
},
|
|
1376
1405
|
});
|
|
1377
1406
|
|
|
1407
|
+
Object .defineProperties (CartoonVolumeStyle,
|
|
1408
|
+
{
|
|
1409
|
+
typeName:
|
|
1410
|
+
{
|
|
1411
|
+
value: "CartoonVolumeStyle",
|
|
1412
|
+
enumerable: true,
|
|
1413
|
+
},
|
|
1414
|
+
componentName:
|
|
1415
|
+
{
|
|
1416
|
+
value: "VolumeRendering",
|
|
1417
|
+
enumerable: true,
|
|
1418
|
+
},
|
|
1419
|
+
containerField:
|
|
1420
|
+
{
|
|
1421
|
+
value: "renderStyle",
|
|
1422
|
+
enumerable: true,
|
|
1423
|
+
},
|
|
1424
|
+
specificationRange:
|
|
1425
|
+
{
|
|
1426
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
1427
|
+
enumerable: true,
|
|
1428
|
+
},
|
|
1429
|
+
fieldDefinitions:
|
|
1430
|
+
{
|
|
1431
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
1432
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1433
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1434
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "colorSteps", new (Fields_default()).SFInt32 (4)),
|
|
1435
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "orthogonalColor", new (Fields_default()).SFColorRGBA (1, 1, 1, 1)),
|
|
1436
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "parallelColor", new (Fields_default()).SFColorRGBA (0, 0, 0, 1)),
|
|
1437
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
1438
|
+
]),
|
|
1439
|
+
enumerable: true,
|
|
1440
|
+
},
|
|
1441
|
+
});
|
|
1442
|
+
|
|
1378
1443
|
const CartoonVolumeStyle_default_ = CartoonVolumeStyle;
|
|
1379
1444
|
;
|
|
1380
1445
|
|
|
@@ -1437,40 +1502,18 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/CartoonVolumeStyle",
|
|
|
1437
1502
|
|
|
1438
1503
|
function ComposedVolumeStyle (executionContext)
|
|
1439
1504
|
{
|
|
1440
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.call (this, executionContext);
|
|
1505
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .call (this, executionContext);
|
|
1441
1506
|
|
|
1442
1507
|
this .addType ((X3DConstants_default()).ComposedVolumeStyle);
|
|
1443
1508
|
|
|
1444
1509
|
this .renderStyleNodes = [ ];
|
|
1445
1510
|
}
|
|
1446
1511
|
|
|
1447
|
-
|
|
1512
|
+
Object .assign (Object .setPrototypeOf (ComposedVolumeStyle .prototype, VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype),
|
|
1448
1513
|
{
|
|
1449
|
-
|
|
1450
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
1451
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1452
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1453
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).MFNode ()),
|
|
1454
|
-
]),
|
|
1455
|
-
getTypeName: function ()
|
|
1456
|
-
{
|
|
1457
|
-
return "ComposedVolumeStyle";
|
|
1458
|
-
},
|
|
1459
|
-
getComponentName: function ()
|
|
1460
|
-
{
|
|
1461
|
-
return "VolumeRendering";
|
|
1462
|
-
},
|
|
1463
|
-
getContainerField: function ()
|
|
1464
|
-
{
|
|
1465
|
-
return "renderStyle";
|
|
1466
|
-
},
|
|
1467
|
-
getSpecificationRange: function ()
|
|
1514
|
+
initialize ()
|
|
1468
1515
|
{
|
|
1469
|
-
|
|
1470
|
-
},
|
|
1471
|
-
initialize: function ()
|
|
1472
|
-
{
|
|
1473
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.initialize.call (this);
|
|
1516
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
1474
1517
|
|
|
1475
1518
|
const gl = this .getBrowser () .getContext ();
|
|
1476
1519
|
|
|
@@ -1481,21 +1524,21 @@ ComposedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
1481
1524
|
|
|
1482
1525
|
this .set_renderStyle__ ();
|
|
1483
1526
|
},
|
|
1484
|
-
addVolumeData
|
|
1527
|
+
addVolumeData (volumeDataNode)
|
|
1485
1528
|
{
|
|
1486
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.addVolumeData.call (this, volumeDataNode);
|
|
1529
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .addVolumeData .call (this, volumeDataNode);
|
|
1487
1530
|
|
|
1488
1531
|
for (const renderStyleNode of this .renderStyleNodes)
|
|
1489
1532
|
renderStyleNode .addVolumeData (volumeDataNode);
|
|
1490
1533
|
},
|
|
1491
|
-
removeVolumeData
|
|
1534
|
+
removeVolumeData (volumeDataNode)
|
|
1492
1535
|
{
|
|
1493
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.removeVolumeData.call (this, volumeDataNode);
|
|
1536
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .removeVolumeData .call (this, volumeDataNode);
|
|
1494
1537
|
|
|
1495
1538
|
for (const renderStyleNode of this .renderStyleNodes)
|
|
1496
1539
|
renderStyleNode .removeVolumeData (volumeDataNode);
|
|
1497
1540
|
},
|
|
1498
|
-
set_renderStyle__
|
|
1541
|
+
set_renderStyle__ ()
|
|
1499
1542
|
{
|
|
1500
1543
|
const renderStyleNodes = this .renderStyleNodes;
|
|
1501
1544
|
|
|
@@ -1525,7 +1568,7 @@ ComposedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
1525
1568
|
renderStyleNode .addVolumeData (volumeDataNode);
|
|
1526
1569
|
}
|
|
1527
1570
|
},
|
|
1528
|
-
addShaderFields
|
|
1571
|
+
addShaderFields (shaderNode)
|
|
1529
1572
|
{
|
|
1530
1573
|
if (! this ._enabled .getValue ())
|
|
1531
1574
|
return;
|
|
@@ -1533,7 +1576,7 @@ ComposedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
1533
1576
|
for (const renderStyleNode of this .renderStyleNodes)
|
|
1534
1577
|
renderStyleNode .addShaderFields (shaderNode);
|
|
1535
1578
|
},
|
|
1536
|
-
getUniformsText
|
|
1579
|
+
getUniformsText ()
|
|
1537
1580
|
{
|
|
1538
1581
|
if (! this ._enabled .getValue ())
|
|
1539
1582
|
return "";
|
|
@@ -1557,7 +1600,7 @@ ComposedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
1557
1600
|
|
|
1558
1601
|
return string;
|
|
1559
1602
|
},
|
|
1560
|
-
getFunctionsText
|
|
1603
|
+
getFunctionsText ()
|
|
1561
1604
|
{
|
|
1562
1605
|
if (! this ._enabled .getValue ())
|
|
1563
1606
|
return "";
|
|
@@ -1573,6 +1616,39 @@ ComposedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
1573
1616
|
}
|
|
1574
1617
|
});
|
|
1575
1618
|
|
|
1619
|
+
Object .defineProperties (ComposedVolumeStyle,
|
|
1620
|
+
{
|
|
1621
|
+
typeName:
|
|
1622
|
+
{
|
|
1623
|
+
value: "ComposedVolumeStyle",
|
|
1624
|
+
enumerable: true,
|
|
1625
|
+
},
|
|
1626
|
+
componentName:
|
|
1627
|
+
{
|
|
1628
|
+
value: "VolumeRendering",
|
|
1629
|
+
enumerable: true,
|
|
1630
|
+
},
|
|
1631
|
+
containerField:
|
|
1632
|
+
{
|
|
1633
|
+
value: "renderStyle",
|
|
1634
|
+
enumerable: true,
|
|
1635
|
+
},
|
|
1636
|
+
specificationRange:
|
|
1637
|
+
{
|
|
1638
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
1639
|
+
enumerable: true,
|
|
1640
|
+
},
|
|
1641
|
+
fieldDefinitions:
|
|
1642
|
+
{
|
|
1643
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
1644
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1645
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1646
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).MFNode ()),
|
|
1647
|
+
]),
|
|
1648
|
+
enumerable: true,
|
|
1649
|
+
},
|
|
1650
|
+
});
|
|
1651
|
+
|
|
1576
1652
|
const ComposedVolumeStyle_default_ = ComposedVolumeStyle;
|
|
1577
1653
|
;
|
|
1578
1654
|
|
|
@@ -1635,40 +1711,16 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/ComposedVolumeStyle",
|
|
|
1635
1711
|
|
|
1636
1712
|
function EdgeEnhancementVolumeStyle (executionContext)
|
|
1637
1713
|
{
|
|
1638
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.call (this, executionContext);
|
|
1714
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .call (this, executionContext);
|
|
1639
1715
|
|
|
1640
1716
|
this .addType ((X3DConstants_default()).EdgeEnhancementVolumeStyle);
|
|
1641
1717
|
}
|
|
1642
1718
|
|
|
1643
|
-
|
|
1719
|
+
Object .assign (Object .setPrototypeOf (EdgeEnhancementVolumeStyle .prototype, VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype),
|
|
1644
1720
|
{
|
|
1645
|
-
|
|
1646
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
1647
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1648
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1649
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "edgeColor", new (Fields_default()).SFColorRGBA (0, 0, 0, 1)),
|
|
1650
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "gradientThreshold", new (Fields_default()).SFFloat (0.4)),
|
|
1651
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
1652
|
-
]),
|
|
1653
|
-
getTypeName: function ()
|
|
1721
|
+
initialize ()
|
|
1654
1722
|
{
|
|
1655
|
-
|
|
1656
|
-
},
|
|
1657
|
-
getComponentName: function ()
|
|
1658
|
-
{
|
|
1659
|
-
return "VolumeRendering";
|
|
1660
|
-
},
|
|
1661
|
-
getContainerField: function ()
|
|
1662
|
-
{
|
|
1663
|
-
return "renderStyle";
|
|
1664
|
-
},
|
|
1665
|
-
getSpecificationRange: function ()
|
|
1666
|
-
{
|
|
1667
|
-
return ["3.3", "Infinity"];
|
|
1668
|
-
},
|
|
1669
|
-
initialize: function ()
|
|
1670
|
-
{
|
|
1671
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.initialize.call (this);
|
|
1723
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
1672
1724
|
|
|
1673
1725
|
const gl = this .getBrowser () .getContext ();
|
|
1674
1726
|
|
|
@@ -1679,11 +1731,11 @@ EdgeEnhancementVolumeStyle .prototype = Object .assign (Object .create (VolumeRe
|
|
|
1679
1731
|
|
|
1680
1732
|
this .set_surfaceNormals__ ();
|
|
1681
1733
|
},
|
|
1682
|
-
set_surfaceNormals__
|
|
1734
|
+
set_surfaceNormals__ ()
|
|
1683
1735
|
{
|
|
1684
1736
|
this .surfaceNormalsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._surfaceNormals);
|
|
1685
1737
|
},
|
|
1686
|
-
addShaderFields
|
|
1738
|
+
addShaderFields (shaderNode)
|
|
1687
1739
|
{
|
|
1688
1740
|
if (! this ._enabled .getValue ())
|
|
1689
1741
|
return;
|
|
@@ -1694,7 +1746,7 @@ EdgeEnhancementVolumeStyle .prototype = Object .assign (Object .create (VolumeRe
|
|
|
1694
1746
|
if (this .surfaceNormalsNode)
|
|
1695
1747
|
shaderNode .addUserDefinedField ((X3DConstants_default()).inputOutput, "surfaceNormals_" + this .getId (), new (Fields_default()).SFNode (this .surfaceNormalsNode));
|
|
1696
1748
|
},
|
|
1697
|
-
getUniformsText
|
|
1749
|
+
getUniformsText ()
|
|
1698
1750
|
{
|
|
1699
1751
|
if (! this ._enabled .getValue ())
|
|
1700
1752
|
return "";
|
|
@@ -1731,7 +1783,7 @@ EdgeEnhancementVolumeStyle .prototype = Object .assign (Object .create (VolumeRe
|
|
|
1731
1783
|
|
|
1732
1784
|
return string;
|
|
1733
1785
|
},
|
|
1734
|
-
getFunctionsText
|
|
1786
|
+
getFunctionsText ()
|
|
1735
1787
|
{
|
|
1736
1788
|
if (! this ._enabled .getValue ())
|
|
1737
1789
|
return "";
|
|
@@ -1747,22 +1799,57 @@ EdgeEnhancementVolumeStyle .prototype = Object .assign (Object .create (VolumeRe
|
|
|
1747
1799
|
},
|
|
1748
1800
|
});
|
|
1749
1801
|
|
|
1802
|
+
Object .defineProperties (EdgeEnhancementVolumeStyle,
|
|
1803
|
+
{
|
|
1804
|
+
typeName:
|
|
1805
|
+
{
|
|
1806
|
+
value: "EdgeEnhancementVolumeStyle",
|
|
1807
|
+
enumerable: true,
|
|
1808
|
+
},
|
|
1809
|
+
componentName:
|
|
1810
|
+
{
|
|
1811
|
+
value: "VolumeRendering",
|
|
1812
|
+
enumerable: true,
|
|
1813
|
+
},
|
|
1814
|
+
containerField:
|
|
1815
|
+
{
|
|
1816
|
+
value: "renderStyle",
|
|
1817
|
+
enumerable: true,
|
|
1818
|
+
},
|
|
1819
|
+
specificationRange:
|
|
1820
|
+
{
|
|
1821
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
1822
|
+
enumerable: true,
|
|
1823
|
+
},
|
|
1824
|
+
fieldDefinitions:
|
|
1825
|
+
{
|
|
1826
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
1827
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
1828
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
1829
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "edgeColor", new (Fields_default()).SFColorRGBA (0, 0, 0, 1)),
|
|
1830
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "gradientThreshold", new (Fields_default()).SFFloat (0.4)),
|
|
1831
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
1832
|
+
]),
|
|
1833
|
+
enumerable: true,
|
|
1834
|
+
},
|
|
1835
|
+
});
|
|
1836
|
+
|
|
1750
1837
|
const EdgeEnhancementVolumeStyle_default_ = EdgeEnhancementVolumeStyle;
|
|
1751
1838
|
;
|
|
1752
1839
|
|
|
1753
1840
|
Namespace_default().set ("x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle", EdgeEnhancementVolumeStyle_default_);
|
|
1754
1841
|
/* harmony default export */ const VolumeRendering_EdgeEnhancementVolumeStyle = (EdgeEnhancementVolumeStyle_default_);
|
|
1755
1842
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
1756
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1843
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
1757
1844
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
1758
1845
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
1759
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1846
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
1760
1847
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
1761
1848
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Core/TextureQuality\")"
|
|
1762
|
-
const TextureQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1849
|
+
const TextureQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Browser/Core/TextureQuality");
|
|
1763
1850
|
var TextureQuality_default = /*#__PURE__*/__webpack_require__.n(TextureQuality_namespaceObject);
|
|
1764
1851
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Shape/UnlitMaterial\")"
|
|
1765
|
-
const UnlitMaterial_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1852
|
+
const UnlitMaterial_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Shape/UnlitMaterial");
|
|
1766
1853
|
var UnlitMaterial_default = /*#__PURE__*/__webpack_require__.n(UnlitMaterial_namespaceObject);
|
|
1767
1854
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/VolumeRendering/VolumeStyle.vs.js
|
|
1768
1855
|
const VolumeStyle_vs_default_ = /* glsl */ `#version 300 es
|
|
@@ -1920,26 +2007,13 @@ function VolumeMaterial (executionContext, volumeDataNode)
|
|
|
1920
2007
|
this .volumeShaderNodes = new Map ();
|
|
1921
2008
|
}
|
|
1922
2009
|
|
|
1923
|
-
|
|
2010
|
+
Object .assign (Object .setPrototypeOf (VolumeMaterial .prototype, (UnlitMaterial_default()).prototype),
|
|
1924
2011
|
{
|
|
1925
|
-
|
|
1926
|
-
getTypeName: function ()
|
|
1927
|
-
{
|
|
1928
|
-
return "VolumeMaterial";
|
|
1929
|
-
},
|
|
1930
|
-
getComponentName: function ()
|
|
1931
|
-
{
|
|
1932
|
-
return "Shape";
|
|
1933
|
-
},
|
|
1934
|
-
getContainerField: function ()
|
|
1935
|
-
{
|
|
1936
|
-
return "material";
|
|
1937
|
-
},
|
|
1938
|
-
getVolumeShaders: function ()
|
|
2012
|
+
getVolumeShaders ()
|
|
1939
2013
|
{
|
|
1940
2014
|
return this .volumeShaderNodes;
|
|
1941
2015
|
},
|
|
1942
|
-
getShader
|
|
2016
|
+
getShader (geometryContext, renderContext)
|
|
1943
2017
|
{
|
|
1944
2018
|
const { fogNode, objectsCount } = renderContext;
|
|
1945
2019
|
|
|
@@ -1953,7 +2027,7 @@ VolumeMaterial .prototype = Object .assign (Object .create ((UnlitMaterial_defau
|
|
|
1953
2027
|
|
|
1954
2028
|
return this .volumeShaderNodes .get (key) || this .createShader (key, geometryContext, renderContext);
|
|
1955
2029
|
},
|
|
1956
|
-
createShader
|
|
2030
|
+
createShader (key, geometryContext, renderContext)
|
|
1957
2031
|
{
|
|
1958
2032
|
const
|
|
1959
2033
|
browser = this .getBrowser (),
|
|
@@ -1961,19 +2035,26 @@ VolumeMaterial .prototype = Object .assign (Object .create ((UnlitMaterial_defau
|
|
|
1961
2035
|
|
|
1962
2036
|
const { fogNode, objectsCount } = renderContext;
|
|
1963
2037
|
|
|
1964
|
-
|
|
1965
|
-
|
|
2038
|
+
switch (fogNode ?.getFogType ())
|
|
2039
|
+
{
|
|
2040
|
+
case 1:
|
|
2041
|
+
options .push ("X3D_FOG", "X3D_FOG_LINEAR");
|
|
2042
|
+
break;
|
|
2043
|
+
case 2:
|
|
2044
|
+
options .push ("X3D_FOG", "X3D_FOG_EXPONENTIAL");
|
|
2045
|
+
break;
|
|
2046
|
+
}
|
|
1966
2047
|
|
|
1967
2048
|
if (objectsCount [0])
|
|
1968
2049
|
{
|
|
1969
2050
|
options .push ("X3D_CLIP_PLANES")
|
|
1970
|
-
options .push (
|
|
2051
|
+
options .push (`X3D_NUM_CLIP_PLANES ${Math .min (objectsCount [0], browser .getMaxClipPlanes ())}`);
|
|
1971
2052
|
}
|
|
1972
2053
|
|
|
1973
2054
|
if (objectsCount [1])
|
|
1974
2055
|
{
|
|
1975
2056
|
options .push ("X3D_LIGHTING")
|
|
1976
|
-
options .push (
|
|
2057
|
+
options .push (`X3D_NUM_LIGHTS ${Math .min (objectsCount [1], browser .getMaxLights ())}`);
|
|
1977
2058
|
}
|
|
1978
2059
|
|
|
1979
2060
|
const shaderNode = this .volumeDataNode .createShader (options, VolumeStyle_vs, VolumeStyle_fs);
|
|
@@ -1982,19 +2063,42 @@ VolumeMaterial .prototype = Object .assign (Object .create ((UnlitMaterial_defau
|
|
|
1982
2063
|
|
|
1983
2064
|
return shaderNode;
|
|
1984
2065
|
},
|
|
1985
|
-
setShaderUniforms
|
|
2066
|
+
setShaderUniforms (gl, shaderObject, renderObject, textureTransformMapping, textureCoordinateMapping)
|
|
1986
2067
|
{
|
|
1987
2068
|
this .volumeDataNode .setShaderUniforms (gl, shaderObject);
|
|
1988
2069
|
},
|
|
1989
2070
|
});
|
|
1990
2071
|
|
|
2072
|
+
Object .defineProperties (VolumeMaterial,
|
|
2073
|
+
{
|
|
2074
|
+
typeName:
|
|
2075
|
+
{
|
|
2076
|
+
value: "VolumeMaterial",
|
|
2077
|
+
enumerable: true,
|
|
2078
|
+
},
|
|
2079
|
+
componentName:
|
|
2080
|
+
{
|
|
2081
|
+
value: "Shape",
|
|
2082
|
+
enumerable: true,
|
|
2083
|
+
},
|
|
2084
|
+
containerField:
|
|
2085
|
+
{
|
|
2086
|
+
value: "material",
|
|
2087
|
+
enumerable: true,
|
|
2088
|
+
},
|
|
2089
|
+
fieldDefinitions:
|
|
2090
|
+
{
|
|
2091
|
+
value: (UnlitMaterial_default()).fieldDefinitions,
|
|
2092
|
+
},
|
|
2093
|
+
});
|
|
2094
|
+
|
|
1991
2095
|
const VolumeMaterial_default_ = VolumeMaterial;
|
|
1992
2096
|
;
|
|
1993
2097
|
|
|
1994
2098
|
Namespace_default().set ("x_ite/Browser/VolumeRendering/VolumeMaterial", VolumeMaterial_default_);
|
|
1995
2099
|
/* harmony default export */ const VolumeRendering_VolumeMaterial = (VolumeMaterial_default_);
|
|
1996
2100
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
1997
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2101
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("standard/Math/Numbers/Vector3");
|
|
1998
2102
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
1999
2103
|
;// CONCATENATED MODULE: ./src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js
|
|
2000
2104
|
/*******************************************************************************
|
|
@@ -2075,14 +2179,13 @@ function X3DVolumeDataNode (executionContext)
|
|
|
2075
2179
|
this .setCameraObject (true);
|
|
2076
2180
|
}
|
|
2077
2181
|
|
|
2078
|
-
|
|
2182
|
+
Object .assign (Object .setPrototypeOf (X3DVolumeDataNode .prototype, (X3DChildNode_default()).prototype),
|
|
2079
2183
|
(X3DBoundedObject_default()).prototype,
|
|
2080
2184
|
{
|
|
2081
|
-
|
|
2082
|
-
initialize: function ()
|
|
2185
|
+
initialize ()
|
|
2083
2186
|
{
|
|
2084
|
-
X3DChildNode_default().prototype.initialize.call (this);
|
|
2085
|
-
X3DBoundedObject_default().prototype.initialize.call (this);
|
|
2187
|
+
X3DChildNode_default().prototype .initialize .call (this);
|
|
2188
|
+
X3DBoundedObject_default().prototype .initialize .call (this);
|
|
2086
2189
|
|
|
2087
2190
|
const
|
|
2088
2191
|
browser = this .getBrowser (),
|
|
@@ -2139,26 +2242,26 @@ X3DVolumeDataNode .prototype = Object .assign (Object .create ((X3DChildNode_def
|
|
|
2139
2242
|
|
|
2140
2243
|
this .set_textureTransform__ ();
|
|
2141
2244
|
},
|
|
2142
|
-
getBBox
|
|
2245
|
+
getBBox (bbox, shadows)
|
|
2143
2246
|
{
|
|
2144
2247
|
if (this ._bboxSize .getValue () .equals (this .getDefaultBBoxSize ()))
|
|
2145
2248
|
return bbox .set (this ._dimensions .getValue (), (Vector3_default()).Zero);
|
|
2146
2249
|
|
|
2147
2250
|
return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
|
|
2148
2251
|
},
|
|
2149
|
-
getAppearance
|
|
2252
|
+
getAppearance ()
|
|
2150
2253
|
{
|
|
2151
2254
|
return this .appearanceNode;
|
|
2152
2255
|
},
|
|
2153
|
-
updateShader
|
|
2256
|
+
updateShader ()
|
|
2154
2257
|
{
|
|
2155
2258
|
this .volumeMaterialNode .getVolumeShaders () .clear ();
|
|
2156
2259
|
},
|
|
2157
|
-
addShaderUniformNames
|
|
2260
|
+
addShaderUniformNames (uniformNames)
|
|
2158
2261
|
{
|
|
2159
2262
|
uniformNames .push ("x3d_TextureNormalMatrix");
|
|
2160
2263
|
},
|
|
2161
|
-
getNumPlanes
|
|
2264
|
+
getNumPlanes ()
|
|
2162
2265
|
{
|
|
2163
2266
|
switch (this .getBrowser () .getBrowserOptions () .getTextureQuality ())
|
|
2164
2267
|
{
|
|
@@ -2178,7 +2281,7 @@ X3DVolumeDataNode .prototype = Object .assign (Object .create ((X3DChildNode_def
|
|
|
2178
2281
|
|
|
2179
2282
|
return 200;
|
|
2180
2283
|
},
|
|
2181
|
-
set_dimensions__
|
|
2284
|
+
set_dimensions__ ()
|
|
2182
2285
|
{
|
|
2183
2286
|
const
|
|
2184
2287
|
NUM_PLANES = this .getNumPlanes (),
|
|
@@ -2204,11 +2307,11 @@ X3DVolumeDataNode .prototype = Object .assign (Object .create ((X3DChildNode_def
|
|
|
2204
2307
|
1 / this ._dimensions .y,
|
|
2205
2308
|
1 / this ._dimensions .z);
|
|
2206
2309
|
},
|
|
2207
|
-
set_textureTransform__
|
|
2310
|
+
set_textureTransform__ ()
|
|
2208
2311
|
{
|
|
2209
2312
|
this .textureNormalMatrixArray .set (this .textureTransformNode .getMatrix () .submatrix .inverse ());
|
|
2210
2313
|
},
|
|
2211
|
-
traverse
|
|
2314
|
+
traverse (type, renderObject)
|
|
2212
2315
|
{
|
|
2213
2316
|
this .proximitySensorNode .traverse (type, renderObject);
|
|
2214
2317
|
this .transformNode .traverse (type, renderObject);
|
|
@@ -2217,10 +2320,24 @@ X3DVolumeDataNode .prototype = Object .assign (Object .create ((X3DChildNode_def
|
|
|
2217
2320
|
{
|
|
2218
2321
|
gl .uniformMatrix3fv (shaderObject .x3d_TextureNormalMatrix, true, this .textureNormalMatrixArray);
|
|
2219
2322
|
},
|
|
2220
|
-
dispose
|
|
2323
|
+
dispose ()
|
|
2324
|
+
{
|
|
2325
|
+
X3DBoundedObject_default().prototype .dispose .call (this);
|
|
2326
|
+
X3DChildNode_default().prototype .dispose .call (this);
|
|
2327
|
+
},
|
|
2328
|
+
});
|
|
2329
|
+
|
|
2330
|
+
Object .defineProperties (X3DVolumeDataNode,
|
|
2331
|
+
{
|
|
2332
|
+
typeName:
|
|
2333
|
+
{
|
|
2334
|
+
value: "X3DVolumeDataNode",
|
|
2335
|
+
enumerable: true,
|
|
2336
|
+
},
|
|
2337
|
+
componentName:
|
|
2221
2338
|
{
|
|
2222
|
-
|
|
2223
|
-
|
|
2339
|
+
value: "VolumeRendering",
|
|
2340
|
+
enumerable: true,
|
|
2224
2341
|
},
|
|
2225
2342
|
});
|
|
2226
2343
|
|
|
@@ -2230,10 +2347,10 @@ const X3DVolumeDataNode_default_ = X3DVolumeDataNode;
|
|
|
2230
2347
|
Namespace_default().set ("x_ite/Components/VolumeRendering/X3DVolumeDataNode", X3DVolumeDataNode_default_);
|
|
2231
2348
|
/* harmony default export */ const VolumeRendering_X3DVolumeDataNode = (X3DVolumeDataNode_default_);
|
|
2232
2349
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Shaders/ComposedShader\")"
|
|
2233
|
-
const ComposedShader_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2350
|
+
const ComposedShader_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Shaders/ComposedShader");
|
|
2234
2351
|
var ComposedShader_default = /*#__PURE__*/__webpack_require__.n(ComposedShader_namespaceObject);
|
|
2235
2352
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Shaders/ShaderPart\")"
|
|
2236
|
-
const ShaderPart_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
2353
|
+
const ShaderPart_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.8.0")] .require ("x_ite/Components/Shaders/ShaderPart");
|
|
2237
2354
|
var ShaderPart_default = /*#__PURE__*/__webpack_require__.n(ShaderPart_namespaceObject);
|
|
2238
2355
|
;// CONCATENATED MODULE: ./src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js
|
|
2239
2356
|
/*******************************************************************************
|
|
@@ -2294,49 +2411,18 @@ var ShaderPart_default = /*#__PURE__*/__webpack_require__.n(ShaderPart_namespace
|
|
|
2294
2411
|
|
|
2295
2412
|
function IsoSurfaceVolumeData (executionContext)
|
|
2296
2413
|
{
|
|
2297
|
-
VolumeRendering_X3DVolumeDataNode.call (this, executionContext);
|
|
2414
|
+
VolumeRendering_X3DVolumeDataNode .call (this, executionContext);
|
|
2298
2415
|
|
|
2299
2416
|
this .addType ((X3DConstants_default()).IsoSurfaceVolumeData);
|
|
2300
2417
|
|
|
2301
2418
|
this .renderStyleNodes = [ ];
|
|
2302
2419
|
}
|
|
2303
2420
|
|
|
2304
|
-
|
|
2421
|
+
Object .assign (Object .setPrototypeOf (IsoSurfaceVolumeData .prototype, VolumeRendering_X3DVolumeDataNode .prototype),
|
|
2305
2422
|
{
|
|
2306
|
-
|
|
2307
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
2308
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2309
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "dimensions", new (Fields_default()).SFVec3f (1, 1, 1)),
|
|
2310
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "contourStepSize", new (Fields_default()).SFFloat (0)),
|
|
2311
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceValues", new (Fields_default()).MFFloat ()),
|
|
2312
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceTolerance", new (Fields_default()).SFFloat (0)),
|
|
2313
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
2314
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
2315
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f (0, 0, 0)),
|
|
2316
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
2317
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).MFNode ()),
|
|
2318
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "gradients", new (Fields_default()).SFNode ()),
|
|
2319
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "voxels", new (Fields_default()).SFNode ()),
|
|
2320
|
-
]),
|
|
2321
|
-
getTypeName: function ()
|
|
2423
|
+
initialize ()
|
|
2322
2424
|
{
|
|
2323
|
-
|
|
2324
|
-
},
|
|
2325
|
-
getComponentName: function ()
|
|
2326
|
-
{
|
|
2327
|
-
return "VolumeRendering";
|
|
2328
|
-
},
|
|
2329
|
-
getContainerField: function ()
|
|
2330
|
-
{
|
|
2331
|
-
return "children";
|
|
2332
|
-
},
|
|
2333
|
-
getSpecificationRange: function ()
|
|
2334
|
-
{
|
|
2335
|
-
return ["3.3", "Infinity"];
|
|
2336
|
-
},
|
|
2337
|
-
initialize: function ()
|
|
2338
|
-
{
|
|
2339
|
-
VolumeRendering_X3DVolumeDataNode.prototype.initialize.call (this);
|
|
2425
|
+
VolumeRendering_X3DVolumeDataNode .prototype .initialize .call (this);
|
|
2340
2426
|
|
|
2341
2427
|
const gl = this .getBrowser () .getContext ();
|
|
2342
2428
|
|
|
@@ -2359,11 +2445,11 @@ IsoSurfaceVolumeData .prototype = Object .assign (Object .create (VolumeRenderin
|
|
|
2359
2445
|
|
|
2360
2446
|
this .updateShader ();
|
|
2361
2447
|
},
|
|
2362
|
-
set_gradients__
|
|
2448
|
+
set_gradients__ ()
|
|
2363
2449
|
{
|
|
2364
2450
|
this .gradientsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._gradients);
|
|
2365
2451
|
},
|
|
2366
|
-
set_renderStyle__
|
|
2452
|
+
set_renderStyle__ ()
|
|
2367
2453
|
{
|
|
2368
2454
|
const renderStyleNodes = this .renderStyleNodes;
|
|
2369
2455
|
|
|
@@ -2389,7 +2475,7 @@ IsoSurfaceVolumeData .prototype = Object .assign (Object .create (VolumeRenderin
|
|
|
2389
2475
|
renderStyleNode .addVolumeData (this);
|
|
2390
2476
|
}
|
|
2391
2477
|
},
|
|
2392
|
-
set_voxels__
|
|
2478
|
+
set_voxels__ ()
|
|
2393
2479
|
{
|
|
2394
2480
|
this .voxelsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._voxels);
|
|
2395
2481
|
|
|
@@ -2398,9 +2484,9 @@ IsoSurfaceVolumeData .prototype = Object .assign (Object .create (VolumeRenderin
|
|
|
2398
2484
|
else
|
|
2399
2485
|
this .getAppearance () ._texture = this .getBrowser () .getDefaultVoxels ();
|
|
2400
2486
|
},
|
|
2401
|
-
createShader
|
|
2487
|
+
createShader (options, vs, fs)
|
|
2402
2488
|
{
|
|
2403
|
-
// if (
|
|
2489
|
+
// if (DEVELOPMENT)
|
|
2404
2490
|
// console .log ("Creating VolumeData Shader ...");
|
|
2405
2491
|
|
|
2406
2492
|
const opacityMapVolumeStyle = this .getBrowser () .getDefaultVolumeStyle ();
|
|
@@ -2543,7 +2629,7 @@ IsoSurfaceVolumeData .prototype = Object .assign (Object .create (VolumeRenderin
|
|
|
2543
2629
|
fs = fs .replace (/\/\/ VOLUME_STYLES_UNIFORMS\n/, styleUniforms);
|
|
2544
2630
|
fs = fs .replace (/\/\/ VOLUME_STYLES_FUNCTIONS\n/, styleFunctions);
|
|
2545
2631
|
|
|
2546
|
-
// if (
|
|
2632
|
+
// if (DEVELOPMENT)
|
|
2547
2633
|
// this .getBrowser () .print (fs);
|
|
2548
2634
|
|
|
2549
2635
|
const vertexShader = new (ShaderPart_default()) (this .getExecutionContext ());
|
|
@@ -2590,6 +2676,48 @@ IsoSurfaceVolumeData .prototype = Object .assign (Object .create (VolumeRenderin
|
|
|
2590
2676
|
},
|
|
2591
2677
|
});
|
|
2592
2678
|
|
|
2679
|
+
Object .defineProperties (IsoSurfaceVolumeData,
|
|
2680
|
+
{
|
|
2681
|
+
typeName:
|
|
2682
|
+
{
|
|
2683
|
+
value: "IsoSurfaceVolumeData",
|
|
2684
|
+
enumerable: true,
|
|
2685
|
+
},
|
|
2686
|
+
componentName:
|
|
2687
|
+
{
|
|
2688
|
+
value: "VolumeRendering",
|
|
2689
|
+
enumerable: true,
|
|
2690
|
+
},
|
|
2691
|
+
containerField:
|
|
2692
|
+
{
|
|
2693
|
+
value: "children",
|
|
2694
|
+
enumerable: true,
|
|
2695
|
+
},
|
|
2696
|
+
specificationRange:
|
|
2697
|
+
{
|
|
2698
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
2699
|
+
enumerable: true,
|
|
2700
|
+
},
|
|
2701
|
+
fieldDefinitions:
|
|
2702
|
+
{
|
|
2703
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
2704
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2705
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "dimensions", new (Fields_default()).SFVec3f (1, 1, 1)),
|
|
2706
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "contourStepSize", new (Fields_default()).SFFloat (0)),
|
|
2707
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceValues", new (Fields_default()).MFFloat ()),
|
|
2708
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceTolerance", new (Fields_default()).SFFloat (0)),
|
|
2709
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
2710
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
2711
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f (0, 0, 0)),
|
|
2712
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
2713
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).MFNode ()),
|
|
2714
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "gradients", new (Fields_default()).SFNode ()),
|
|
2715
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "voxels", new (Fields_default()).SFNode ()),
|
|
2716
|
+
]),
|
|
2717
|
+
enumerable: true,
|
|
2718
|
+
},
|
|
2719
|
+
});
|
|
2720
|
+
|
|
2593
2721
|
const IsoSurfaceVolumeData_default_ = IsoSurfaceVolumeData;
|
|
2594
2722
|
;
|
|
2595
2723
|
|
|
@@ -2651,44 +2779,21 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/IsoSurfaceVolumeData"
|
|
|
2651
2779
|
|
|
2652
2780
|
function ProjectionVolumeStyle (executionContext)
|
|
2653
2781
|
{
|
|
2654
|
-
VolumeRendering_X3DVolumeRenderStyleNode.call (this, executionContext);
|
|
2782
|
+
VolumeRendering_X3DVolumeRenderStyleNode .call (this, executionContext);
|
|
2655
2783
|
|
|
2656
2784
|
this .addType ((X3DConstants_default()).ProjectionVolumeStyle);
|
|
2657
2785
|
}
|
|
2658
2786
|
|
|
2659
|
-
|
|
2787
|
+
Object .assign (Object .setPrototypeOf (ProjectionVolumeStyle .prototype, VolumeRendering_X3DVolumeRenderStyleNode .prototype),
|
|
2660
2788
|
{
|
|
2661
|
-
|
|
2662
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
2663
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2664
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2665
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "type", new (Fields_default()).SFString ("MAX")),
|
|
2666
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "intensityThreshold", new (Fields_default()).SFFloat (0)),
|
|
2667
|
-
]),
|
|
2668
|
-
getTypeName: function ()
|
|
2669
|
-
{
|
|
2670
|
-
return "ProjectionVolumeStyle";
|
|
2671
|
-
},
|
|
2672
|
-
getComponentName: function ()
|
|
2673
|
-
{
|
|
2674
|
-
return "VolumeRendering";
|
|
2675
|
-
},
|
|
2676
|
-
getContainerField: function ()
|
|
2677
|
-
{
|
|
2678
|
-
return "renderStyle";
|
|
2679
|
-
},
|
|
2680
|
-
getSpecificationRange: function ()
|
|
2681
|
-
{
|
|
2682
|
-
return ["3.3", "Infinity"];
|
|
2683
|
-
},
|
|
2684
|
-
addShaderFields: function (shaderNode)
|
|
2789
|
+
addShaderFields (shaderNode)
|
|
2685
2790
|
{
|
|
2686
2791
|
if (! this ._enabled .getValue ())
|
|
2687
2792
|
return;
|
|
2688
2793
|
|
|
2689
2794
|
shaderNode .addUserDefinedField ((X3DConstants_default()).inputOutput, "intensityThreshold_" + this .getId (), this ._intensityThreshold .copy ());
|
|
2690
2795
|
},
|
|
2691
|
-
getUniformsText
|
|
2796
|
+
getUniformsText ()
|
|
2692
2797
|
{
|
|
2693
2798
|
if (! this ._enabled .getValue ())
|
|
2694
2799
|
return "";
|
|
@@ -2798,7 +2903,7 @@ ProjectionVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
2798
2903
|
|
|
2799
2904
|
return string;
|
|
2800
2905
|
},
|
|
2801
|
-
getFunctionsText
|
|
2906
|
+
getFunctionsText ()
|
|
2802
2907
|
{
|
|
2803
2908
|
if (! this ._enabled .getValue ())
|
|
2804
2909
|
return "";
|
|
@@ -2814,6 +2919,40 @@ ProjectionVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
2814
2919
|
},
|
|
2815
2920
|
});
|
|
2816
2921
|
|
|
2922
|
+
Object .defineProperties (ProjectionVolumeStyle,
|
|
2923
|
+
{
|
|
2924
|
+
typeName:
|
|
2925
|
+
{
|
|
2926
|
+
value: "ProjectionVolumeStyle",
|
|
2927
|
+
enumerable: true,
|
|
2928
|
+
},
|
|
2929
|
+
componentName:
|
|
2930
|
+
{
|
|
2931
|
+
value: "VolumeRendering",
|
|
2932
|
+
enumerable: true,
|
|
2933
|
+
},
|
|
2934
|
+
containerField:
|
|
2935
|
+
{
|
|
2936
|
+
value: "renderStyle",
|
|
2937
|
+
enumerable: true,
|
|
2938
|
+
},
|
|
2939
|
+
specificationRange:
|
|
2940
|
+
{
|
|
2941
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
2942
|
+
enumerable: true,
|
|
2943
|
+
},
|
|
2944
|
+
fieldDefinitions:
|
|
2945
|
+
{
|
|
2946
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
2947
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2948
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
2949
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "type", new (Fields_default()).SFString ("MAX")),
|
|
2950
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "intensityThreshold", new (Fields_default()).SFFloat (0)),
|
|
2951
|
+
]),
|
|
2952
|
+
enumerable: true,
|
|
2953
|
+
},
|
|
2954
|
+
});
|
|
2955
|
+
|
|
2817
2956
|
const ProjectionVolumeStyle_default_ = ProjectionVolumeStyle;
|
|
2818
2957
|
;
|
|
2819
2958
|
|
|
@@ -2878,7 +3017,7 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/ProjectionVolumeStyle
|
|
|
2878
3017
|
|
|
2879
3018
|
function SegmentedVolumeData (executionContext)
|
|
2880
3019
|
{
|
|
2881
|
-
VolumeRendering_X3DVolumeDataNode.call (this, executionContext);
|
|
3020
|
+
VolumeRendering_X3DVolumeDataNode .call (this, executionContext);
|
|
2882
3021
|
|
|
2883
3022
|
this .addType ((X3DConstants_default()).SegmentedVolumeData);
|
|
2884
3023
|
|
|
@@ -2886,40 +3025,11 @@ function SegmentedVolumeData (executionContext)
|
|
|
2886
3025
|
this .renderStyleNodes = [ ];
|
|
2887
3026
|
}
|
|
2888
3027
|
|
|
2889
|
-
|
|
3028
|
+
Object .assign (Object .setPrototypeOf (SegmentedVolumeData .prototype, VolumeRendering_X3DVolumeDataNode .prototype),
|
|
2890
3029
|
{
|
|
2891
|
-
|
|
2892
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
2893
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
2894
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "dimensions", new (Fields_default()).SFVec3f (1, 1, 1)),
|
|
2895
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "segmentEnabled", new (Fields_default()).MFBool ()),
|
|
2896
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
2897
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
2898
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f (0, 0, 0)),
|
|
2899
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
2900
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "segmentIdentifiers", new (Fields_default()).SFNode ()),
|
|
2901
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).MFNode ()),
|
|
2902
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "voxels", new (Fields_default()).SFNode ()),
|
|
2903
|
-
]),
|
|
2904
|
-
getTypeName: function ()
|
|
2905
|
-
{
|
|
2906
|
-
return "SegmentedVolumeData";
|
|
2907
|
-
},
|
|
2908
|
-
getComponentName: function ()
|
|
2909
|
-
{
|
|
2910
|
-
return "VolumeRendering";
|
|
2911
|
-
},
|
|
2912
|
-
getContainerField: function ()
|
|
2913
|
-
{
|
|
2914
|
-
return "children";
|
|
2915
|
-
},
|
|
2916
|
-
getSpecificationRange: function ()
|
|
2917
|
-
{
|
|
2918
|
-
return ["3.3", "Infinity"];
|
|
2919
|
-
},
|
|
2920
|
-
initialize: function ()
|
|
3030
|
+
initialize ()
|
|
2921
3031
|
{
|
|
2922
|
-
VolumeRendering_X3DVolumeDataNode.prototype.initialize.call (this);
|
|
3032
|
+
VolumeRendering_X3DVolumeDataNode .prototype .initialize .call (this);
|
|
2923
3033
|
|
|
2924
3034
|
const gl = this .getBrowser () .getContext ();
|
|
2925
3035
|
|
|
@@ -2941,15 +3051,15 @@ SegmentedVolumeData .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
2941
3051
|
|
|
2942
3052
|
this .updateShader ();
|
|
2943
3053
|
},
|
|
2944
|
-
getSegmentEnabled
|
|
3054
|
+
getSegmentEnabled (index)
|
|
2945
3055
|
{
|
|
2946
3056
|
return index < this ._segmentEnabled .length ? this ._segmentEnabled [index] : true;
|
|
2947
3057
|
},
|
|
2948
|
-
set_segmentIdentifiers__
|
|
3058
|
+
set_segmentIdentifiers__ ()
|
|
2949
3059
|
{
|
|
2950
3060
|
this .segmentIdentifiersNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._segmentIdentifiers);
|
|
2951
3061
|
},
|
|
2952
|
-
set_renderStyle__
|
|
3062
|
+
set_renderStyle__ ()
|
|
2953
3063
|
{
|
|
2954
3064
|
const renderStyleNodes = this .renderStyleNodes;
|
|
2955
3065
|
|
|
@@ -2975,7 +3085,7 @@ SegmentedVolumeData .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
2975
3085
|
renderStyleNode .addVolumeData (this);
|
|
2976
3086
|
}
|
|
2977
3087
|
},
|
|
2978
|
-
set_voxels__
|
|
3088
|
+
set_voxels__ ()
|
|
2979
3089
|
{
|
|
2980
3090
|
this .voxelsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._voxels);
|
|
2981
3091
|
|
|
@@ -2984,9 +3094,9 @@ SegmentedVolumeData .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
2984
3094
|
else
|
|
2985
3095
|
this .getAppearance () ._texture = this .getBrowser () .getDefaultVoxels ();
|
|
2986
3096
|
},
|
|
2987
|
-
createShader
|
|
3097
|
+
createShader (options, vs, fs)
|
|
2988
3098
|
{
|
|
2989
|
-
// if (
|
|
3099
|
+
// if (DEVELOPMENT)
|
|
2990
3100
|
// console .log ("Creating SegmentedVolumeData Shader ...");
|
|
2991
3101
|
|
|
2992
3102
|
const opacityMapVolumeStyle = this .getBrowser () .getDefaultVolumeStyle ();
|
|
@@ -3040,7 +3150,7 @@ SegmentedVolumeData .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
3040
3150
|
fs = fs .replace (/\/\/ VOLUME_STYLES_UNIFORMS\n/, styleUniforms);
|
|
3041
3151
|
fs = fs .replace (/\/\/ VOLUME_STYLES_FUNCTIONS\n/, styleFunctions);
|
|
3042
3152
|
|
|
3043
|
-
// if (
|
|
3153
|
+
// if (DEVELOPMENT)
|
|
3044
3154
|
// this .getBrowser () .print (fs);
|
|
3045
3155
|
|
|
3046
3156
|
const vertexShader = new (ShaderPart_default()) (this .getExecutionContext ());
|
|
@@ -3087,6 +3197,46 @@ SegmentedVolumeData .prototype = Object .assign (Object .create (VolumeRendering
|
|
|
3087
3197
|
},
|
|
3088
3198
|
});
|
|
3089
3199
|
|
|
3200
|
+
Object .defineProperties (SegmentedVolumeData,
|
|
3201
|
+
{
|
|
3202
|
+
typeName:
|
|
3203
|
+
{
|
|
3204
|
+
value: "SegmentedVolumeData",
|
|
3205
|
+
enumerable: true,
|
|
3206
|
+
},
|
|
3207
|
+
componentName:
|
|
3208
|
+
{
|
|
3209
|
+
value: "VolumeRendering",
|
|
3210
|
+
enumerable: true,
|
|
3211
|
+
},
|
|
3212
|
+
containerField:
|
|
3213
|
+
{
|
|
3214
|
+
value: "children",
|
|
3215
|
+
enumerable: true,
|
|
3216
|
+
},
|
|
3217
|
+
specificationRange:
|
|
3218
|
+
{
|
|
3219
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
3220
|
+
enumerable: true,
|
|
3221
|
+
},
|
|
3222
|
+
fieldDefinitions:
|
|
3223
|
+
{
|
|
3224
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
3225
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
3226
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "dimensions", new (Fields_default()).SFVec3f (1, 1, 1)),
|
|
3227
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "segmentEnabled", new (Fields_default()).MFBool ()),
|
|
3228
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
3229
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
3230
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f (0, 0, 0)),
|
|
3231
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
3232
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "segmentIdentifiers", new (Fields_default()).SFNode ()),
|
|
3233
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).MFNode ()),
|
|
3234
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "voxels", new (Fields_default()).SFNode ()),
|
|
3235
|
+
]),
|
|
3236
|
+
enumerable: true,
|
|
3237
|
+
},
|
|
3238
|
+
});
|
|
3239
|
+
|
|
3090
3240
|
const SegmentedVolumeData_default_ = SegmentedVolumeData;
|
|
3091
3241
|
;
|
|
3092
3242
|
|
|
@@ -3149,42 +3299,16 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/SegmentedVolumeData",
|
|
|
3149
3299
|
|
|
3150
3300
|
function ShadedVolumeStyle (executionContext)
|
|
3151
3301
|
{
|
|
3152
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.call (this, executionContext);
|
|
3302
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .call (this, executionContext);
|
|
3153
3303
|
|
|
3154
3304
|
this .addType ((X3DConstants_default()).ShadedVolumeStyle);
|
|
3155
3305
|
}
|
|
3156
3306
|
|
|
3157
|
-
|
|
3307
|
+
Object .assign (Object .setPrototypeOf (ShadedVolumeStyle .prototype, VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype),
|
|
3158
3308
|
{
|
|
3159
|
-
|
|
3160
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
3161
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
3162
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
3163
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "lighting", new (Fields_default()).SFBool ()),
|
|
3164
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadows", new (Fields_default()).SFBool ()),
|
|
3165
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "phaseFunction", new (Fields_default()).SFString ("Henyey-Greenstein")),
|
|
3166
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "material", new (Fields_default()).SFNode ()),
|
|
3167
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
3168
|
-
]),
|
|
3169
|
-
getTypeName: function ()
|
|
3170
|
-
{
|
|
3171
|
-
return "ShadedVolumeStyle";
|
|
3172
|
-
},
|
|
3173
|
-
getComponentName: function ()
|
|
3174
|
-
{
|
|
3175
|
-
return "VolumeRendering";
|
|
3176
|
-
},
|
|
3177
|
-
getContainerField: function ()
|
|
3178
|
-
{
|
|
3179
|
-
return "renderStyle";
|
|
3180
|
-
},
|
|
3181
|
-
getSpecificationRange: function ()
|
|
3309
|
+
initialize ()
|
|
3182
3310
|
{
|
|
3183
|
-
|
|
3184
|
-
},
|
|
3185
|
-
initialize: function ()
|
|
3186
|
-
{
|
|
3187
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.initialize.call (this);
|
|
3311
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
3188
3312
|
|
|
3189
3313
|
const gl = this .getBrowser () .getContext ();
|
|
3190
3314
|
|
|
@@ -3197,7 +3321,7 @@ ShadedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_X
|
|
|
3197
3321
|
this .set_material__ ();
|
|
3198
3322
|
this .set_surfaceNormals__ ();
|
|
3199
3323
|
},
|
|
3200
|
-
set_material__
|
|
3324
|
+
set_material__ ()
|
|
3201
3325
|
{
|
|
3202
3326
|
if (this .materialNode)
|
|
3203
3327
|
this .materialNode .removeInterest ("addNodeEvent", this);
|
|
@@ -3207,11 +3331,11 @@ ShadedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_X
|
|
|
3207
3331
|
if (this .materialNode)
|
|
3208
3332
|
this .materialNode .addInterest ("addNodeEvent", this);
|
|
3209
3333
|
},
|
|
3210
|
-
set_surfaceNormals__
|
|
3334
|
+
set_surfaceNormals__ ()
|
|
3211
3335
|
{
|
|
3212
3336
|
this .surfaceNormalsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._surfaceNormals);
|
|
3213
3337
|
},
|
|
3214
|
-
addShaderFields
|
|
3338
|
+
addShaderFields (shaderNode)
|
|
3215
3339
|
{
|
|
3216
3340
|
if (! this ._enabled .getValue ())
|
|
3217
3341
|
return;
|
|
@@ -3229,7 +3353,7 @@ ShadedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_X
|
|
|
3229
3353
|
if (this .surfaceNormalsNode)
|
|
3230
3354
|
shaderNode .addUserDefinedField ((X3DConstants_default()).inputOutput, "surfaceNormals_" + this .getId (), new (Fields_default()).SFNode (this .surfaceNormalsNode));
|
|
3231
3355
|
},
|
|
3232
|
-
getUniformsText
|
|
3356
|
+
getUniformsText ()
|
|
3233
3357
|
{
|
|
3234
3358
|
if (! this ._enabled .getValue ())
|
|
3235
3359
|
return "";
|
|
@@ -3345,7 +3469,7 @@ ShadedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_X
|
|
|
3345
3469
|
|
|
3346
3470
|
return string;
|
|
3347
3471
|
},
|
|
3348
|
-
getFunctionsText
|
|
3472
|
+
getFunctionsText ()
|
|
3349
3473
|
{
|
|
3350
3474
|
if (! this ._enabled .getValue ())
|
|
3351
3475
|
return "";
|
|
@@ -3361,6 +3485,43 @@ ShadedVolumeStyle .prototype = Object .assign (Object .create (VolumeRendering_X
|
|
|
3361
3485
|
},
|
|
3362
3486
|
});
|
|
3363
3487
|
|
|
3488
|
+
Object .defineProperties (ShadedVolumeStyle,
|
|
3489
|
+
{
|
|
3490
|
+
typeName:
|
|
3491
|
+
{
|
|
3492
|
+
value: "ShadedVolumeStyle",
|
|
3493
|
+
enumerable: true,
|
|
3494
|
+
},
|
|
3495
|
+
componentName:
|
|
3496
|
+
{
|
|
3497
|
+
value: "VolumeRendering",
|
|
3498
|
+
enumerable: true,
|
|
3499
|
+
},
|
|
3500
|
+
containerField:
|
|
3501
|
+
{
|
|
3502
|
+
value: "renderStyle",
|
|
3503
|
+
enumerable: true,
|
|
3504
|
+
},
|
|
3505
|
+
specificationRange:
|
|
3506
|
+
{
|
|
3507
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
3508
|
+
enumerable: true,
|
|
3509
|
+
},
|
|
3510
|
+
fieldDefinitions:
|
|
3511
|
+
{
|
|
3512
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
3513
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
3514
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
3515
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "lighting", new (Fields_default()).SFBool ()),
|
|
3516
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "shadows", new (Fields_default()).SFBool ()),
|
|
3517
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "phaseFunction", new (Fields_default()).SFString ("Henyey-Greenstein")),
|
|
3518
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "material", new (Fields_default()).SFNode ()),
|
|
3519
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
3520
|
+
]),
|
|
3521
|
+
enumerable: true,
|
|
3522
|
+
},
|
|
3523
|
+
});
|
|
3524
|
+
|
|
3364
3525
|
const ShadedVolumeStyle_default_ = ShadedVolumeStyle;
|
|
3365
3526
|
;
|
|
3366
3527
|
|
|
@@ -3423,41 +3584,16 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/ShadedVolumeStyle", S
|
|
|
3423
3584
|
|
|
3424
3585
|
function SilhouetteEnhancementVolumeStyle (executionContext)
|
|
3425
3586
|
{
|
|
3426
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.call (this, executionContext);
|
|
3587
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .call (this, executionContext);
|
|
3427
3588
|
|
|
3428
3589
|
this .addType ((X3DConstants_default()).SilhouetteEnhancementVolumeStyle);
|
|
3429
3590
|
}
|
|
3430
3591
|
|
|
3431
|
-
|
|
3592
|
+
Object .assign (Object .setPrototypeOf (SilhouetteEnhancementVolumeStyle .prototype, VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype),
|
|
3432
3593
|
{
|
|
3433
|
-
|
|
3434
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
3435
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
3436
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
3437
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "silhouetteRetainedOpacity", new (Fields_default()).SFFloat (1)),
|
|
3438
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "silhouetteBoundaryOpacity", new (Fields_default()).SFFloat (0)),
|
|
3439
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "silhouetteSharpness", new (Fields_default()).SFFloat (0.5)),
|
|
3440
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
3441
|
-
]),
|
|
3442
|
-
getTypeName: function ()
|
|
3443
|
-
{
|
|
3444
|
-
return "SilhouetteEnhancementVolumeStyle";
|
|
3445
|
-
},
|
|
3446
|
-
getComponentName: function ()
|
|
3447
|
-
{
|
|
3448
|
-
return "VolumeRendering";
|
|
3449
|
-
},
|
|
3450
|
-
getContainerField: function ()
|
|
3451
|
-
{
|
|
3452
|
-
return "renderStyle";
|
|
3453
|
-
},
|
|
3454
|
-
getSpecificationRange: function ()
|
|
3455
|
-
{
|
|
3456
|
-
return ["3.3", "Infinity"];
|
|
3457
|
-
},
|
|
3458
|
-
initialize: function ()
|
|
3594
|
+
initialize ()
|
|
3459
3595
|
{
|
|
3460
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.initialize.call (this);
|
|
3596
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
3461
3597
|
|
|
3462
3598
|
const gl = this .getBrowser () .getContext ();
|
|
3463
3599
|
|
|
@@ -3468,11 +3604,11 @@ SilhouetteEnhancementVolumeStyle .prototype = Object .assign (Object .create (Vo
|
|
|
3468
3604
|
|
|
3469
3605
|
this .set_surfaceNormals__ ();
|
|
3470
3606
|
},
|
|
3471
|
-
set_surfaceNormals__
|
|
3607
|
+
set_surfaceNormals__ ()
|
|
3472
3608
|
{
|
|
3473
3609
|
this .surfaceNormalsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._surfaceNormals);
|
|
3474
3610
|
},
|
|
3475
|
-
addShaderFields
|
|
3611
|
+
addShaderFields (shaderNode)
|
|
3476
3612
|
{
|
|
3477
3613
|
if (! this ._enabled .getValue ())
|
|
3478
3614
|
return;
|
|
@@ -3484,7 +3620,7 @@ SilhouetteEnhancementVolumeStyle .prototype = Object .assign (Object .create (Vo
|
|
|
3484
3620
|
if (this .surfaceNormalsNode)
|
|
3485
3621
|
shaderNode .addUserDefinedField ((X3DConstants_default()).inputOutput, "surfaceNormals_" + this .getId (), new (Fields_default()).SFNode (this .surfaceNormalsNode));
|
|
3486
3622
|
},
|
|
3487
|
-
getUniformsText
|
|
3623
|
+
getUniformsText ()
|
|
3488
3624
|
{
|
|
3489
3625
|
if (! this ._enabled .getValue ())
|
|
3490
3626
|
return "";
|
|
@@ -3518,7 +3654,7 @@ SilhouetteEnhancementVolumeStyle .prototype = Object .assign (Object .create (Vo
|
|
|
3518
3654
|
|
|
3519
3655
|
return string;
|
|
3520
3656
|
},
|
|
3521
|
-
getFunctionsText
|
|
3657
|
+
getFunctionsText ()
|
|
3522
3658
|
{
|
|
3523
3659
|
if (! this ._enabled .getValue ())
|
|
3524
3660
|
return "";
|
|
@@ -3534,6 +3670,42 @@ SilhouetteEnhancementVolumeStyle .prototype = Object .assign (Object .create (Vo
|
|
|
3534
3670
|
},
|
|
3535
3671
|
});
|
|
3536
3672
|
|
|
3673
|
+
Object .defineProperties (SilhouetteEnhancementVolumeStyle,
|
|
3674
|
+
{
|
|
3675
|
+
typeName:
|
|
3676
|
+
{
|
|
3677
|
+
value: "SilhouetteEnhancementVolumeStyle",
|
|
3678
|
+
enumerable: true,
|
|
3679
|
+
},
|
|
3680
|
+
componentName:
|
|
3681
|
+
{
|
|
3682
|
+
value: "VolumeRendering",
|
|
3683
|
+
enumerable: true,
|
|
3684
|
+
},
|
|
3685
|
+
containerField:
|
|
3686
|
+
{
|
|
3687
|
+
value: "renderStyle",
|
|
3688
|
+
enumerable: true,
|
|
3689
|
+
},
|
|
3690
|
+
specificationRange:
|
|
3691
|
+
{
|
|
3692
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
3693
|
+
enumerable: true,
|
|
3694
|
+
},
|
|
3695
|
+
fieldDefinitions:
|
|
3696
|
+
{
|
|
3697
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
3698
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
3699
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
3700
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "silhouetteRetainedOpacity", new (Fields_default()).SFFloat (1)),
|
|
3701
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "silhouetteBoundaryOpacity", new (Fields_default()).SFFloat (0)),
|
|
3702
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "silhouetteSharpness", new (Fields_default()).SFFloat (0.5)),
|
|
3703
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
3704
|
+
]),
|
|
3705
|
+
enumerable: true,
|
|
3706
|
+
},
|
|
3707
|
+
});
|
|
3708
|
+
|
|
3537
3709
|
const SilhouetteEnhancementVolumeStyle_default_ = SilhouetteEnhancementVolumeStyle;
|
|
3538
3710
|
;
|
|
3539
3711
|
|
|
@@ -3596,40 +3768,16 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/SilhouetteEnhancement
|
|
|
3596
3768
|
|
|
3597
3769
|
function ToneMappedVolumeStyle (executionContext)
|
|
3598
3770
|
{
|
|
3599
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.call (this, executionContext);
|
|
3771
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .call (this, executionContext);
|
|
3600
3772
|
|
|
3601
3773
|
this .addType ((X3DConstants_default()).ToneMappedVolumeStyle);
|
|
3602
3774
|
}
|
|
3603
3775
|
|
|
3604
|
-
|
|
3776
|
+
Object .assign (Object .setPrototypeOf (ToneMappedVolumeStyle .prototype, VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype),
|
|
3605
3777
|
{
|
|
3606
|
-
|
|
3607
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
3608
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
3609
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
3610
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coolColor", new (Fields_default()).SFColorRGBA (0, 0, 1, 0)),
|
|
3611
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "warmColor", new (Fields_default()).SFColorRGBA (1, 1, 0, 0)),
|
|
3612
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
3613
|
-
]),
|
|
3614
|
-
getTypeName: function ()
|
|
3615
|
-
{
|
|
3616
|
-
return "ToneMappedVolumeStyle";
|
|
3617
|
-
},
|
|
3618
|
-
getComponentName: function ()
|
|
3619
|
-
{
|
|
3620
|
-
return "VolumeRendering";
|
|
3621
|
-
},
|
|
3622
|
-
getContainerField: function ()
|
|
3778
|
+
initialize ()
|
|
3623
3779
|
{
|
|
3624
|
-
|
|
3625
|
-
},
|
|
3626
|
-
getSpecificationRange: function ()
|
|
3627
|
-
{
|
|
3628
|
-
return ["3.3", "Infinity"];
|
|
3629
|
-
},
|
|
3630
|
-
initialize: function ()
|
|
3631
|
-
{
|
|
3632
|
-
VolumeRendering_X3DComposableVolumeRenderStyleNode.prototype.initialize.call (this);
|
|
3780
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode .prototype .initialize .call (this);
|
|
3633
3781
|
|
|
3634
3782
|
const gl = this .getBrowser () .getContext ();
|
|
3635
3783
|
|
|
@@ -3640,11 +3788,11 @@ ToneMappedVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
3640
3788
|
|
|
3641
3789
|
this .set_surfaceNormals__ ();
|
|
3642
3790
|
},
|
|
3643
|
-
set_surfaceNormals__
|
|
3791
|
+
set_surfaceNormals__ ()
|
|
3644
3792
|
{
|
|
3645
3793
|
this .surfaceNormalsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._surfaceNormals);
|
|
3646
3794
|
},
|
|
3647
|
-
addShaderFields
|
|
3795
|
+
addShaderFields (shaderNode)
|
|
3648
3796
|
{
|
|
3649
3797
|
if (! this ._enabled .getValue ())
|
|
3650
3798
|
return;
|
|
@@ -3655,7 +3803,7 @@ ToneMappedVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
3655
3803
|
if (this .surfaceNormalsNode)
|
|
3656
3804
|
shaderNode .addUserDefinedField ((X3DConstants_default()).inputOutput, "surfaceNormals_" + this .getId (), new (Fields_default()).SFNode (this .surfaceNormalsNode));
|
|
3657
3805
|
},
|
|
3658
|
-
getUniformsText
|
|
3806
|
+
getUniformsText ()
|
|
3659
3807
|
{
|
|
3660
3808
|
if (! this ._enabled .getValue ())
|
|
3661
3809
|
return "";
|
|
@@ -3698,7 +3846,7 @@ ToneMappedVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
3698
3846
|
|
|
3699
3847
|
return string;
|
|
3700
3848
|
},
|
|
3701
|
-
getFunctionsText
|
|
3849
|
+
getFunctionsText ()
|
|
3702
3850
|
{
|
|
3703
3851
|
if (! this ._enabled .getValue ())
|
|
3704
3852
|
return "";
|
|
@@ -3714,6 +3862,41 @@ ToneMappedVolumeStyle .prototype = Object .assign (Object .create (VolumeRenderi
|
|
|
3714
3862
|
},
|
|
3715
3863
|
});
|
|
3716
3864
|
|
|
3865
|
+
Object .defineProperties (ToneMappedVolumeStyle,
|
|
3866
|
+
{
|
|
3867
|
+
typeName:
|
|
3868
|
+
{
|
|
3869
|
+
value: "ToneMappedVolumeStyle",
|
|
3870
|
+
enumerable: true,
|
|
3871
|
+
},
|
|
3872
|
+
componentName:
|
|
3873
|
+
{
|
|
3874
|
+
value: "VolumeRendering",
|
|
3875
|
+
enumerable: true,
|
|
3876
|
+
},
|
|
3877
|
+
containerField:
|
|
3878
|
+
{
|
|
3879
|
+
value: "renderStyle",
|
|
3880
|
+
enumerable: true,
|
|
3881
|
+
},
|
|
3882
|
+
specificationRange:
|
|
3883
|
+
{
|
|
3884
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
3885
|
+
enumerable: true,
|
|
3886
|
+
},
|
|
3887
|
+
fieldDefinitions:
|
|
3888
|
+
{
|
|
3889
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
3890
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
3891
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
3892
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "coolColor", new (Fields_default()).SFColorRGBA (0, 0, 1, 0)),
|
|
3893
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "warmColor", new (Fields_default()).SFColorRGBA (1, 1, 0, 0)),
|
|
3894
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "surfaceNormals", new (Fields_default()).SFNode ()),
|
|
3895
|
+
]),
|
|
3896
|
+
enumerable: true,
|
|
3897
|
+
},
|
|
3898
|
+
});
|
|
3899
|
+
|
|
3717
3900
|
const ToneMappedVolumeStyle_default_ = ToneMappedVolumeStyle;
|
|
3718
3901
|
;
|
|
3719
3902
|
|
|
@@ -3778,45 +3961,18 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/ToneMappedVolumeStyle
|
|
|
3778
3961
|
|
|
3779
3962
|
function VolumeData (executionContext)
|
|
3780
3963
|
{
|
|
3781
|
-
VolumeRendering_X3DVolumeDataNode.call (this, executionContext);
|
|
3964
|
+
VolumeRendering_X3DVolumeDataNode .call (this, executionContext);
|
|
3782
3965
|
|
|
3783
3966
|
this .addType ((X3DConstants_default()).VolumeData);
|
|
3784
3967
|
|
|
3785
3968
|
this .renderStyleNode = null;
|
|
3786
3969
|
}
|
|
3787
3970
|
|
|
3788
|
-
|
|
3971
|
+
Object .assign (Object .setPrototypeOf (VolumeData .prototype, VolumeRendering_X3DVolumeDataNode .prototype),
|
|
3789
3972
|
{
|
|
3790
|
-
|
|
3791
|
-
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
3792
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
3793
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "dimensions", new (Fields_default()).SFVec3f (1, 1, 1)),
|
|
3794
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
3795
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
3796
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f (0, 0, 0)),
|
|
3797
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
3798
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).SFNode ()),
|
|
3799
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "voxels", new (Fields_default()).SFNode ()),
|
|
3800
|
-
]),
|
|
3801
|
-
getTypeName: function ()
|
|
3973
|
+
initialize ()
|
|
3802
3974
|
{
|
|
3803
|
-
|
|
3804
|
-
},
|
|
3805
|
-
getComponentName: function ()
|
|
3806
|
-
{
|
|
3807
|
-
return "VolumeRendering";
|
|
3808
|
-
},
|
|
3809
|
-
getContainerField: function ()
|
|
3810
|
-
{
|
|
3811
|
-
return "children";
|
|
3812
|
-
},
|
|
3813
|
-
getSpecificationRange: function ()
|
|
3814
|
-
{
|
|
3815
|
-
return ["3.3", "Infinity"];
|
|
3816
|
-
},
|
|
3817
|
-
initialize: function ()
|
|
3818
|
-
{
|
|
3819
|
-
VolumeRendering_X3DVolumeDataNode.prototype.initialize.call (this);
|
|
3975
|
+
VolumeRendering_X3DVolumeDataNode .prototype .initialize .call (this);
|
|
3820
3976
|
|
|
3821
3977
|
const gl = this .getBrowser () .getContext ();
|
|
3822
3978
|
|
|
@@ -3835,7 +3991,7 @@ VolumeData .prototype = Object .assign (Object .create (VolumeRendering_X3DVolum
|
|
|
3835
3991
|
|
|
3836
3992
|
this .updateShader ();
|
|
3837
3993
|
},
|
|
3838
|
-
set_renderStyle__
|
|
3994
|
+
set_renderStyle__ ()
|
|
3839
3995
|
{
|
|
3840
3996
|
if (this .renderStyleNode)
|
|
3841
3997
|
{
|
|
@@ -3851,7 +4007,7 @@ VolumeData .prototype = Object .assign (Object .create (VolumeRendering_X3DVolum
|
|
|
3851
4007
|
this .renderStyleNode .addVolumeData (this);
|
|
3852
4008
|
}
|
|
3853
4009
|
},
|
|
3854
|
-
set_voxels__
|
|
4010
|
+
set_voxels__ ()
|
|
3855
4011
|
{
|
|
3856
4012
|
this .voxelsNode = X3DCast_default() ((X3DConstants_default()).X3DTexture3DNode, this ._voxels);
|
|
3857
4013
|
|
|
@@ -3860,9 +4016,9 @@ VolumeData .prototype = Object .assign (Object .create (VolumeRendering_X3DVolum
|
|
|
3860
4016
|
else
|
|
3861
4017
|
this .getAppearance () ._texture = this .getBrowser () .getDefaultVoxels ();
|
|
3862
4018
|
},
|
|
3863
|
-
createShader
|
|
4019
|
+
createShader (options, vs, fs)
|
|
3864
4020
|
{
|
|
3865
|
-
// if (
|
|
4021
|
+
// if (DEVELOPMENT)
|
|
3866
4022
|
// console .log ("Creating VolumeData Shader ...");
|
|
3867
4023
|
|
|
3868
4024
|
const opacityMapVolumeStyle = this .getBrowser () .getDefaultVolumeStyle ();
|
|
@@ -3880,7 +4036,7 @@ VolumeData .prototype = Object .assign (Object .create (VolumeRendering_X3DVolum
|
|
|
3880
4036
|
fs = fs .replace (/\/\/ VOLUME_STYLES_UNIFORMS\n/, styleUniforms);
|
|
3881
4037
|
fs = fs .replace (/\/\/ VOLUME_STYLES_FUNCTIONS\n/, styleFunctions);
|
|
3882
4038
|
|
|
3883
|
-
// if (
|
|
4039
|
+
// if (DEVELOPMENT)
|
|
3884
4040
|
// this .getBrowser () .print (fs);
|
|
3885
4041
|
|
|
3886
4042
|
const vertexShader = new (ShaderPart_default()) (this .getExecutionContext ());
|
|
@@ -3921,6 +4077,44 @@ VolumeData .prototype = Object .assign (Object .create (VolumeRendering_X3DVolum
|
|
|
3921
4077
|
},
|
|
3922
4078
|
});
|
|
3923
4079
|
|
|
4080
|
+
Object .defineProperties (VolumeData,
|
|
4081
|
+
{
|
|
4082
|
+
typeName:
|
|
4083
|
+
{
|
|
4084
|
+
value: "VolumeData",
|
|
4085
|
+
enumerable: true,
|
|
4086
|
+
},
|
|
4087
|
+
componentName:
|
|
4088
|
+
{
|
|
4089
|
+
value: "VolumeRendering",
|
|
4090
|
+
enumerable: true,
|
|
4091
|
+
},
|
|
4092
|
+
containerField:
|
|
4093
|
+
{
|
|
4094
|
+
value: "children",
|
|
4095
|
+
enumerable: true,
|
|
4096
|
+
},
|
|
4097
|
+
specificationRange:
|
|
4098
|
+
{
|
|
4099
|
+
value: Object .freeze (["3.3", "Infinity"]),
|
|
4100
|
+
enumerable: true,
|
|
4101
|
+
},
|
|
4102
|
+
fieldDefinitions:
|
|
4103
|
+
{
|
|
4104
|
+
value: new (FieldDefinitionArray_default()) ([
|
|
4105
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
4106
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "dimensions", new (Fields_default()).SFVec3f (1, 1, 1)),
|
|
4107
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
4108
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
4109
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f (0, 0, 0)),
|
|
4110
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
4111
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "renderStyle", new (Fields_default()).SFNode ()),
|
|
4112
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "voxels", new (Fields_default()).SFNode ()),
|
|
4113
|
+
]),
|
|
4114
|
+
enumerable: true,
|
|
4115
|
+
},
|
|
4116
|
+
});
|
|
4117
|
+
|
|
3924
4118
|
const VolumeData_default_ = VolumeData;
|
|
3925
4119
|
;
|
|
3926
4120
|
|
|
@@ -3993,30 +4187,30 @@ Namespace_default().set ("x_ite/Components/VolumeRendering/VolumeData", VolumeDa
|
|
|
3993
4187
|
|
|
3994
4188
|
|
|
3995
4189
|
|
|
3996
|
-
Components_default().
|
|
4190
|
+
Components_default().add ({
|
|
3997
4191
|
name: "VolumeRendering",
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4192
|
+
concreteNodes:
|
|
4193
|
+
[
|
|
4194
|
+
VolumeRendering_BlendedVolumeStyle,
|
|
4195
|
+
VolumeRendering_BoundaryEnhancementVolumeStyle,
|
|
4196
|
+
VolumeRendering_CartoonVolumeStyle,
|
|
4197
|
+
VolumeRendering_ComposedVolumeStyle,
|
|
4198
|
+
VolumeRendering_EdgeEnhancementVolumeStyle,
|
|
4199
|
+
VolumeRendering_IsoSurfaceVolumeData,
|
|
4200
|
+
VolumeRendering_OpacityMapVolumeStyle,
|
|
4201
|
+
VolumeRendering_ProjectionVolumeStyle,
|
|
4202
|
+
VolumeRendering_SegmentedVolumeData,
|
|
4203
|
+
VolumeRendering_ShadedVolumeStyle,
|
|
4204
|
+
VolumeRendering_SilhouetteEnhancementVolumeStyle,
|
|
4205
|
+
VolumeRendering_ToneMappedVolumeStyle,
|
|
4206
|
+
VolumeRendering_VolumeData,
|
|
4207
|
+
],
|
|
4208
|
+
abstractNodes:
|
|
4209
|
+
[
|
|
4210
|
+
VolumeRendering_X3DComposableVolumeRenderStyleNode,
|
|
4211
|
+
VolumeRendering_X3DVolumeDataNode,
|
|
4212
|
+
VolumeRendering_X3DVolumeRenderStyleNode,
|
|
4213
|
+
],
|
|
4020
4214
|
browserContext: VolumeRendering_X3DVolumeRenderingContext,
|
|
4021
4215
|
});
|
|
4022
4216
|
|