package Savage.ShipsMilitary.DD963SpruanceUnitedStates;

import org.web3d.x3d.jsail.Core.*;
import org.web3d.x3d.jsail.EnvironmentalEffects.*;
import org.web3d.x3d.jsail.fields.*;
import org.web3d.x3d.jsail.Geometry3D.*;
import org.web3d.x3d.jsail.Grouping.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.Shape.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Complete Spruance Class Destroyer. </p>
 <p> Related links: Catalog page <a href="../../../../ShipsMilitary/DD963SpruanceUnitedStates/DD963SpruanceIndex.html" target="_blank">DD963Spruance</a>,  source <a href="../../../../ShipsMilitary/DD963SpruanceUnitedStates/DD963Spruance.java">DD963Spruance.java</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html" target="_blank">X3D Resources</a>, <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html" target="_blank">X3D Scene Authoring Hints</a>, and <a href="https://www.web3d.org/x3d/content/X3dTooltips.html" target="_blank">X3D Tooltips</a>. </p>
	<table style="color:black; border:0px solid; border-spacing:10px 0px;">
        <caption>Scene Meta Information</caption>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center; padding:10px 0px;"><i>meta tags</i></td>
			<td style="text-align:left;   padding:10px 0px;">&nbsp; Document Metadata </td>
		</tr>

		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> title </i> </td>
			<td> <a href="../../../../ShipsMilitary/DD963SpruanceUnitedStates/DD963Spruance.x3d">DD963Spruance.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Complete Spruance Class Destroyer </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> LT Josh Hansen </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 17 September 2001 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 7 April 2024 </td>
		</tr>
		<tr style="color:burntorange">
			<td style="text-align:right; vertical-align: text-top;"> <i> warning </i> </td>
			<td> multiple broken url addresses need fixing </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> identifier </i> </td>
			<td> <a href="https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/DD963Spruance.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/DD963Spruance.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.fas.org/man/dod-101/sys/ship/dd-963.htm" target="_blank">https://www.fas.org/man/dod-101/sys/ship/dd-963.htm</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://www.inetworld.net/txo/evolution.htm" target="_blank">http://www.inetworld.net/txo/evolution.htm</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="https://www.fas.org/man/dod-101/sys/ship/dd-963_i.htm" target="_blank">https://www.fas.org/man/dod-101/sys/ship/dd-963_i.htm</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit 3.2, <a href="https://www.web3d.org/x3d/tools/X3D-Edit" target="_blank">https://www.web3d.org/x3d/tools/X3D-Edit</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> license </i> </td>
			<td> <a href="../../../../ShipsMilitary/DD963SpruanceUnitedStates/../../license.html">../../license.html</a> </td>
		</tr>
		<tr style="background-color:silver; border-color:silver;">
			<td style="text-align:center;" colspan="2">  &nbsp; </td>
		</tr>
	</table>

	<p>
		This program uses the
		<a href="https://www.web3d.org/specifications/java/X3DJSAIL.html" target="_blank">X3D Java Scene Access Interface Library (X3DJSAIL)</a>.
		It has been produced using the 
		<a href="https://www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">X3dToJava.xslt</a>
		stylesheet
	       (<a href="https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/X3dToJava.xslt" target="_blank">version control</a>)
                which is used to create Java source code from an original <code>.x3d</code> model.
	</p>

	* @author LT Josh Hansen
 */

public class DD963Spruance
{
	/** Default constructor to create this object. */
	public DD963Spruance ()
	{
	  initialize();
	}

	/** Create and initialize the X3D model for this object. */
	public final void initialize()
	{
            try { // catch-all
  x3dModel = new X3D().setProfile(X3D.PROFILE_IMMERSIVE).setVersion(X3D.VERSION_3_0)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("DD963Spruance.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Complete Spruance Class Destroyer"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("LT Josh Hansen"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("17 September 2001"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("7 April 2024"))
    .addMeta(new meta().setName(meta.NAME_WARNING    ).setContent("multiple broken url addresses need fixing"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/DD963Spruance.x3d"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.fas.org/man/dod-101/sys/ship/dd-963.htm"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://www.inetworld.net/txo/evolution.htm"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("https://www.fas.org/man/dod-101/sys/ship/dd-963_i.htm"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit 3.2, https://www.web3d.org/x3d/tools/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new WorldInfo().setTitle("DD963Spruance.x3d"))
    .addChild(new Viewpoint().setDescription("DD963 Spruance").setOrientation(0.0,1.0,0.0,-1.78).setPosition(-120.0,0.0,20.0))
    .addChild(new Viewpoint().setDescription("Aft").setOrientation(0.0,1.0,0.0,3.14).setPosition(0.0,0.0,-75.0))
    .addChild(new Viewpoint().setDescription("Forward").setPosition(0.0,0.0,160.0))
    .addChild(new Viewpoint().setDescription("Above").setOrientation(1.0,0.0,0.0,-1.57).setPosition(0.0,175.0,50.0))
    .addChild(new Viewpoint().setDescription("Starboard Quarter").setOrientation(0.0,1.0,0.0,3.89).setPosition(-50.0,0.0,-50.0))
    .addChild(new Viewpoint().setDescription("Port Quarter").setOrientation(0.0,1.0,0.0,-3.89).setPosition(50.0,0.0,-50.0))
    .addChild(new Viewpoint().setDescription("Bridge").setOrientation(0.0,1.0,0.0,3.14).setPosition(0.0,7.0,80.0))
    .addChild(new Transform().setScale(1.0,1.0,.82)
      .addChild(new Group("DD963_Hull")
        .addChild(new Transform().setRotation(0.0,0.0,1.0,3.14).setScale(1.0,1.25,1.0).setTranslation(.1,0.0,20.0)
          .addChild(new Shape()
            .setGeometry(new Extrusion().setCreaseAngle(.9).setCrossSection(new MFVec2f(new double[] {0.0,0.0,8.5,0.0,8.5,-5.0,7.5,-8.0,5.7,-10.0,-5.7,-10.0,-7.5,-8.0,-8.5,-5.0,-8.5,0.0,0.0,0.0})).setSpine(new MFVec3f(new double[] {0.0,5.0,25.0,0.0,5.0,50.0,0.0,5.0,75.0,0.0,5.0,90.0})))
            .setAppearance(new Appearance()
              .setMaterial(new Material("Haze_Grey").setDiffuseColor(.62,.639,.612)))))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14).setScale(1.0,1.25,1.0).setTranslation(.1,-12.5,100.0)
          .addChild(new Shape()
            .setGeometry(new Extrusion().setCreaseAngle(.9).setCrossSection(new MFVec2f(new double[] {0.0,0.0,8.5,0.0,8.5,-5.0,7.5,-8.0,5.7,-10.0,-5.7,-10.0,-7.5,-8.0,-8.5,-5.0,-8.5,0.0,0.0,0.0})).setScale(new MFVec2f(new double[] {1.0,1.0,.80,1.0,.62,1.0,.48,1.0,.30,1.0,.15,1.0})).setSpine(new MFVec3f(new double[] {0.0,5.0,-10.0,0.0,5.0,-20.0,0.0,5.0,-30.0,0.0,5.0,-40.0,0.0,5.0,-50.0,0.0,5.0,-60.0})))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setUSE("Haze_Grey")))))
        .addChild(new Transform().setScale(1.0,1.25,1.0).setTranslation(0.0,-2.5,100.0)
          .addChild(new Transform().setRotation(1.0,0.0,0.0,3.14).setTranslation(0.0,-.25,0.0)
            .addChild(new Shape()
              .setGeometry(new Extrusion().setCreaseAngle(.9).setCrossSection(new MFVec2f(new double[] {0.0,0.0,8.5,0.0,8.5,-5.0,-8.5,-5.0,-8.5,0.0,0.0,0.0})).setScale(new MFVec2f(new double[] {1.0,0.01,0.8,0.1,0.62,0.2,0.45,0.27,0.3,0.37,0.15,0.5,0.06,0.55,0.01,0.6})).setSpine(new MFVec3f(new double[] {0.0,5.0,-10.0,0.0,5.0,-20.0,0.0,5.0,-30.0,0.0,5.0,-40.0,0.0,5.0,-50.0,0.0,5.0,-60.0,0.0,5.0,-63.0,0.0,5.0,-66.0})))
              .setAppearance(new Appearance()
                .setMaterial(new Material().setUSE("Haze_Grey"))))))
        .addChild(new Transform().setScale(1.0,1.25,1.0).setTranslation(0.0,-8.85,160.0)
          .addChild(new Transform().setRotation(0.0,1.0,0.0,3.14)
            .addChild(new Shape()
              .setGeometry(new Extrusion().setCreaseAngle(.9).setCrossSection(new MFVec2f(new double[] {0.0,0.0,8.5,0.0,8.5,-5.0,7.5,-8.0,5.7,-10.0,-5.7,-10.0,-7.5,-8.0,-8.5,-5.0,-8.5,0.0,0.0,0.0})).setScale(new MFVec2f(new double[] {0.15,1.0,0.10,0.6,0.08,0.4,0.06,0.3,0.04,0.2,0.03,0.1,0.01,0.01})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,-2.0,0.0,0.0,-3.0,0.0,0.0,-4.0,0.0,0.0,-5.0,0.0,0.0,-6.0})))
              .setAppearance(new Appearance()
                .setMaterial(new Material().setUSE("Haze_Grey")))))
          .addChild(new Transform().setTranslation(0.0,-10.0,-2.5)
            .addChild(new Shape()
              .setGeometry(new Sphere().setRadius(3.5))
              .setAppearance(new Appearance()
                .setMaterial(new Material().setDiffuseColor(.1,.1,.1))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,-.78).setTranslation(0.0,1.,-1.)
              .addChild(new Shape()
                .setGeometry(new Cylinder().setHeight(2.5).setRadius(3.3))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(.1,.1,.1)))))
            .addChild(new Transform().setRotation(1.0,0.0,0.0,-.78).setTranslation(0.0,3.6,-3.6)
              .addChild(new Shape()
                .setGeometry(new Cone().setBottomRadius(3.3).setHeight(5))
                .setAppearance(new Appearance()
                  .setMaterial(new Material().setDiffuseColor(.1,.1,.1)))))))
        .addChild(new Transform().setRotation(0.0,0.0,1.0,3.14).setScale(1.0,1.25,1.0).setTranslation(0.0,-12.5,-55.0)
          .addChild(new Transform().setRotation(1.0,0.0,0.0,.05)
            .addChild(new Shape()
              .setGeometry(new Extrusion().setCreaseAngle(.9).setCrossSection(new MFVec2f(new double[] {8.5,-5.0,7.5,-8.0,5.7,-10.0,-5.7,-10.0,-7.5,-8.0,-8.5,-5.0})).setScale(new MFVec2f(new double[] {1.0,.2,1.0,.4,1.0,.6,1.0,.8,1.0,1.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,20.0,0.0,0.0,40.0,0.0,0.0,60.0,0.0,0.0,80.0,0.0,0.0,100.0})))
              .setAppearance(new Appearance()
                .setMaterial(new Material().setUSE("Haze_Grey"))))))
        .addChild(new Transform().setScale(1.0,1.25,1.0).setTranslation(0.0,0.0,65.0)
          .addChild(new Shape()
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,8.5,0.0,8.5,-5.0,-8.5,-5.0,-8.5,0.0,0.0,0.0})).setSpine(new MFVec3f(new double[] {0.0,-5.0,-20.0,0.0,-5.0,-40.0,0.0,-5.0,-60.0,0.0,-5.0,-75.0})))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setUSE("Haze_Grey")))))
        .addChild(new Transform().setScale(1.0,1.25,1.0).setTranslation(0.0,0.0,45.0)
          .addChild(new Shape()
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {8.5,-2.5,8.5,-5.0,-8.5,-5.0,-8.5,-2.5,8.5,-2.5})).setSpine(new MFVec3f(new double[] {0.0,-5.0,-20.0,0.0,-5.0,-40.0,0.0,-5.0,-60.0,0.0,-5.0,-80.0})))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setUSE("Haze_Grey"))))))
      .addChild(new Transform("Forward_5in").setRotation(0.0,1.0,0.0,-1.57).setScale(.8,.8,.8).setTranslation(-2.0,-3.75,130.0)
        .addChild(new Inline("FiveInchGun").setUrl(new String[] {"FiveInchGun.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/FiveInchGun.wrl","FiveInchGun.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/FiveInchGun.x3d"})))
      .addChild(new Transform("AFT_5in").setRotation(0.0,1.0,0.0,1.57).setScale(.8,.8,.8).setTranslation(2.0,-7.0,-22.0)
        .addChild(new Inline().setUSE("FiveInchGun")))
      .addChild(new Transform("Props").setRotation(0.0,1.0,0.0,3.14).setScale(1.5,1.5,1.5).setTranslation(-2.5,-18.0,-28.0)
        .addChild(new Transform().setRotation(1.0,0.0,0.0,.17)
          .addChild(new Inline().setUrl(new String[] {"../DDGArleighBurkeUnitedStates/Propellers.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary//DDGArleighBurkeUnitedStates/Propellers.wrl","../DDGArleighBurkeUnitedStates/Propellers.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary//DDGArleighBurkeUnitedStates/Propellers.x3d"}))))
      .addChild(new Transform("Bridge").setRotation(0.0,1.0,0.0,3.14).setScale(1.1,1.0,1.2).setTranslation(0.0,-6.7,108.0)
        .addChild(new Inline().setUrl(new String[] {"Bridge.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/Bridge.wrl","Bridge.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/Bridge.x3d"})))
      .addChild(new Transform("VLS").setRotation(1.0,0.0,0.0,3.14).setScale(1.5,1.5,1.5).setTranslation(0.0,-2.25,117.0)
        .addChild(new Inline().setUrl(new String[] {"VerticalLaunchSystem.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/VerticalLaunchSystem.wrl","VerticalLaunchSystem.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/VerticalLaunchSystem.x3d"})))
      .addChild(new Transform("Sea_Sparrow").setRotation(0.0,1.0,0.0,3.14).setScale(1.5,1.5,1.5).setTranslation(0.0,-5.3,0.0)
        .addChild(new Inline().setUrl(new String[] {"SeaSparrowBox.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/SeaSparrowBox.wrl","SeaSparrowBox.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/SeaSparrowBox.x3d"})))
      .addChild(new Transform("Helo_Deck").setRotation(0.0,1.0,0.0,3.14).setScale(1.2,1.5,1.50).setTranslation(0.0,-4.25,2.5)
        .addChild(new Inline().setUrl(new String[] {"HeloDeck.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/HeloDeck.wrl","HeloDeck.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/HeloDeck.x3d"})))
      .addChild(new Transform("Helo_Hanger").setScale(1.2,1.5,2.0).setTranslation(0.0,-4.25,55.0)
        .addChild(new Inline().setUrl(new String[] {"HeloHanger.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963-SpruanceHeloHanger-UnitedStates/HeloHanger.wrl","HeloHanger.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/HeloHanger.x3d"}))
        .addChild(new Transform().setTranslation(-5.25,11.0,-6.65)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(4.5,3.0,3.25))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.6,.6,.6)))))
        .addChild(new Transform().setTranslation(3.0,11.0,-11.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(3.0,3.0,5.0))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.6,.6,.6))))
          .addChild(new Transform().setTranslation(1.1,2.5,0.0)
            .addChild(new Shape()
              .setGeometry(new Box().setSize(5.0,2.0,5.0))
              .setAppearance(new Appearance()
                .setMaterial(new Material().setDiffuseColor(.6,.6,.6))))))
        .addChild(new Transform().setTranslation(-5.8,10.5,-13.75)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(3.0,2.0,2.0))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.6,.6,.6))))
          .addChild(new Transform().setScale(.75,.75,.75).setTranslation(0.0,1.0,0.0)
            .addChild(new Inline().setUrl(new String[] {"../DestroyerSovremennyRussia/YBaseRaydome.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DestroyerSovremennyRussia/YBaseRaydome.wrl","../DestroyerSovremennyRussia/YBaseRaydome.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DestroyerSovremennyRussia/YBaseRaydome.x3d"})))))
      .addChild(new Transform("Harpoon_Deck").setScale(1.0,1.5,2.0).setTranslation(0.0,-3.5,47.0)
        .addChild(new Inline().setUrl(new String[] {"HarpoonDeck.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/HarpoonDeck.wrl","HarpoonDeck.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/HarpoonDeck.x3d"}))
        .addChild(new Transform().setTranslation(0.0,7.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(6.0,3.0,2.0))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.6,.6,.6))))))
      .addChild(new Transform("Mid_Ships").setScale(1.0,1.9,2.5).setTranslation(0.0,0.0,80.0)
        .addChild(new Inline().setUrl(new String[] {"MidShips.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/MidShips.wrl","MidShips.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/MidShips.x3d"})))
      .addChild(new Transform("Harpoon_Canisters").setScale(.6,.75,1.0).setTranslation(-5.0,4.0,107.0)
        .addChild(new Inline().setUrl(new String[] {"DD963Harpoon.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/DD963Harpoon.wrl","DD963Harpoon.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/DD963Harpoon.x3d"})))
      .addChild(new Transform("Forward_Stacks").setScale(1.25,1.0,1.5).setTranslation(1.75,14.0,80.0)
        .addChild(new Inline("Stacks").setUrl(new String[] {"Stacks.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/Stacks.wrl","Stacks.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/Stacks.x3d"})))
      .addChild(new Transform("Aft_Stacks").setScale(1.25,1.0,1.25).setTranslation(-4.6,13.5,34.0)
        .addChild(new Inline().setUSE("Stacks")))
      .addChild(new Transform("GIG").setRotation(0.0,1.0,0.0,-1.57).setTranslation(6.0,2.0,51.0)
        .addChild(new Inline().setUrl(new String[] {"../DestroyerSovremennyRussia/CaptainsBarge.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DestroyerSovremennyRussia/CaptainsBarge.wrl","../DestroyerSovremennyRussia/CaptainsBarge.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DestroyerSovremennyRussia/CaptainsBarge.x3d"})))
      .addChild(new Transform("Forward_Mast").setScale(1.0,1.25,1.0).setTranslation(0.0,10.5,100.0)
        .addChild(new Inline().setUrl(new String[] {"ForwardMast.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/ForwardMast.wrl","ForwardMast.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/ForwardMast.x3d"})))
      .addChild(new Transform("Aft_Mast").setScale(1.0,1.5,1.0).setTranslation(0.0,5.0,56.0)
        .addChild(new Inline().setUrl(new String[] {"AftMast.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/AftMast.wrl","AftMast.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/AftMast.x3d"})))
      .addChild(new Transform("Chaff_Locker1").setRotation(0.0,1.0,0.0,1.57).setTranslation(2.5,11.75,105.0)
        .addChild(new Shape("Chaff_locker")
          .setGeometry(new Box().setSize(1.5,2.5,2.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.9,.9,.9)))))
      .addChild(new Transform("Chaff_Locker2").setRotation(0.0,1.0,0.0,1.57).setTranslation(-.5,11.75,105.0)
        .addChild(new Shape().setUSE("Chaff_locker")))
      .addChild(new Transform("Chaff_Locker3").setRotation(0.0,1.0,0.0,1.57).setTranslation(-1.5,11.75,69.0)
        .addChild(new Shape().setUSE("Chaff_locker")))
      .addChild(new Transform("Chaff_Locker4").setRotation(0.0,1.0,0.0,1.57).setTranslation(-4.0,11.75,69.0)
        .addChild(new Shape().setUSE("Chaff_locker")))
      .addChild(new Transform("Chaff_Locker5").setTranslation(2.0,11.0,47.0)
        .addChild(new Shape().setUSE("Chaff_locker")))
      .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setScale(1.0,1.5,1.0).setTranslation(-6.0,10.25,80.0)
        .addChild(new Shape()
          .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,10.0,0.0,9.5,-2.5,-2.5,-2.5,-10.0,0.0,0.0,0.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,.25,0.0})))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.6,.6,.6)))))
      .addChild(new Transform("signal_Shack").setTranslation(0.0,12.0,97.0)
        .addChild(new Shape("Signal_Shack")
          .setGeometry(new Box().setSize(4.0,3.0,5.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.6,.6,.6)))))
      .addChild(new Transform().setTranslation(3.0,12.0,89.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(4.0,3.0,6.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.6,.6,.6)))))
      .addChild(new Transform("slq32Ant").setTranslation(-11.0,10.0,35.0)
        .addChild(new Transform()
          .addChild(new Shape()
            .setGeometry(new Box().setSize(4.0,.25,6.0))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.85,.85,.85)))))
        .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(0.0,.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Cylinder().setHeight(1).setRadius(.5))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.85,.85,.85)))))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(1.5,1.0,0.0)
          .addChild(new Shape("SLQ-32_ant")
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,2.0,0.0,2.0,-2.0,1.25,-2.5,-1.25,-2.5,-2.0,-2.0,-2.0,0.0,0.0,0.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,2.5,0.0})))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.85,.85,.85))))))
      .addChild(new Transform("slq32Ant2").setTranslation(8.0,10.0,35.0)
        .addChild(new Transform()
          .addChild(new Shape()
            .setGeometry(new Box().setSize(4.0,.25,6.0))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.85,.85,.85)))))
        .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57).setTranslation(0.0,.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Cylinder().setHeight(1).setRadius(.5))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.85,.85,.85)))))
        .addChild(new Transform().setRotation(0.0,1.0,0.0,1.57).setTranslation(1.5,1.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Extrusion().setCrossSection(new MFVec2f(new double[] {0.0,0.0,2.0,0.0,2.0,-2.0,1.25,-2.5,-1.25,-2.5,-2.0,-2.0,-2.0,0.0,0.0,0.0})).setSpine(new MFVec3f(new double[] {0.0,0.0,0.0,0.0,2.5,0.0})))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.85,.85,.85))))))
      .addChild(new Transform("Whip_ANT1").setTranslation(8.0,-6.0,-10.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(1.0,1.0,1.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.8,.6,.6))))
        .addChild(new Transform().setTranslation(0.0,4.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Cylinder().setHeight(8).setRadius(.1))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.2,.2,.2))))))
      .addChild(new Transform("Whip_ANT2").setTranslation(-8.0,-6.0,-10.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(1.0,1.0,1.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.8,.6,.6))))
        .addChild(new Transform().setTranslation(0.0,4.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Cylinder().setHeight(8).setRadius(.1))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.2,.2,.2))))))
      .addChild(new Transform().setScale(1.5,.75,1.5).setTranslation(6.0,-5.6,-8.0)
        .addChild(new Shape()
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(0.1,0.1,.1)))
          .setGeometry(new Extrusion().setCreaseAngle(0.785).setCrossSection(new MFVec2f(new double[] {1.00,0.00,0.92,-0.38,0.71,-0.71,0.38,-0.92,0.00,-1.00,-0.38,-0.92,-0.71,-0.71,-0.92,-0.38,-1.00,-0.00,-0.92,0.38,-0.71,0.71,-0.38,0.92,0.00,1.00,0.38,0.92,0.71,0.71,0.92,0.38,1.00,0.00})).setEndCap(false).setScale(new MFVec2f(new double[] {1.0,1.0,1.0,1.0,1.2,1.2})).setSolid(false).setSpine(new MFVec3f(new double[] {0.0,-1.0,0.0,0.0,1.0,0.0,0.0,1.5,0.0})))))
      .addChild(new Transform("Goal_Post1").setTranslation(6.0,-9.0,-34.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(3.0,1.0,1.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.6,.6,.6))))
        .addChild(new Transform().setTranslation(1.45,2.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(.25,5.0,.25))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.6,.6,.6)))))
        .addChild(new Transform().setTranslation(-1.45,2.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(.25,5.0,.25))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.6,.6,.6))))))
      .addChild(new Transform("Goal_Post2").setRotation(0.0,1.0,0.0,1.0).setTranslation(-4.5,6.0,60.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(3.0,1.0,1.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.8,.8,.8))))
        .addChild(new Transform().setTranslation(1.45,2.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(.25,5.0,.25))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.8,.8,.8)))))
        .addChild(new Transform().setTranslation(-1.45,2.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(.25,5.0,.25))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.8,.8,.8))))))
      .addChild(new Transform("Goal_Post3").setRotation(0.0,1.0,0.0,-1.0).setTranslation(4.5,6.0,60.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(3.0,1.0,1.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.8,.8,.8))))
        .addChild(new Transform().setTranslation(1.45,2.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(.25,5.0,.25))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.8,.8,.8)))))
        .addChild(new Transform().setTranslation(-1.45,2.5,0.0)
          .addChild(new Shape()
            .setGeometry(new Box().setSize(.25,5.0,.25))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.8,.8,.8))))))
      .addChild(new Transform("Whip_ANT3").setTranslation(3.0,11.0,68.0)
        .addChild(new Shape()
          .setGeometry(new Box().setSize(1.0,1.0,1.0))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.8,.6,.6))))
        .addChild(new Transform().setTranslation(0.0,6.0,0.0)
          .addChild(new Shape()
            .setGeometry(new Cylinder().setHeight(12).setRadius(.1))
            .setAppearance(new Appearance()
              .setMaterial(new Material().setDiffuseColor(.2,.2,.2))))))
      .addChild(new Transform("Ant_For_Mast").setTranslation(0.0,24.5,103.0)
        .addChild(new Shape()
          .setGeometry(new Sphere().setRadius(1.5))
          .setAppearance(new Appearance()
            .setMaterial(new Material().setDiffuseColor(.95,.95,.95)))))
      .addChild(new Transform("SPS_60").setRotation(0.0,1.0,0.0,-1.57).setTranslation(0.0,29.0,100.0)
        .addChild(new Inline().setUrl(new String[] {"../DestroyerSovremennyRussia/MR114Radar.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DestroyerSovremennyRussia/MR114Radar.wrl","../DestroyerSovremennyRussia/MR114Radar.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DestroyerSovremennyRussia/MR114Radar.x3d"})))
      .addChild(new Transform("Hawk").setTranslation(0.0,38.5,97.0)
        .addChild(new Inline().setUrl(new String[] {"../FrigateGreece/RadomeFireControlWm25.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/FrigateGreece/RadomeFireControlWm25.wrl","../FrigateGreece/RadomeFireControlWm25.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/FrigateGreece/RadomeFireControlWm25.x3d"})))
      .addChild(new Transform("Chaff_Tubes1").setRotation(0.0,1.0,0.0,-.95).setTranslation(-7.0,11.5,75.0)
        .addChild(new Inline("ChaffTubes").setUrl(new String[] {"ChaffTubes.wrl","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/ChaffTubes.wrl","ChaffTubes.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/DD963SpruanceUnitedStates/ChaffTubes.x3d"})))
      .addChild(new Transform("Chaff_Tubes2").setRotation(0.0,1.0,0.0,-2.15).setTranslation(-7.0,11.5,72.0)
        .addChild(new Inline().setUSE("ChaffTubes")))
      .addChild(new Transform("Chaff_Tubes3").setRotation(0.0,1.0,0.0,1.05).setTranslation(4.75,11.5,107.0)
        .addChild(new Inline().setUSE("ChaffTubes")))
      .addChild(new Transform("Chaff_Tubes4").setRotation(0.0,1.0,0.0,1.15).setTranslation(4.75,11.5,105.0)
        .addChild(new Inline().setUSE("ChaffTubes")))
      .addChild(new Transform("Chaff_Tubes5").setRotation(0.0,1.0,0.0,-2.05).setTranslation(-7.0,15.5,41.0)
        .addChild(new Inline().setUSE("ChaffTubes")))
      .addChild(new Transform("Chaff_Tubes6").setRotation(0.0,1.0,0.0,-1.85).setTranslation(-7.0,15.5,42.5)
        .addChild(new Inline().setUSE("ChaffTubes"))))
    .addChild(new Background().setGroundAngle(new double[] {1.309,1.570796}).setGroundColor(new MFColor(new double[] {1.0,1.0,1.0,0.1,0.1,0.5,0.4,0.25,0.2,0.1,0.6,0.1})).setSkyAngle(new double[] {1.309,1.571}).setSkyColor(new MFColor(new double[] {0.0,0.2,0.7,0.0,0.5,1.0,1.0,1.0,1.0})).setBackUrl(new String[] {"mountns.png","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/mountns.png"}).setFrontUrl(new String[] {"mountns.png","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/mountns.png"}).setLeftUrl(new String[] {"mountns.png","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/mountns.png"}).setRightUrl(new String[] {"mountns.png","https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/mountns.png"})));
            }
            catch (Exception ex)
            {       
                System.err.println ("*** Further hints on X3DJSAIL errors and exceptions at");
                System.err.println ("*** https://www.web3d.org/specifications/java/X3DJSAIL.html");
                throw (ex);
            }
	}
	// end of initialize() method

	/** The initialized model object, created within initialize() method. */
	private X3D x3dModel;

	/** 
	 * Provide a 
	 * <a href="https://dzone.com/articles/java-copy-shallow-vs-deep-in-which-you-will-swim" target="_blank">shallow copy</a>
	 * of the X3D model.
	 * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html">X3D</a>
	 * @return DD963Spruance model
	 */
	public X3D getX3dModel()
	{	  
		return x3dModel;
	}
	   
    /** 
     * Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
     * @param args array of input parameters, provided as arguments
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#handleArguments-java.lang.String:A-">X3D.handleArguments(args)</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3D.html#validationReport--">X3D.validationReport()</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html">CommandLine</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/CommandLine.html#USAGE">CommandLine.USAGE</a>
     * @see <a href="https://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/ConfigurationProperties.html">ConfigurationProperties</a>
     */
    public static void main(String args[])
    {
        System.out.println("Build this X3D model, showing validation diagnostics...");
        X3D thisExampleX3dModel = new DD963Spruance().getX3dModel();
//      System.out.println("X3D model construction complete.");
	
        // next handle command line arguments
        boolean hasArguments = (args != null) && (args.length > 0);
        boolean validate = true; // default
        boolean argumentsLoadNewModel = false;
        String  fileName = new String();

        if (args != null)
        {
                for (String arg : args)
                {
                        if (arg.toLowerCase().startsWith("-v") || arg.toLowerCase().contains("validate"))
                        {
                                validate = true; // making sure
                        }
                        if (arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3D) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_CLASSICVRML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_X3DB) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_VRML97) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_EXI) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_GZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_ZIP) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_HTML) ||
                                arg.toLowerCase().endsWith(X3D.FILE_EXTENSION_XHTML))
                        {
                                argumentsLoadNewModel = true;
                                fileName = arg;
                        }
                }
        }
        if      (argumentsLoadNewModel)
                System.out.println("WARNING: \"Savage.ShipsMilitary.DD963SpruanceUnitedStates.DD963Spruance\" model invocation is attempting to load file \"" + fileName + "\" instead of simply validating itself... file loading ignored.");
        else if (hasArguments) // if no arguments provided, this method produces usage warning
                thisExampleX3dModel.handleArguments(args);
	
        if (validate)
        {
            //  System.out.println("--- TODO fix duplicated outputs ---"); // omit when duplicated outputs problem is solved/refactored
		String validationResults = thisExampleX3dModel.validationReport();
            //  System.out.println("-----------------------------------"); // omit when duplicated outputs problem is solved/refactored
                System.out.print("Savage.ShipsMilitary.DD963SpruanceUnitedStates.DD963Spruance self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

                // experimental: test X3DJSAIL output files
                // ShipsMilitary/DD963SpruanceUnitedStates/DD963Spruance_JavaExport.* file validation is checked when building X3D Example Archives
                String filenameX3D  = "ShipsMilitary/DD963SpruanceUnitedStates/DD963Spruance_JavaExport.x3d"; 
                String filenameX3DV = "ShipsMilitary/DD963SpruanceUnitedStates/DD963Spruance_JavaExport.x3dv"; 
                String filenameJSON = "ShipsMilitary/DD963SpruanceUnitedStates/DD963Spruance_JavaExport.json";
                thisExampleX3dModel.toFileX3D        (filenameX3D);
                thisExampleX3dModel.toFileClassicVRML(filenameX3DV);
// TODO         thisExampleX3dModel.toFileJSON       (filenameJSON);
        }
    }
}
