diff --git a/build.properties b/build.properties index 4997e0b8415fdd37ff70fa5033018a8d87885d70..980ba4886570303f9aef43f679a7bae9c4258dcf 100644 --- a/build.properties +++ b/build.properties @@ -103,9 +103,10 @@ src.dir=src src.java.dir=${src.dir}/java # Installer building -win.linux.32.64.installer.file=${basedir}/src/install/izpack/xj3d-win-linux-32-64-install.xml -win.linux.32.64.installer.jar=${product.shortname}-${product.Version}-win-64-installer.jar -macosx.installer.file=${basedir}/src/install/izpack/xj3d-mac-install.xml +installers.dir=${basedir}/installers +win.linux.install.description=${basedir}/src/install/izpack/xj3d-win-linux-install-description.xml +win.linux.installer.jar=${product.shortname}-${product.Version}-win-linux-installer.jar +macosx.install.description=${basedir}/src/install/izpack/xj3d-mac-install-description.xml macosx.installer.jar=${product.shortname}-${product.Version}-macosx-installer.jar javac.classpath=${aviatrix3d-all.jar}:\ @@ -234,7 +235,7 @@ sai.simserver.dir=${examples.dir}/sai/simserver examples.spec.x3d.java.dir=${examples.dir}/spec/x3d/java xj3d.version=Version -xj3d.version.number=2.2 +xj3d.version.number=${product.version.major}.${product.version.level} xj3d.version.file=${src.java.dir}/org/web3d/util/${xj3d.version}.java browser.class=${browser.classes.dir}/xj3d/browser/Xj3DBrowser.class diff --git a/build.xml b/build.xml index 8ebadd2baf631a519e79fcd9bac069e77e2b6fd8..fb121bf2e1352413f74e76a0e757178c9d32df37 100644 --- a/build.xml +++ b/build.xml @@ -46,9 +46,6 @@ POSSIBILITY OF SUCH DAMAGE. <!-- access to local environment variables --> <property environment="env"/> - <!-- Warning: only add izpack installer task after all global properties are defined --> - <import file="buildInstallers.xml"/> - <!-- =============================== PROPERTIES/TASKS/MACROS SECTION @@ -387,11 +384,15 @@ POSSIBILITY OF SUCH DAMAGE. depends="compile" description="Build the Xj3D application jar file"> - <delete dir="${dist.dir}"/> + <delete> + <fileset dir="${dist.dir}"> + <include name="*.jar"/> + </fileset> + </delete> <mkdir dir="${dist.dir}"/> <copy file="apps/replica/src/java/xj3d/replica/images/Xj3dRenderCaptureFailed.png" - todir="${build.classes.dir}/org/xj3d/ui/awt/browser/ogl/images" verbose="true" overwrite="true"/> + todir="${build.classes.dir}/org/xj3d/ui/awt/browser/ogl/images" verbose="true" overwrite="true"/> <jar destfile="${dist.jar}" basedir="${build.classes.dir}"> <manifest> <attribute name="Specification-Version" @@ -1275,7 +1276,6 @@ lists details and further links as part of the <target name="clean.ogl"> <delete dir="${build.classes.dir}" failonerror="false"/> - <!--delete dir="${dist.dir}" failonerror="false"/--> </target> <target name="clean.apps"> @@ -1451,5 +1451,90 @@ Nearby: </target> <!-- ======================================================================================== --> + + <!-- ===== Build NPS Xj3D installer jars into ./installers directory ===== --> + + <!-- Prerequisite for creating installer: you must have local izPack v5+ installed --> + <property file="nbproject/private/access.properties"/> + <property name="izpack-dist" value="${IZPACK_DIST}" description="local installation of latest distribution from http://izpack.org"/> + <path id="lib.path"> + <fileset dir="${izpack-dist}/lib" includes="*.jar"/> + </path> + + <target name="update.izpack.jar"> + <echo message="Prerequisite: apply .jar fix in installers/util/izpack-lang-fix in local $IZPACK_DIST .jar at"/> + <echo message="${IZPACK_DIST}/lib/izpack-core-5.1.3.jar"/> + <copy file="${basedir}/src/install/izpack/util/izpack-core-5.1.3.jar" todir="${IZPACK_DIST}/lib/" verbose="true" force="true"/> + </target> + + <taskdef name="izpack" + classpathref="lib.path" + classname="com.izforge.izpack.ant.IzPackTask"/> + + <target name="build.installers" + description="Build Xj3D installer jars" + depends="clean.installers,versions,dist"> + + <!-- TODO validate the izPack XML files --> + + <mkdir dir="${installers.dir}"/> + + <!-- OpenJDK 14: https://openjdk.java.net/projects/jdk/14 + JEP 367: Remove the Pack200 Tools and API: https://openjdk.java.net/jeps/367 + IzPack Documentation/Using IzPack/IzPack 4/Advanced features/Apache Ant integration: + https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/491532/Advanced+Features + + IzPack Maven Plugin Reference + https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/491628/IzPack+Maven+Plugin+Reference + IzPack 5 Documentation/Compiling the Installation/Compiling Using Ant + https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/491591/Compiling+Using+Ant + IzPack 5 Documentation/.../Packs/Compressing pack files + https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/67078184/Compressing+pack+files + Issue IZPACK-1582: IzPack 5.1.1 Compression Fails + https://izpack.atlassian.net/projects/IZPACK/issues/IZPACK-1582 + adamretter Fixes a couple of small issues #682 + https://github.com/izpack/izpack/pull/682 + Issue IZPACK-953: Izpack 5.0.0 standalone jar does not provide ant task + https://izpack.atlassian.net/browse/IZPACK-953 + --> + <echo message="Running IzPack to build the installers..."/> + <echo message="Windows Linux installer description file: ${win.linux.install.description}"/> + <izpack input= "${win.linux.install.description}" + output="${installers.dir}/${win.linux.installer.jar}" + installerType="standard" + basedir="${basedir}" + inheritAll="true" + compression="default" + compressionlevel="9"/> + <echo message="macosx installer description file: ${macosx.install.description}"/> + <izpack input= "${macosx.install.description}" + output="${installers.dir}/${macosx.installer.jar}" + installerType="standard" + basedir="${basedir}" + inheritAll="true" + compression="default" + compressionlevel="9"/> + + <chmod file="${installers.dir}/${win.linux.installer.jar}" perm="ugo+rx"/> + <chmod file="${installers.dir}/${macosx.installer.jar}" perm="ugo+rx"/> + + <length file="${installers.dir}/${win.linux.installer.jar}" property="length.win.linux.installer.jar"/> + <length file="${installers.dir}/${macosx.installer.jar}" property="length.macosx.installer.jar"/> + <echo/> + <echo message="Installer file sizes: ${win.linux.installer.jar}=${length.win.linux.installer.jar} bytes, ${macosx.installer.jar}=${length.macosx.installer.jar} bytes"/> + <echo/> + <echo message="IzPack installer builds complete"/> + + </target> + + <target name="clean.installers" + description="Clean up all executables generated by producing the installers"> + + <delete verbose="true"> + <fileset dir="installers"> + <include name="*.jar"/> + </fileset> + </delete> + </target> </project> diff --git a/buildInstallers.xml b/buildInstallers.xml deleted file mode 100644 index e36288063f760cbfecfd7ef121b2da1e80e1243c..0000000000000000000000000000000000000000 --- a/buildInstallers.xml +++ /dev/null @@ -1,134 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- Seems to render in Mozilla Firefox the best. Broken in IE7 --> -<?xml-stylesheet type="text/xsl" href="./ant2html.xsl"?> -<project name="IzPack Installers" basedir="." default="build.installers"> - <description> - Build NPS Xj3D installer jars into ./installers directory. - </description> - <!-- - Warning: this file gets imported by accompanying Xj3D build.xml - (at bottom, following property definition) and should not get invoked directly. - --> - - <!-- -Copyright (c) 1995-2020 held by the author(s). All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer - in the documentation and/or other materials provided with the - distribution. - * Neither the name of the Web3D Consortium (https://www.web3D.org) - nor the names of its contributors may be used to endorse or - promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - --> - - <property name="installers.dir" location="installers"/> - - <!-- Prerequisite for creating installer: you must have local izPack v5+ installed --> - <property file="nbproject/private/access.properties"/> - <property name="izpack-dist" value="${IZPACK_DIST}" description="local installation of latest distribution from http://izpack.org"/> - <path id="lib.path"> - <fileset dir="${izpack-dist}/lib" includes="*.jar"/> - </path> - - <target name="update.izpack.jar"> - <echo message="Prerequisite: apply .jar fix in installers/util/izpack-lang-fix in local $IZPACK_DIST .jar at"/> - <echo message=" ${IZPACK_DIST}/lib/izpack-core-5.1.3.jar"/> - <copy file="installers/util/izpack-core-5.1.3.jar" todir="${IZPACK_DIST}/lib/" verbose="true" force="true"/> - </target> - - <taskdef name="izpack" - classpathref="lib.path" - classname="com.izforge.izpack.ant.IzPackTask"/> - - <target name="build.installers" - description="Build Xj3D installer jars" - depends="clean.installers"> - - <!-- TODO validate the izPack XML files --> - - <ant antfile="build.xml" target="versions"/> - <ant antfile="build.xml" target="dist"/> - - <mkdir dir="${installers.dir}"/> - - <!-- OpenJDK 14: https://openjdk.java.net/projects/jdk/14 - JEP 367: Remove the Pack200 Tools and API: https://openjdk.java.net/jeps/367 - IzPack Documentation/Using IzPack/IzPack 4/Advanced features/Apache Ant integration: - https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/491532/Advanced+Features - - IzPack v5 remains problematic due to not supporting Ant properly. - IzPack Maven Plugin Reference - https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/491628/IzPack+Maven+Plugin+Reference - IzPack 5 Documentation/Compiling the Installation/Compiling Using Ant - https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/491591/Compiling+Using+Ant - IzPack 5 Documentation/.../Packs/Compressing pack files - https://izpack.atlassian.net/wiki/spaces/IZPACK/pages/67078184/Compressing+pack+files - Issue IZPACK-1582: IzPack 5.1.1 Compression Fails - https://izpack.atlassian.net/projects/IZPACK/issues/IZPACK-1582 - adamretter Fixes a couple of small issues #682 - https://github.com/izpack/izpack/pull/682 - Issue IZPACK-953: Izpack 5.0.0 standalone jar does not provide ant task - https://izpack.atlassian.net/browse/IZPACK-953 - --> - <echo message="Running IzPack to build the installers..."/> - <echo message="Windows Linux installer file: ${win.linux.32.64.installer.file}"/> - <izpack input= "${win.linux.32.64.installer.file}" - output="${installers.dir}/${win.linux.32.64.installer.jar}" - installerType="standard" - basedir="${basedir}" - inheritAll="true" - compression="default" - compressionlevel="9"/> - <echo message="macosx installer file: ${macosx.installer.file}"/> - <izpack input="${macosx.installer.file}" - output="${installers.dir}/${macosx.installer.jar}" - installerType="standard" - basedir="${basedir}" - inheritAll="true" - compression="default" - compressionlevel="9"/> - - <chmod file="${installers.dir}/${win.linux.32.64.installer.jar}" perm="ugo+rx"/> - <chmod file="${installers.dir}/${macosx.installer.jar}" perm="ugo+rx"/> - - <length file="${installers.dir}/${win.linux.32.64.installer.jar}" property="length.win.linux.32.64.installer.jar"/> - <length file="${installers.dir}/${macosx.installer.jar}" property="length.macosx.installer.jar"/> - <echo/> - <echo message="Installer file sizes: ${win.linux.32.64.installer.jar}=${length.win.linux.32.64.installer.jar} bytes, ${macosx.installer.jar}=${length.macosx.installer.jar} bytes"/> - <echo/> - <echo message="IzPack installer builds complete"/> - - </target> - - <target name="clean.installers" - description="Clean up all executables generated by producing the installers"> - - <delete verbose="true"> - <fileset dir="installers"> - <include name="*.jar"/> - </fileset> - </delete> - </target> -</project> \ No newline at end of file diff --git a/nbproject/nbjdk.properties b/nbproject/nbjdk.properties index c010f95697b08c2f79c1ba104eb6c2fd479ff059..3033a8abbe8c94d80e50e14c39c869aee52fbf88 100644 --- a/nbproject/nbjdk.properties +++ b/nbproject/nbjdk.properties @@ -1 +1 @@ -nbjdk.active=JDK_14 +nbjdk.active=default_platform diff --git a/installers/util/README.txt b/src/install/izpack/util/README.txt similarity index 100% rename from installers/util/README.txt rename to src/install/izpack/util/README.txt diff --git a/installers/util/izpack-core-5.1.3.jar b/src/install/izpack/util/izpack-core-5.1.3.jar similarity index 100% rename from installers/util/izpack-core-5.1.3.jar rename to src/install/izpack/util/izpack-core-5.1.3.jar diff --git a/installers/util/izpack-lang-fix/README b/src/install/izpack/util/izpack-lang-fix/README similarity index 100% rename from installers/util/izpack-lang-fix/README rename to src/install/izpack/util/izpack-lang-fix/README diff --git a/installers/util/izpack-lang-fix/com/izforge/izpack/bin/langpacks/flags/usa.gif b/src/install/izpack/util/izpack-lang-fix/com/izforge/izpack/bin/langpacks/flags/usa.gif similarity index 100% rename from installers/util/izpack-lang-fix/com/izforge/izpack/bin/langpacks/flags/usa.gif rename to src/install/izpack/util/izpack-lang-fix/com/izforge/izpack/bin/langpacks/flags/usa.gif diff --git a/installers/util/izpack-lang-fix/com/izforge/izpack/bin/langpacks/installer/usa.xml b/src/install/izpack/util/izpack-lang-fix/com/izforge/izpack/bin/langpacks/installer/usa.xml similarity index 100% rename from installers/util/izpack-lang-fix/com/izforge/izpack/bin/langpacks/installer/usa.xml rename to src/install/izpack/util/izpack-lang-fix/com/izforge/izpack/bin/langpacks/installer/usa.xml diff --git a/installers/util/izpack-lang-fix/update.bat b/src/install/izpack/util/izpack-lang-fix/update.bat similarity index 100% rename from installers/util/izpack-lang-fix/update.bat rename to src/install/izpack/util/izpack-lang-fix/update.bat diff --git a/installers/util/izpack-lang-fix/update.sh b/src/install/izpack/util/izpack-lang-fix/update.sh similarity index 100% rename from installers/util/izpack-lang-fix/update.sh rename to src/install/izpack/util/izpack-lang-fix/update.sh diff --git a/src/install/izpack/xj3d-mac-install.xml b/src/install/izpack/xj3d-mac-install-description.xml similarity index 90% rename from src/install/izpack/xj3d-mac-install.xml rename to src/install/izpack/xj3d-mac-install-description.xml index 2fe37496524d85dc07cc4e9d7982e967e7b395a5..73694d9cd2b06ab9d2a84af6a230c5dcf86e50c2 100644 --- a/src/install/izpack/xj3d-mac-install.xml +++ b/src/install/izpack/xj3d-mac-install-description.xml @@ -111,11 +111,11 @@ <file src="buildStamp.txt" targetdir="$INSTALL_PATH"/> <!-- Apple specific files --> - <file src="src/install/izpack/macosx/Info.plist" targetdir="$INSTALL_PATH/Xj3DBrowser.app/Contents"/> - <file src="src/install/izpack/macosx/JavaApplicationStub" targetdir="$INSTALL_PATH/Xj3DBrowser.app/Contents/MacOS"/> - <file src="src/install/izpack/macosx/PkgInfo" targetdir="$INSTALL_PATH/Xj3DBrowser.app/Contents"/> - <file src="src/install/izpack/macosx/installerInfo" targetdir="$INSTALL_PATH/doc"/> - <file src="src/install/izpack/macosx/xj3dIcons.icns" targetdir="$INSTALL_PATH/Xj3DBrowser.app/Contents/Resources"/> + <file src="@{src.dir}/install/izpack/macosx/Info.plist" targetdir="$INSTALL_PATH/Xj3DBrowser.app/Contents"/> + <file src="@{src.dir}/install/izpack/macosx/JavaApplicationStub" targetdir="$INSTALL_PATH/Xj3DBrowser.app/Contents/MacOS"/> + <file src="@{src.dir}/install/izpack/macosx/PkgInfo" targetdir="$INSTALL_PATH/Xj3DBrowser.app/Contents"/> + <file src="@{src.dir}/install/izpack/macosx/installerInfo" targetdir="$INSTALL_PATH/doc"/> + <file src="@{src.dir}/install/izpack/macosx/xj3dIcons.icns" targetdir="$INSTALL_PATH/Xj3DBrowser.app/Contents/Resources"/> <executable targetfile="$INSTALL_PATH/Xj3DBrowser.app/Contents/MacOS/JavaApplicationStub" stage="never" /> <executable targetfile="$INSTALL_PATH/browser.sh.command" stage="never"/> diff --git a/src/install/izpack/xj3d-win-linux-32-64-install.xml b/src/install/izpack/xj3d-win-linux-install-description.xml similarity index 100% rename from src/install/izpack/xj3d-win-linux-32-64-install.xml rename to src/install/izpack/xj3d-win-linux-install-description.xml diff --git a/src/java/org/web3d/vrml/export/BaseRetainedExporter.java b/src/java/org/web3d/vrml/export/BaseRetainedExporter.java index afbb647d3b19ed1f60f46daa5977b404edbf2664..a9d4fd3e6147448db3c4bc9f4f52258e98bdb43c 100644 --- a/src/java/org/web3d/vrml/export/BaseRetainedExporter.java +++ b/src/java/org/web3d/vrml/export/BaseRetainedExporter.java @@ -342,7 +342,7 @@ public abstract class BaseRetainedExporter extends Exporter implements BinaryCon if (convertOldContent) { if (hanimFound) - componentList.add(new ComponentInfo("H-Anim",1)); + componentList.add(new ComponentInfo("H-Anim",1)); // TODO HAnim in X3Dv4 if (geospatialFound) componentList.add(new ComponentInfo("Geospatial",1)); } diff --git a/src/java/org/web3d/vrml/renderer/common/input/dis/DISProtocolHandler.java b/src/java/org/web3d/vrml/renderer/common/input/dis/DISProtocolHandler.java index b8f9b885fccdfa2fde078456baf177abfe4720b7..2a9077f02f13c0dfe05645434a393c83a456258e 100644 --- a/src/java/org/web3d/vrml/renderer/common/input/dis/DISProtocolHandler.java +++ b/src/java/org/web3d/vrml/renderer/common/input/dis/DISProtocolHandler.java @@ -9,7 +9,6 @@ * purpose. Use it at your own risk. If there's a problem you get to fix it. * ****************************************************************************/ - package org.web3d.vrml.renderer.common.input.dis; // External imports @@ -31,7 +30,6 @@ import org.xj3d.core.eventmodel.NetworkProtocolHandler; /** * The handler for DIS protocol network traffic. - * <p> * * @author Alan Hudson * @version $Revision: 1.26 $ @@ -118,7 +116,7 @@ public class DISProtocolHandler "org.web3d.vrml.renderer.common.dis.input.deadreckonPosition"; /** The value read from the system property for MIPMAPS */ - protected static final boolean deadreckonPosition; + protected static final boolean DEAD_RECKON_POSITION; /** The default dead reckon position value */ protected static final boolean DEFAULT_DEADRECKON_ROTATION = true; @@ -128,7 +126,7 @@ public class DISProtocolHandler "org.web3d.vrml.renderer.common.dis.input.deadreckonRotation"; /** The value read from the system property for deadReckonRotation */ - protected static final boolean deadreckonRotation; + protected static final boolean DEAD_RECKON_ROTATION; // Scratch matrixes for smoothing Matrix3d rotationMatrix; @@ -152,10 +150,10 @@ public class DISProtocolHandler AxisAngle4d axisTemp; static { - deadreckonPosition = PropertyTools.fetchSystemProperty(DEADRECKON_POSITION_PROP, + DEAD_RECKON_POSITION = PropertyTools.fetchSystemProperty(DEADRECKON_POSITION_PROP, DEFAULT_DEADRECKON_POSITION); - deadreckonRotation = PropertyTools.fetchSystemProperty(DEADRECKON_ROTATION_PROP, + DEAD_RECKON_ROTATION = PropertyTools.fetchSystemProperty(DEADRECKON_ROTATION_PROP, DEFAULT_DEADRECKON_ROTATION); } @@ -346,7 +344,7 @@ public class DISProtocolHandler } } - if ((deadreckonPosition || deadreckonRotation) && !node.closeEnough) { + if ((DEAD_RECKON_POSITION || DEAD_RECKON_ROTATION) && !node.closeEnough) { // Handle dead reckoning dt = (currTime - node.lastTime) * 0.001f; // dt = (currTime - node.lastTime) * 0.01f; @@ -364,7 +362,7 @@ public class DISProtocolHandler int idx; - if (deadreckonPosition) { + if (DEAD_RECKON_POSITION) { node.translationConverger.getValue(currTime, translationVec); tempPositionArray[0] = (float) translationVec.x; tempPositionArray[1] = (float) translationVec.y; @@ -373,7 +371,7 @@ public class DISProtocolHandler di.setValue(idx, tempPositionArray, 3); } - if (deadreckonRotation) { + if (DEAD_RECKON_ROTATION) { node.rotationConverger.getValue(currTime, rotationQuat); rotationQuat.normalize(); @@ -470,35 +468,24 @@ public class DISProtocolHandler di.addNetworkRoleListener(this); - switch (di.getRole()) { - case VRMLNetworkInterfaceNodeType.ROLE_MANAGER: - address = di.getAddress(); - port = di.getPort(); + address = di.getAddress(); + port = di.getPort(); - id = new DISConnectionId(address, port); - conn = connections.get(id); + id = new DISConnectionId(address, port); + conn = connections.get(id); - if (conn == null) { - conn = new DISConnectionHandler(nodeMap, liveList, managerList, notifiedSet, address, port); - - connections.put(id, conn); - } + if (conn == null) { + // TODO: When do we get rid of these? + conn = new DISConnectionHandler(nodeMap, liveList, managerList, notifiedSet, address, port); + connections.put(id, conn); + } + + switch (di.getRole()) { + case VRMLNetworkInterfaceNodeType.ROLE_MANAGER: managerList.add(di); break; case VRMLNetworkInterfaceNodeType.ROLE_READER: - address = di.getAddress(); - port = di.getPort(); - - id = new DISConnectionId(address, port); - conn = connections.get(id); - - if (conn == null) { - // TODO: When do we get rid of these? - conn = new DISConnectionHandler(nodeMap, liveList, managerList, notifiedSet, address, port); - - connections.put(id, conn); - } siteID = di.getSiteID(); appID = di.getAppID(); @@ -520,19 +507,6 @@ public class DISProtocolHandler break; case VRMLNetworkInterfaceNodeType.ROLE_WRITER: - address = di.getAddress(); - port = di.getPort(); - - id = new DISConnectionId(address, port); - conn = connections.get(id); - - if (conn == null) { - // TODO: When do we get rid of these? - conn = new DISConnectionHandler(nodeMap, liveList, managerList, notifiedSet, address, port); - - connections.put(id, conn); - } - siteID = di.getSiteID(); appID = di.getAppID(); entityID = di.getEntityID(); @@ -589,6 +563,7 @@ public class DISProtocolHandler //---------------------------------------------------------- // Methods required for NetworkRoleListener //---------------------------------------------------------- + /** * The role of this node has changed. * @@ -669,6 +644,7 @@ public class DISProtocolHandler //---------------------------------------------------------- // Local convenience methods //---------------------------------------------------------- + /** * Calculate the dead reckoning position of a EntityStatePDU * @param espdu @@ -790,4 +766,4 @@ public class DISProtocolHandler rotMatrix.mul(psiMat); } -} // end class file DISProtocolHandler.java \ No newline at end of file +} // end class file DISProtocolHandler.java diff --git a/src/java/org/web3d/vrml/renderer/common/input/dis/LinkedList.java b/src/java/org/web3d/vrml/renderer/common/input/dis/LinkedList.java index 6cca4549973c754796f068f46ebafd0c7f0fae1a..4aa2124e52423b7c6232fb855864465cb1b8766c 100644 --- a/src/java/org/web3d/vrml/renderer/common/input/dis/LinkedList.java +++ b/src/java/org/web3d/vrml/renderer/common/input/dis/LinkedList.java @@ -24,7 +24,6 @@ package org.web3d.vrml.renderer.common.input.dis; * @author Alan Hudson * @version $Revision: 1.2 $ */ - class LinkedList { public ListEntry head; public ListEntry tail; diff --git a/src/java/org/xj3d/impl/core/eventmodel/DefaultHumanoidManager.java b/src/java/org/xj3d/impl/core/eventmodel/DefaultHumanoidManager.java index 3d6548768ab41a2ed2245fab84bba1aa7f5c1570..441cc202d238be8a731459069a674d2aa51bb9c6 100644 --- a/src/java/org/xj3d/impl/core/eventmodel/DefaultHumanoidManager.java +++ b/src/java/org/xj3d/impl/core/eventmodel/DefaultHumanoidManager.java @@ -114,7 +114,7 @@ public class DefaultHumanoidManager implements NodeManager { @Override public ComponentInfo[] getSupportedComponents() { return new ComponentInfo[] { - new ComponentInfo("H-Anim", 1) + new ComponentInfo("H-Anim", 1) // TODO HAnim in X3Dv4 }; } diff --git a/src/java/org/xj3d/ui/construct/Construct.java b/src/java/org/xj3d/ui/construct/Construct.java index ae2332b3f31716efa85be3e694f118f2f0cf3ead..9b0e2905a31fa2eb52e5f30bd20b57bc0e6831cf 100644 --- a/src/java/org/xj3d/ui/construct/Construct.java +++ b/src/java/org/xj3d/ui/construct/Construct.java @@ -277,7 +277,7 @@ public abstract class Construct implements ConstructBuilder { /** The manager for network handling */ protected NetworkManager networkManager; - /** The manager for H-Anim handling */ + /** The manager for H-Anim handling */ // TODO HAnim in X3Dv4 protected NodeManager hanimManager; /** The manager for physics handling */