package Savage.ShipsMilitary.PatrolCraftNavalAcademyBrazil;

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.Interpolation.*;
import org.web3d.x3d.jsail.Lighting.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.PointingDeviceSensor.*;
import org.web3d.x3d.jsail.Scripting.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Sound.*;
import org.web3d.x3d.jsail.Time.*;

// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
 * <p> Brazilian Naval Academy Training Ship 50cal firing against other Ship during night. </p>
 <p> Related links: Catalog page <a href="../../../../ShipsMilitary/PatrolCraft-NavalAcademy-Brazil/FiftyCaliberGunFiringIndex.html" target="_blank">FiftyCaliberGunFiring</a>,  source <a href="../../../../ShipsMilitary/PatrolCraft-NavalAcademy-Brazil/FiftyCaliberFiring0.java">FiftyCaliberFiring0.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/PatrolCraft-NavalAcademy-Brazil/FiftyCaliberGunFiring.x3d">FiftyCaliberGunFiring.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> description </i> </td>
			<td> Brazilian Naval Academy Training Ship 50cal firing against other Ship during night </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> creator </i> </td>
			<td> Claudio Coreixas </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> created </i> </td>
			<td> 20 October 2009 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> modified </i> </td>
			<td> 20 October 2019 </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> reference </i> </td>
			<td> <a href="http://www.en.mar.mil.br" target="_blank">http://www.en.mar.mil.br</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> subject </i> </td>
			<td> ships </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> info </i> </td>
			<td> Headlight is off, lighting is controlled when shooting </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/PatrolCraft-NavalAcademy-Brazil/FiftyCaliberGunFiring.x3d" target="_blank">https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraft-NavalAcademy-Brazil/FiftyCaliberGunFiring.x3d</a> </td>
		</tr>
		<tr>
			<td style="text-align:right; vertical-align: text-top;"> <i> generator </i> </td>
			<td> X3D-Edit, <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/PatrolCraft-NavalAcademy-Brazil/../../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 Claudio Coreixas
 */

public class FiftyCaliberFiring0
{
	/** Default constructor to create this object. */
	public FiftyCaliberFiring0 ()
	{
	  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_2)
  .setHead(new head()
    .addMeta(new meta().setName(meta.NAME_TITLE      ).setContent("FiftyCaliberGunFiring.x3d"))
    .addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Brazilian Naval Academy Training Ship 50cal firing against other Ship during night"))
    .addMeta(new meta().setName(meta.NAME_CREATOR    ).setContent("Claudio Coreixas"))
    .addMeta(new meta().setName(meta.NAME_CREATED    ).setContent("20 October 2009"))
    .addMeta(new meta().setName(meta.NAME_MODIFIED   ).setContent("20 October 2019"))
    .addMeta(new meta().setName(meta.NAME_REFERENCE  ).setContent("http://www.en.mar.mil.br"))
    .addMeta(new meta().setName(meta.NAME_SUBJECT    ).setContent("ships"))
    .addMeta(new meta().setName(meta.NAME_INFO       ).setContent("Headlight is off, lighting is controlled when shooting"))
    .addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraft-NavalAcademy-Brazil/FiftyCaliberGunFiring.x3d"))
    .addMeta(new meta().setName(meta.NAME_GENERATOR  ).setContent("X3D-Edit, https://www.web3d.org/x3d/tools/X3D-Edit"))
    .addMeta(new meta().setName(meta.NAME_LICENSE    ).setContent("../../license.html")))
  .setScene(new Scene()
    .addChild(new Sound().setMaxBack(100).setMaxFront(100)
      .setSource(new AudioClip("boat").setDescription("licensed from http://www.1soundfx.com/infopage.php#license").setLoop(true).setUrl(new String[] {"boatSoundedit.wav","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraft-NavalAcademy-Brazil/boatSoundedit.wav"})))
    .addChild(new NavigationInfo().setHeadlight(false).setType(new String[] {"EXAMINE"}))
    .addChild(new WorldInfo().setInfo(new String[] {"an Butakov MOB scene"}).setTitle("Butakov"))
    .addChild(new Background().setSkyAngle(new double[] {0.7,0.0}).setSkyColor(new MFColor(new double[] {0.478431,0.160784,1.0,0.701961,0.776471,1.0,0.380392,0.384314,1.0})))
    .addChild(new Viewpoint().setDescription("top").setOrientation(1.0,0.0,0.0,-1.57).setPosition(0.0,20.0,0.0))
    .addChild(new TimeSensor("MovementTimer").setCycleInterval(60).setLoop(true))
    .addChild(new TimeSensor("spintTimer").setCycleInterval(4).setLoop(true))
    .addChild(new PositionInterpolator("MovetheShip").setKey(new double[] {0.0,0.0625,0.125,0.1875,0.25,0.3125,0.375,0.4375,0.5,0.5625,0.625,0.6875,0.75,0.8125,0.875,0.9375,1.0}).setKeyValue(new MFVec3f(new double[] {10.00,0.00,0.00,9.24,0.00,3.82,7.07,0.00,7.07,3.83,0.00,9.24,0.01,0.00,10.00,-3.82,0.00,9.24,-7.06,0.00,7.08,-9.23,0.00,3.84,-10.00,0.00,0.02,-9.25,0.00,-3.81,-7.09,0.00,-7.06,-3.85,0.00,-9.23,-0.02,0.00,-10.00,3.80,0.00,-9.25,7.05,0.00,-7.09,9.23,0.00,-3.85,10.00,0.00,0.00})))
    .addChild(new ROUTE().setFromNode("MovementTimer").setFromField("fraction_changed").setToNode("MovetheShip").setToField("set_fraction"))
    .addChild(new OrientationInterpolator("SpinTheShip").setKey(new double[] {0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}).setKeyValue(new MFRotation(new double[] {1.0,0.0,0.0,0.0,1.0,0.0,0.0,-0.2,1.0,0.0,0.0,-0.1,1.0,0.0,0.0,-0.05,1.0,0.0,0.0,-0.0,1.0,0.0,0.0,-0.06,1.0,0.0,0.0,-0.07,1.0,0.0,0.0,-0.1,1.0,0.0,0.0,-0.12,1.0,0.0,0.0,-0.18,1.0,0.0,0.0,0.0})))
    .addChild(new ROUTE().setFromNode("MovementTimer").setFromField("fraction_changed").setToNode("SpinTheShip").setToField("set_fraction"))
    .addChild(new OrientationInterpolator("SpinTheShip2").setKey(new double[] {0.0,0.25,0.5,0.75,1.0}).setKeyValue(new MFRotation(new double[] {0.0,1.0,0.0,-1.57,0.0,1.0,0.0,-3.14,0.0,1.0,0.0,-4.71,0.0,1.0,0.0,0.0,0.0,1.0,0.0,-1.57})))
    .addChild(new ROUTE().setFromNode("MovementTimer").setFromField("fraction_changed").setToNode("SpinTheShip2").setToField("set_fraction"))
    .addChild(new OrientationInterpolator("SpinTheShip3").setKey(new double[] {0.0,0.5,1.0}).setKeyValue(new MFRotation(new double[] {0.0,0.0,1.0,-0.05,0.0,0.0,1.0,0.05,0.0,0.0,1.0,-0.05})))
    .addChild(new ROUTE().setFromNode("spintTimer").setFromField("fraction_changed").setToNode("SpinTheShip3").setToField("set_fraction"))
    .addChild(new Transform("Ship3")
      .addChild(new ROUTE().setFromNode("MovetheShip").setFromField("value_changed").setToNode("Ship3").setToField("translation"))
      .addChild(new Viewpoint().setDescription("top Moving").setOrientation(1.0,0.0,0.0,-1.57079).setPosition(0.0,3.0,0.0))
      .addChild(new Transform("Ship2")
        .addChild(new ROUTE().setFromNode("SpinTheShip2").setFromField("value_changed").setToNode("Ship2").setToField("rotation"))
        .addChild(new Viewpoint().setDescription("Stern").setOrientation(0.0,1.0,0.0,-1.57).setPosition(-3.0,0.5,0.0))
        .addChild(new Viewpoint().setDescription("bow").setOrientation(0.0,1.0,0.0,1.57).setPosition(3.0,0.5,0.0))
        .addChild(new Viewpoint().setDescription("bowClose").setOrientation(0.0,1.0,0.0,1.57).setPosition(1.0,0.3,0.0))
        .addChild(new Viewpoint().setDescription("stb Bow").setOrientation(-0.3162,0.9487,0.0,0.8117).setPosition(1.0,0.5,1.0))
        .addChild(new Viewpoint().setDescription("stb Bridge Outside").setOrientation(0.0,0.6247,0.0,0.8179).setPosition(0.5,0.2,0.6))
        .addChild(new Viewpoint().setDescription("port Bow").setOrientation(0.0,0.9487,0.0,2.3299).setPosition(1.5,0.5,-1.5))
        .addChild(new Viewpoint().setDescription("stb Quarter").setOrientation(-0.3162,-0.9487,0.0,0.8117).setPosition(-1.5,0.25,1.5))
        .addChild(new Viewpoint().setDescription("port Quarter").setOrientation(0.0,-0.9487,0.0,2.3299).setPosition(-1.5,0.25,-1.5))
        .addChild(new Transform("Ship")
          .addChild(new ROUTE().setFromNode("SpinTheShip").setFromField("value_changed").setToNode("Ship").setToField("rotation"))
          .addChild(new Viewpoint().setDescription("StbRudder").setOrientation(0.0,1.0,0.0,-1.57).setPosition(-0.9,-0.1,0.14))
          .addChild(new Transform("Ship4")
            .addChild(new Viewpoint().setDescription(".50cal").setOrientation(0.0,1.0,0.0,1.57).setPosition(-0.05,0.28,0.0))
            .addChild(new Viewpoint().setDescription("Bridge").setFieldOfView(0.43).setOrientation(0.0,-0.9935,0.0,1.57079).setPosition(0.14,0.27,0.0))
            .addChild(new Viewpoint().setDescription("Radar").setFieldOfView(0.45).setOrientation(-0.1888,-0.982,0.0,1.57079).setPosition(-0.6,0.5,0.0))
            .addChild(new ROUTE().setFromNode("SpinTheShip3").setFromField("value_changed").setToNode("Ship4").setToField("rotation"))
            .addChild(new Transform().setTranslation(-0.23,2.5,0.0)
              .addChild(new SpotLight("gunLight").setBeamWidth(0.05).setColor(0.721569,0.066667,0.0).setCutOffAngle(0.03).setDirection(0.0,-1.0,0.0).setRadius(5)))
            .addChild(new Transform().setScale(0.15,0.15,0.15)
              .addChild(new Transform().setTranslation(-1.8,2.5,0.0)
                .addChild(new Inline("CoordinateAxes").setUrl(new String[] {"CoordinateAxes.x3d","../../Basic/course/CoordinateAxes.x3d","../../../Savage/Tools/Authoring/CoordinateAxes.x3d","https://www.web3d.org/x3d/content/examples/Basic/course/CoordinateAxes.x3d","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.x3d","CoordinateAxes.wrl","../../Basic/course/CoordinateAxes.wrl","../../../Savage/Tools/Authoring/CoordinateAxes.wrl","https://www.web3d.org/x3d/content/examples/Basic/course/CoordinateAxes.wrl","https://www.web3d.org/x3d/content/examples/Savage/Tools/Authoring/CoordinateAxes.wrl"}))
                .addChild(new SpotLight("gunLight2").setBeamWidth(0.5).setColor(0.721569,0.066667,0.0).setCutOffAngle(0.6).setDirection(0.0,-1.0,0.0).setRadius(3)))
              .addChild(new Transform().setTranslation(-.8,1.33,0.0)
                .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
                  .addChild(new PlaneSensor("dimmerAmplitude").setDescription("click and drag to dimm Light").setMaxPosition(0.0,.1))
                  .addChild(new Transform("dimmerLightGunBox")
                    .addChild(new Shape()
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(1.0,0.0,0.0)))
                      .setGeometry(new Box().setSize(.03,0.03,0.03))))
                  .addChild(new Script("Converter").setSourceCode("""
ecmascript:
                    // Author: Claudio Coreixas
                    // Created: 19 November 2009
                    function SFVec3fY_SFFloat (value) {
                    SFFloat_Yout = 30 * value[1];
                    }
""")
                    .addField(new field().setName("SFVec3fY_SFFloat").setType(field.TYPE_SFVEC3F).setAccessType(field.ACCESSTYPE_INPUTONLY))
                    .addField(new field().setName("SFFloat_Yout").setType(field.TYPE_SFFLOAT).setAccessType(field.ACCESSTYPE_OUTPUTONLY)))
                  .addChild(new ROUTE().setFromNode("dimmerAmplitude").setFromField("translation_changed").setToNode("Converter").setToField("SFVec3fY_SFFloat"))
                  .addChild(new ROUTE().setFromNode("dimmerAmplitude").setFromField("translation_changed").setToNode("dimmerLightGunBox").setToField("translation"))
                  .addChild(new ROUTE().setFromNode("Converter").setFromField("SFFloat_Yout").setToNode("gunLight").setToField("intensity"))))
              .addChild(new Transform().setTranslation(-.65,1.33,0.0)
                .addChild(new Transform().setRotation(1.0,0.0,0.0,1.57)
                  .addChild(new PlaneSensor("dimmerGeneralLightAmplitude").setDescription("click and drag to dimm General Light").setMaxPosition(0.0,.1))
                  .addChild(new Transform("dimmerGeneralLight")
                    .addChild(new Shape()
                      .setAppearance(new Appearance()
                        .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(1.0,0.0,0.0)))
                      .setGeometry(new Box().setSize(.03,0.03,0.03))))))
              .addChild(new Inline().setUrl(new String[] {"U11.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraft-NavalAcademy-Brazil/U11.x3d"})))))))
    .addChild(new Transform().setScale(0.15,0.15,0.15)
      .addChild(new Inline().setUrl(new String[] {"U11.x3d","https://www.web3d.org/x3d/content/examples/Savage/ShipsMilitary/PatrolCraft-NavalAcademy-Brazil/U11.x3d"})))
    .addChild(new Transform().setTranslation(0.0,-5.0,0.0)
      .addChild(new Shape("ocean")
        .setAppearance(new Appearance()
          .setMaterial(new Material().setAmbientIntensity(1).setDiffuseColor(0.0,0.219608,0.419608).setShininess(1).setTransparency(0.16)))
        .setGeometry(new Box().setSize(200.0,10.0,200.0).setSolid(false))))
    .addChild(new PointLight("generalLight").setIntensity(0.05).setLocation(0.0,30.0,-1.0))
    .addChild(new Script("Converter2").setSourceCode("""
ecmascript:
                    // Author: Claudio Coreixas
                    // Created: 19 November 2009
                    function SFVec3fY_SFFloat (value) {
                    SFFloat_Yout = 10 * value[1];
                    }
""")
      .addField(new field().setName("SFVec3fY_SFFloat").setType(field.TYPE_SFVEC3F).setAccessType(field.ACCESSTYPE_INPUTONLY))
      .addField(new field().setName("SFFloat_Yout").setType(field.TYPE_SFFLOAT).setAccessType(field.ACCESSTYPE_OUTPUTONLY)))
    .addChild(new ROUTE().setFromNode("dimmerGeneralLightAmplitude").setFromField("translation_changed").setToNode("Converter2").setToField("SFVec3fY_SFFloat"))
    .addChild(new ROUTE().setFromNode("dimmerGeneralLightAmplitude").setFromField("translation_changed").setToNode("dimmerGeneralLight").setToField("translation"))
    .addChild(new ROUTE().setFromNode("Converter2").setFromField("SFFloat_Yout").setToNode("generalLight").setToField("intensity")));
            }
            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 FiftyCaliberFiring0 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 FiftyCaliberFiring0().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.PatrolCraftNavalAcademyBrazil.FiftyCaliberFiring0\" 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.PatrolCraftNavalAcademyBrazil.FiftyCaliberFiring0 self-validation test confirmation: ");
                if (!validationResults.equals("success"))
                    System.out.println();
                System.out.println(validationResults.trim());

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