package Savage.ShipsMilitary.CarrierSaratogaUnitedStates;
/*
Copyright (c) 1995-2019 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 (http://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.
*/
import java.util.*;
import org.web3d.x3d.jsail.Core.*;
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.Navigation.*;
import org.web3d.x3d.jsail.Rendering.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Sound.*;
import org.web3d.x3d.jsail.Time.*;
// Javadoc annotations follow, see below for source.
/**
*
Simulating the flying of a harrier on USS Saratoga.
Related links: HarrierFlying.java source, HarrierFlying catalog page, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.
This program uses the
X3D Java Scene Access Interface Library (X3DJSAIL).
It has been produced using the
X3dToJava.xslt
stylesheet to create Java source code from an .x3d
model.
* @author Daniel Siew and Chun Hock Sng
*/
public class HarrierFlying
{
/** Default constructor to create this object. */
public HarrierFlying ()
{
initialize();
}
/** Create and initialize the X3D model for this object. */
public final void initialize()
{
x3dModel = new X3DObject().setProfile(X3DObject.PROFILE_IMMERSIVE).setVersion(X3DObject.VERSION_3_0)
.setHead(new headObject()
.addMeta(new metaObject().setName(metaObject.NAME_TITLE ).setContent("HarrierFlying.x3d"))
.addMeta(new metaObject().setName(metaObject.NAME_DESCRIPTION).setContent("Simulating the flying of a harrier on USS Saratoga"))
.addMeta(new metaObject().setName(metaObject.NAME_CREATOR ).setContent("Daniel Siew and Chun Hock Sng"))
.addMeta(new metaObject().setName(metaObject.NAME_CREATED ).setContent("16 February 2001"))
.addMeta(new metaObject().setName(metaObject.NAME_MODIFIED ).setContent("14 January 2014"))
.addMeta(new metaObject().setName(metaObject.NAME_IDENTIFIER ).setContent("https://savage.nps.edu/Savage/ShipsMilitary/Carrier-Saratoga-UnitedStates/HarrierFlying.x3d"))
.addMeta(new metaObject().setName(metaObject.NAME_GENERATOR ).setContent("X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit"))
.addMeta(new metaObject().setName(metaObject.NAME_LICENSE ).setContent("../../license.html")))
.setScene(new SceneObject()
.addChild(new GroupObject("AV8")
.addChild(new TransformObject("Fighter").setScale(0.7f,0.7f,0.7f).setTranslation(147.0f,2.1f,-40.0f)
.addChild(new TransformObject("Fighter1Roll")
.addChild(new TransformObject("Fighter1Pitch")
.addChild(new TransformObject()
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-1.57f)
.addChild(new ShapeObject("Fuselage")
.setGeometry(new IndexedFaceSetObject().setCreaseAngle(1.78f).setSolid(false).setCoordIndex(getIndexedFaceSet_10_10_coordIndex())
.setCoord(new CoordinateObject("BI_COORD").setPoint(getBI_COORD_11_10_point())))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject())))
.addChild(new ShapeObject("LeftWing")
.setGeometry(new IndexedFaceSetObject().setConvex(false).setCreaseAngle(0.78f).setCoordIndex(new int[] {0,1,2,3,4,5,6,7,-1,8,9,10,11,12,13,14,15,-1,0,8,15,7,-1,0,1,9,8,-1,1,2,10,9,-1,2,3,11,10,-1,3,4,12,11,-1,4,5,13,12,-1,5,6,14,13,-1,6,7,15,14})
.setCoord(new CoordinateObject().setPoint(new MFVec3fObject(new float[] {-0.6f,0.6f,-1.6f,-0.6f,0.5f,-1.5f,-0.6f,0.45f,-1.4f,-0.6f,0.4f,-1.2f,-0.6f,0.4f,0.4f,-0.6f,0.34f,0.9f,-0.6f,0.42f,1.4f,-0.6f,0.5f,2.05f,-4.62f,0.08f,1.58f,-4.62f,0.05f,1.62f,-4.62f,0.02f,1.68f,-4.62f,-0.02f,1.75f,-4.62f,-0.02f,1.98f,-4.62f,0.02f,2.18f,-4.62f,0.03f,2.33f,-4.62f,0.05f,2.42f}))))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject())))
.addChild(new TransformObject().setCenter(0.0f,1.0f,0.0f).setTranslation(-2.0f,0.25f,1.5f)
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-1.57f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setRadius(.16f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject())))))
.addChild(new ShapeObject("RightWing")
.setGeometry(new IndexedFaceSetObject().setConvex(false).setCreaseAngle(0.78f).setSolid(false).setCoordIndex(new int[] {0,1,2,3,4,5,6,7,-1,8,9,10,11,12,13,14,15,-1,0,8,15,7,-1,0,1,9,8,-1,1,2,10,9,-1,2,3,11,10,-1,3,4,12,11,-1,4,5,13,12,-1,5,6,14,13,-1,6,7,15,14})
.setCoord(new CoordinateObject().setPoint(new MFVec3fObject(new float[] {0.6f,0.6f,-1.6f,0.6f,0.5f,-1.5f,0.6f,0.45f,-1.4f,0.6f,0.4f,-1.2f,0.6f,0.4f,0.4f,0.6f,0.34f,0.9f,0.6f,0.42f,1.4f,0.6f,0.5f,2.05f,4.62f,0.08f,1.58f,4.62f,0.05f,1.62f,4.62f,0.02f,1.68f,4.62f,-0.02f,1.75f,4.62f,-0.02f,1.98f,4.62f,0.02f,2.18f,4.62f,0.03f,2.33f,4.62f,0.05f,2.42f}))))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject())))
.addChild(new TransformObject().setCenter(0.0f,1.0f,0.0f).setTranslation(2.0f,0.25f,1.5f)
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-1.57f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setRadius(.16f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject())))))
.addChild(new ShapeObject("Caps")
.setGeometry(new IndexedFaceSetObject().setConvex(false).setCreaseAngle(0.5f).setSolid(false).setCoordIndex(new int[] {232,216,277,233,-1,230,234,221,220,-1,60,59,67,66,-1,68,76,144,69,-1,17,108,107,256,187,-1,17,187,186,179,2,9,16,-1,161,191,190,193,162,160,-1})
.setCoord(new CoordinateObject().setUSE("BI_COORD")))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.125f,0.125f,0.125f))))
.addChild(new ShapeObject("Cockpit")
.setGeometry(new IndexedFaceSetObject().setCreaseAngle(0.5f).setSolid(false).setCoordIndex(new int[] {9,300,10,-1,10,300,301,-1,16,17,112,302,-1,108,107,303,-1,301,304,305,306,-1,306,305,186,179,-1,304,307,257,305,-1,305,257,187,186,-1,301,306,10,-1,2,308,309,-1,302,112,307,304,-1,9,16,302,300,-1,300,302,304,301,-1,303,107,256,-1})
.setCoord(new CoordinateObject().setUSE("BI_COORD")))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.0f,0.0f,1.0f).setTransparency(0.7f))))
.addChild(new ShapeObject("AirIntake")
.setGeometry(new IndexedFaceSetObject().setCreaseAngle(0.5f).setCoordIndex(new int[] {14,40,49,-1,14,49,52,47,15,-1,215,205,185,-1,184,211,212,215,185,-1})
.setCoord(new CoordinateObject().setUSE("BI_COORD")))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.063f,0.063f,0.063f))))
.addChild(new ShapeObject("Tail")
.setGeometry(new IndexedFaceSetObject().setCreaseAngle(0.5f).setCoordIndex(new int[] {136,139,137,-1,137,139,136,-1,273,139,137,-1,137,139,273,-1,131,278,135,-1,135,278,131,-1,278,139,135,-1,135,139,278,-1,278,279,139,-1,139,279,278,-1,31,285,286,-1,286,285,31,-1,29,31,286,-1,286,31,29,-1,264,29,286,-1,286,29,264,-1,288,289,290,291,30,124,-1,124,30,291,290,289,288,-1,292,288,124,125,-1,125,124,288,292,-1,153,293,292,125,-1,125,292,293,153,-1,278,279,139,-1,139,279,278,-1,278,139,135,-1,135,139,278,-1,131,278,135,-1,135,278,131,-1,288,289,290,291,30,124,-1,124,30,291,290,289,288,-1,292,288,124,125,-1,125,124,288,292,-1,153,293,292,125,-1,125,292,293,153,-1,168,298,299,-1,299,298,168,-1,123,168,299,-1,299,168,123,-1,122,123,299,-1,299,123,122,-1})
.setCoord(new CoordinateObject().setUSE("BI_COORD")))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject())))
.addChild(new TransformObject("Pilot").setTranslation(0.0f,0.5f,-4.0f)
.addChild(new ShapeObject()
.setGeometry(new SphereObject().setRadius(0.22f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.5f,1.0f,0.2f))))
.addChild(new TransformObject().setScale(1.3f,1.6f,1.0f).setTranslation(0.0f,-0.1f,-0.1f)
.addChild(new ShapeObject()
.setGeometry(new SphereObject().setRadius(0.15f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(1.0f,.8f,.2f)))))
.addChild(new ViewpointObject().setDescription("Cockpit View").setPosition(0.0f,2.0f,5.0f)))
.addChild(new GroupObject("Wheels")
.addChild(new TransformObject("FrontWheel").setCenter(0.0f,1.0f,0.0f).setTranslation(0.0f,-.96f,-3.55f)
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,3.14f).setTranslation(0.0f,-.3f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new ConeObject().setBottomRadius(.1f).setHeight(.8f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.9f,.9f,.9f)))))
.addChild(new TransformObject().setTranslation(0.0f,-.7f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(.6f).setRadius(.18f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.9f,.9f,.9f)))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,1.57f).setTranslation(0.0f,-1.01f,0.0f)
.addChild(new TransformObject("BigWheel")
.addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,1.57f).setScale(0.15f,0.15f,0.15f)
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setBeginCap(false).setConvex(false).setCreaseAngle(1.57f).setCrossSection(new MFVec2fObject(new float[] {1.00f,0.00f,0.92f,-0.38f,0.71f,-0.71f,0.38f,-0.92f,0.00f,-1.00f,-0.38f,-0.92f,-0.71f,-0.71f,-0.92f,-0.38f,-1.00f,-0.00f,-0.92f,0.38f,-0.71f,0.71f,-0.38f,0.92f,0.00f,1.00f,0.38f,0.92f,0.71f,0.71f,0.92f,0.38f,1.00f,0.00f})).setEndCap(false).setSpine(new MFVec3fObject(new float[] {2.00f,0.0f,0.00f,1.85f,0.0f,0.77f,1.41f,0.0f,1.41f,0.77f,0.0f,1.85f,0.00f,0.0f,2.00f,-0.77f,0.0f,1.85f,-1.41f,0.0f,1.41f,-1.85f,0.0f,0.77f,-2.00f,0.0f,0.00f,-1.85f,0.0f,-0.77f,-1.41f,0.0f,-1.41f,-0.77f,0.0f,-1.85f,0.00f,0.0f,-2.00f,0.77f,0.0f,-1.85f,1.41f,0.0f,-1.41f,1.85f,0.0f,-0.77f,2.00f,0.0f,0.00f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.1f,0.1f,0.1f)))))
.addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,1.57f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(.2f).setRadius(.15f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(.8f,.8f,.8f))))))))
.addChild(new TransformObject("BackWheel").setCenter(0.0f,1.0f,0.0f).setTranslation(0.0f,-.96f,.65f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setRadius(.07f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.9f,.9f,.9f))))
.addChild(new TransformObject().setTranslation(0.0f,-1.01f,0.0f)
.addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,1.57f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(.5f).setRadius(.07f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(.8f,.8f,.8f))))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,1.57f).setTranslation(.25f,-1.01f,0.0f)
.addChild(new TransformObject().setUSE("BigWheel")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,1.57f).setTranslation(-.25f,-1.01f,0.0f)
.addChild(new TransformObject().setUSE("BigWheel"))))
.addChild(new TransformObject("RightWingWheel").setCenter(0.0f,1.0f,0.0f).setTranslation(-2.0f,-.66f,.69f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setRadius(.07f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.9f,.9f,.9f))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,1.57f).setScale(.7f,.7f,.7f).setTranslation(0.0f,-1.45f,0.0f)
.addChild(new TransformObject().setUSE("BigWheel")))
.addChild(new TransformObject().setTranslation(0.0f,-1.22f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(.45f).setRadius(.15f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.9f,.9f,.9f))))))
.addChild(new TransformObject("LeftWingWheel").setCenter(0.0f,1.0f,0.0f).setTranslation(2.0f,-.66f,.69f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setRadius(.07f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.9f,.9f,.9f))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,1.57f).setScale(.7f,.7f,.7f).setTranslation(0.0f,-1.45f,0.0f)
.addChild(new TransformObject().setUSE("BigWheel")))
.addChild(new TransformObject().setTranslation(0.0f,-1.22f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(.45f).setRadius(.15f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setDiffuseColor(0.9f,.9f,.9f)))))))
.addChild(new ViewpointObject().setDescription("LeftWingView").setPosition(-2.0f,2.0f,10.0f))
.addChild(new ViewpointObject().setDescription("RearView").setPosition(0.0f,2.0f,10.0f))
.addChild(new ViewpointObject().setDescription("RightWingView").setPosition(2.0f,2.0f,10.0f)))))))
.addChild(new PositionInterpolatorObject("fightermover").setKey(new float[] {0.0f,0.1f,0.15f,0.2f,0.3f,0.4f,0.5f,0.64f,0.7f,0.76f,0.86f,0.91f,0.93f,0.96f,1.0f}).setKeyValue(new MFVec3fObject(new float[] {137.0f,2.6f,5.0f,170.0f,2.6f,-25.0f,237.0f,8.0f,-25.0f,280.0f,40.0f,-25.0f,330.0f,60.0f,0.0f,280.0f,70.0f,25.0f,150.0f,70.0f,25.0f,-20.0f,70.0f,25.0f,-70.0f,55.0f,0.0f,-20.0f,40.0f,-30.0f,100.0f,25.0f,-35.0f,145.0f,10.0f,-38.0f,147.0f,2.6f,-40.0f,147.0f,-2.5f,-40.0f,137.0f,-2.5f,5.0f})))
.addChild(new TimeSensorObject("clock").setCycleInterval(60).setLoop(true))
.addChild(new OrientationInterpolatorObject("GearPath").setKey(new float[] {0.0f,.1f,.15f,.2f,.3f,.4f,.5f,.6f,.7f,.76f,.86f,.9f,.93f,.96f,1.0f}).setKeyValue(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,-0.78f,1.0f,0.0f,0.0f,-1.57f,1.0f,0.0f,0.0f,-1.57f,1.0f,0.0f,0.0f,-1.57f,1.0f,0.0f,0.0f,-1.57f,1.0f,0.0f,0.0f,-0.78f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f})))
.addChild(new OrientationInterpolatorObject("WheelRotation").setKey(new float[] {0.0f,.1f,.15f,.2f,.3f,.4f,.5f,.6f,.7f,.76f,.86f,.9f,.93f,1.0f}).setKeyValue(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-4.71f,1.0f,0.0f,0.0f,-6.28f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,-1.57f,1.0f,0.0f,0.0f,-3.14f,1.0f,0.0f,0.0f,-4.71f,1.0f,0.0f,0.0f,-6.28f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,-1.57f,1.0f,0.0f,0.0f,-3.14f})))
.addChild(new OrientationInterpolatorObject("fighteryawer").setKey(new float[] {0.0f,0.1f,0.2f,0.3f,0.35f,0.4f,0.43f,0.45f,0.47f,0.5f,0.6f,0.7f}).setKeyValue(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.1f,1.0f,0.0f,0.0f,0.1f,1.0f,0.0f,0.0f,0.1f,1.0f,0.0f,0.0f,0.785f,1.0f,0.0f,0.0f,3.14f,1.0f,0.0f,0.0f,4.71f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f})))
.addChild(new OrientationInterpolatorObject("fighterbanker").setKey(new float[] {0.0f,0.05f,0.1f,0.14f,0.2f,0.3f,0.4f,0.5f,0.64f,0.7f,0.76f,0.86f,0.9f,0.93f,0.96f,1.0f}).setKeyValue(new MFRotationObject(new float[] {0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.785f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,-1.57f,0.0f,1.0f,0.0f,-3.14f,0.0f,1.0f,0.0f,-3.14f,0.0f,1.0f,0.0f,-3.14f,0.0f,1.0f,0.0f,-4.71f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,-0.2f,0.0f,1.0f,0.0f,0.2f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f})))
.addChild(new OrientationInterpolatorObject("fighterpitch").setKey(new float[] {0.0f,0.1f,0.2f,0.3f,0.4f,0.5f,0.6f,0.7f,0.76f,0.86f,0.9f,0.93f,0.96f,1.0f}).setKeyValue(new MFRotationObject(new float[] {0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.3f,0.0f,0.0f,1.0f,0.3f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,-0.3f,0.0f,0.0f,1.0f,-0.3f,0.0f,0.0f,1.0f,-0.3f,0.0f,0.0f,1.0f,0.1f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f,0.0f,0.0f,1.0f,0.0f})))
.addChild(new SoundObject().setMaxBack(100f).setMaxFront(100f).setMinBack(100f).setMinFront(100f)
.setSource(new AudioClipObject().setLoop(true).setUrl(new String[] {"../../AircraftFixedWingAndMiscellaneous/Harrier-UnitedStates/av8b.wav","https://savage.nps.edu/Savage/AircraftFixedWingAndMiscellaneous/Harrier-UnitedStates/av8b.wav"}))))
.addChild(new ROUTEObject().setFromNode("clock").setFromField("fraction_changed").setToNode("fightermover").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("fightermover").setFromField("value_changed").setToNode("Fighter").setToField("set_translation"))
.addChild(new ROUTEObject().setFromNode("clock").setFromField("fraction_changed").setToNode("fighterbanker").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("clock").setFromField("fraction_changed").setToNode("fighteryawer").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("fighteryawer").setFromField("value_changed").setToNode("Fighter1Roll").setToField("set_rotation"))
.addChild(new ROUTEObject().setFromNode("fighterbanker").setFromField("value_changed").setToNode("Fighter1Pitch").setToField("set_rotation"))
.addChild(new ROUTEObject().setFromNode("clock").setFromField("fraction_changed").setToNode("WheelRotation").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("WheelRotation").setFromField("value_changed").setToNode("BigWheel").setToField("set_rotation"))
.addChild(new ROUTEObject().setFromNode("clock").setFromField("fraction_changed").setToNode("GearPath").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("GearPath").setFromField("value_changed").setToNode("FrontWheel").setToField("set_rotation"))
.addChild(new ROUTEObject().setFromNode("GearPath").setFromField("value_changed").setToNode("RightWingWheel").setToField("set_rotation"))
.addChild(new ROUTEObject().setFromNode("GearPath").setFromField("value_changed").setToNode("LeftWingWheel").setToField("set_rotation"))
.addChild(new ROUTEObject().setFromNode("GearPath").setFromField("value_changed").setToNode("BackWheel").setToField("set_rotation"))
.addChild(new ROUTEObject().setFromNode("clock").setFromField("fraction_changed").setToNode("fighterpitch").setToField("set_fraction"))
.addChild(new ROUTEObject().setFromNode("fighterpitch").setFromField("value_changed").setToNode("Fighter").setToField("set_rotation")));
}
// end of initialize() method
/** Define subarrays using type int[] */
private int[] getIndexedFaceSet_10_10_coordIndex_1()
{
int[] value = {0,1,2,3,-1,4,5,6,7,-1,6,8,9,10,-1,5,11,8,6,-1,11,12,13,8,-1,12,14,15,13,-1,9,8,13,16,-1,16,13,15,17,-1,29,30,31,-1,32,33,5,4,-1,34,35,33,32,-1,33,36,11,5,-1,35,37,36,33,-1,36,38,12,11,-1,37,39,38,36,-1,38,40,14,12,-1,39,41,42,40,38,-1,43,0,3,-1,44,4,7,-1,44,32,4,-1,43,45,46,-1,47,48,17,15,-1,49,50,51,52,-1,40,42,50,49,-1,50,42,54,-1,42,41,55,-1,42,55,54,-1,54,56,50,-1,51,50,56,-1,57,58,59,60,-1,56,61,51,-1,48,62,51,61,-1,63,57,64,-1,48,61,65,-1,64,57,60,66,-1,67,68,69,70,66,-1,71,72,73,74,-1,67,75,76,68,-1,77,78,79,80,-1,55,81,78,77,-1,78,82,83,79,-1,81,84,82,78,-1,82,85,86,83,-1,84,87,85,82,-1,85,88,89,86,-1,87,90,88,85,-1,56,54,80,-1,54,77,80,-1,54,55,77,-1,48,65,17,-1,91,92,93,94,-1,63,95,96,97,-1,92,98,99,93,-1,100,101,98,92,-1,98,102,103,99,-1,101,104,102,98,-1,102,105,106,103,-1,107,108,97,109,-1,72,71,110,111,-1,112,17,91,-1,17,65,91,-1,63,64,95,-1,64,66,95,-1,66,113,114,95,-1,113,66,115,116,114,-1,117,118,119,120,-1,121,122,123,124,125,-1,118,126,127,119,-1,128,129,118,117,-1,130,131,132,133,-1,129,134,126,118,-1,131,135,136,132,-1,136,137,138,-1,139,136,135,-1,124,123,30,-1,127,126,140,-1,126,141,140,-1,126,142,141,-1,140,143,127,-1,69,144,145,70,-1,146,70,145,147,148,-1,148,147,145,144,-1,88,90,149,-1,89,88,149,-1,130,133,76,-1,144,76,133,-1,128,117,150,-1,105,151,106,-1,152,153,154,-1,154,155,152,-1,156,117,120,-1,157,158,144,155,-1,156,150,117,-1,159,143,140,160,161,-1,140,141,162,160,-1,141,142,110,162,-1,161,160,163,164,-1,160,162,165,163,-1,162,110,166,165,-1,164,163,165,166,-1,168,30,123,-1,174,10,175,176,-1,176,175,177,178,-1,10,179,180,175,-1,175,180,181,177,-1,180,182,183,181,-1,182,184,185,183,-1,186,182,180,179,-1,187,184,182,186,-1,188,189,190,191,-1,74,73,192,161,-1,190,193,137,194,-1,192,111,195,196,-1,161,192,196,197,159,-1,198,199,200,-1,178,177,201,202,-1,202,201,35,34,-1,177,181,203,201,-1,201,203,37,35,-1,181,183,204,203,-1,203,204,39,37,-1,183,185,205,204,-1,204,205,206,41,39,-1,3,207,43,-1,207,208,43,-1,208,209,43,-1,209,45,43,-1,184,187,210,211,-1,212,213,214,215,-1,215,214,206,205,-1,20,216,19,217,-1,218,206,214,-1,55,41,206,-1,218,55,206,-1,214,219,218,-1,219,214,213,-1,220,221,222,223,-1,213,224,219,-1,224,213,225,210,-1,226,223,227,-1,228,224,210,-1,229,198,200,-1,230,220,223,226,-1,230,231,232,233,234,-1,229,200,235,-1,236,237,238,239,-1,240,241,242,243,-1,243,242,81,55,-1,241,239,244,242,-1,242,244,84,81,-1,239,238,245,244,-1,244,245,87,84,-1,238,237,246,245,-1,245,246,90,87,-1,240,218,219,-1,240,243,218,-1,243,55,218,-1,187,228,210,-1,94,93,247,248,-1,249,250,53,227,-1,93,99,251,247,-1,247,251,252,253,-1,99,103,254,251,-1,251,254,255,252,-1,103,106,235,254,-1,109,249,256,107,-1,235,151,229,-1,248,187,257,-1,248,228,187,-1,53,226,227,-1,53,230,226,-1,53,258,24,230,-1,258,259,25,230,24,-1,26,259,260,261,231,-1,229,262,263,198,-1,125,124,29,264,265,-1,262,266,267,263,-1,198,263,268,269,-1,269,268,270,149,-1,271,272,273,274,-1,274,273,135,131,-1,272,137,273,-1,135,273,139,-1,30,29,124,-1,196,267,266,-1,196,195,267,-1,194,137,272,-1,266,197,196,-1,231,275,216,232,-1,260,18,275,231,261,-1,216,275,18,260,-1,149,90,246,-1,130,276,277,-1,237,269,149,-1,269,237,199,-1,199,198,269,-1,106,151,235,-1,151,280,262,229,-1,153,125,265,-1,216,260,19,-1,260,217,19,-1,230,25,26,231,-1,25,259,26,-1,281,260,259,-1,281,282,217,260,-1,282,20,217,-1,221,283,284,222,-1,221,234,283,-1,211,225,213,212,-1,211,210,225,-1,262,280,287,-1,266,262,287,-1,62,48,47,-1,52,51,62,47,-1,294,67,59,-1};
return value;
}
private int[] getIndexedFaceSet_10_10_coordIndex_2()
{
int[] value = {58,295,294,59,-1,157,155,154,-1,148,157,154,296,-1,116,148,296,-1,169,116,115,-1,70,169,115,66,-1,146,148,116,169,-1,70,146,169,-1,158,157,148,-1,158,148,144,-1,121,125,153,-1,152,297,121,153,-1,122,121,297,-1,122,297,123,-1};
return value;
}
/** Define subarrays using type float[] */
private float[] getBI_COORD_11_10_point_1()
{
float[] value = {-0.35f,-0.32f,-6.71f,-0.44f,-0.17f,-5.91f,0.0f,0.25f,-5.9f,0.0f,0.0f,-6.7f,-0.35f,-0.5f,-6.7f,-0.45f,-0.5f,-5.9f,-0.44f,-0.17f,-5.91f,-0.35f,-0.32f,-6.71f,-0.44f,0.11f,-5.01f,-0.32f,0.23f,-5.0f,0.0f,0.25f,-5.9f,-0.45f,-0.5f,-5.0f,-0.45f,-0.5f,-4.55f,-0.44f,0.25f,-4.56f,-0.45f,-0.5f,-3.93f,-0.44f,0.31f,-4.05f,-0.34f,0.36f,-4.55f,-0.26f,0.57f,-3.55f,0.6f,0.54f,0.65f,0.62f,0.53f,1.09f,0.7f,0.5f,2.05f,4.62f,0.05f,2.42f,4.62f,0.08f,1.58f,3.79f,0.18f,0.71f,0.69f,0.59f,-0.95f,0.64f,0.57f,-0.27f,0.64f,0.57f,0.0f,2.78f,0.32f,0.0f,1.45f,0.49f,-0.92f,0.19f,0.79f,4.91f,0.0f,0.85f,6.5f,0.11f,0.79f,6.16f,-0.33f,-0.54f,-6.7f,-0.34f,-0.68f,-5.9f,0.0f,-0.7f,-6.7f,0.0f,-0.85f,-5.9f,-0.3f,-0.8f,-5.0f,0.0f,-0.95f,-5.0f,-0.3f,-0.8f,-4.55f,0.0f,-0.95f,-4.55f,-0.3f,-0.8f,-3.9f,0.0f,-0.95f,-3.55f,-0.3f,-0.8f,-3.55f,0.0f,-0.43f,-7.22f,0.0f,-0.43f,-7.22f,0.0f,-0.7f,-6.7f,-0.33f,-0.54f,-6.7f,-0.69f,0.28f,-4.03f,-0.83f,0.5f,-3.58f,-0.89f,-0.64f,-3.91f,-0.93f,-0.63f,-3.54f,-1.1f,0.0f,-3.55f,-1.0f,-0.25f,-3.95f,0.75f,0.6f,-1.6f,-0.65f,-0.7f,-2.6f,0.0f,-0.95f,-1.8f,-1.13f,-0.35f,-2.63f,-1.13f,0.25f,-2.62f,-1.13f,-0.35f,-2.63f,-1.15f,-0.35f,-1.6f,-1.15f,0.25f,-1.6f,-1.13f,0.25f,-2.62f,-0.96f,0.25f,-3.57f,-0.8f,0.6f,-2.6f,-0.8f,0.25f,-1.6f,-0.8f,0.6f,-2.6f,-0.85f,0.25f,-0.95f,-0.85f,-0.35f,-0.95f,-0.9f,-0.35f,0.65f,-0.9f,0.25f,0.65f,-0.87f,0.25f,0.0f,0.03f,0.45f,7.14f,0.22f,0.57f,7.14f,0.22f,0.68f,7.14f,0.03f,0.8f,7.14f,-0.65f,-0.35f,0.65f,-0.65f,-0.35f,1.1f,-0.46f,-0.85f,-1.8f,-0.5f,-0.85f,-1.6f,-0.8f,-0.35f,-1.6f,-0.75f,-0.35f,-1.8f,0.0f,-0.95f,-1.6f,-0.55f,-0.84f,-0.95f,-0.85f,-0.35f,-0.95f,0.0f,-0.95f,-0.95f,-0.33f,-0.88f,0.65f,-0.65f,-0.35f,0.65f,0.0f,-0.95f,0.65f,-0.33f,-0.88f,1.1f,-0.65f,-0.35f,1.1f,0.0f,-0.95f,1.1f,-0.69f,0.68f,-2.61f,-0.41f,0.84f,-1.6f,0.0f,0.95f,-1.6f,0.0f,0.85f,-2.65f,-0.75f,0.6f,-1.6f,-0.41f,0.84f,-1.6f,-0.69f,0.68f,-2.61f,-0.36f,0.86f,-0.95f,0.0f,0.95f,-0.95f};
return value;
}
private float[] getBI_COORD_11_10_point_2()
{
float[] value = {-0.75f,0.6f,-1.6f,-0.67f,0.64f,-0.95f,-0.34f,0.85f,0.0f,0.0f,0.92f,0.0f,-0.55f,0.7f,0.0f,-0.31f,0.78f,2.05f,0.0f,0.85f,2.05f,0.0f,0.85f,-3.55f,-0.26f,0.74f,-3.55f,0.0f,0.85f,-2.65f,0.0f,0.4f,6.87f,0.25f,0.55f,6.87f,-0.26f,0.74f,-3.55f,-0.69f,0.59f,-0.95f,-0.67f,0.64f,-0.95f,-0.64f,0.57f,-0.27f,-0.55f,0.7f,0.0f,-0.65f,0.35f,3.45f,-0.55f,0.35f,4.0f,-0.4f,0.74f,4.01f,-0.49f,0.72f,3.51f,-0.2f,0.8f,4.0f,-0.2f,0.8f,4.55f,-0.19f,0.79f,4.91f,0.0f,0.85f,4.9f,0.0f,0.85f,4.0f,-0.35f,0.35f,4.9f,-0.19f,0.79f,4.91f,-0.53f,-0.23f,3.52f,-0.45f,-0.18f,4.02f,0.0f,-0.6f,3.55f,0.0f,-0.5f,4.0f,-0.45f,-0.18f,4.02f,-0.53f,-0.23f,3.52f,-0.26f,-0.16f,4.92f,0.0f,-0.35f,4.9f,-0.26f,-0.16f,4.92f,0.0f,0.4f,6.5f,-0.35f,0.35f,4.9f,0.0f,0.0f,6.4f,-0.25f,0.7f,6.5f,-0.25f,0.55f,6.5f,0.0f,0.4f,6.5f,-0.11f,0.79f,6.16f,-0.65f,0.25f,1.1f,-0.65f,0.25f,0.65f,-0.66f,0.54f,0.48f,-0.6f,0.54f,0.65f,-0.59f,0.64f,0.65f,0.0f,-0.6f,3.55f,-0.65f,0.25f,1.1f,0.0f,0.85f,3.55f,-0.49f,0.72f,3.51f,0.0f,0.85f,3.55f,-0.31f,0.78f,2.05f,-0.7f,0.5f,2.05f,-0.7f,0.5f,2.05f,-0.62f,0.6f,1.09f,-0.62f,0.53f,1.09f,0.0f,0.85f,6.5f,-0.25f,0.7f,6.87f,0.0f,0.85f,6.87f,-0.25f,0.55f,6.87f,-0.22f,0.68f,7.14f,-0.03f,0.8f,7.14f,-0.22f,0.57f,7.14f,-0.03f,0.45f,7.14f,-1.45f,0.49f,-0.92f,-0.11f,0.79f,6.16f,-0.64f,0.57f,0.0f,-2.78f,0.32f,0.0f,-4.62f,0.05f,2.42f,-4.62f,0.08f,1.58f,-3.79f,0.18f,0.71f,0.0f,0.0f,-6.7f,0.44f,-0.17f,-5.91f,0.35f,-0.32f,-6.71f,0.45f,-0.5f,-5.9f,0.35f,-0.5f,-6.7f,0.32f,0.23f,-5.0f,0.44f,0.11f,-5.01f,0.45f,-0.5f,-5.0f,0.44f,0.25f,-4.56f,0.45f,-0.5f,-4.55f,0.44f,0.31f,-4.05f,0.45f,-0.5f,-3.93f,0.34f,0.36f,-4.55f,0.26f,0.57f,-3.55f,0.22f,0.68f,7.14f,0.22f,0.57f,7.14f,0.25f,0.55f,6.87f,0.25f,0.7f,6.87f,0.25f,0.7f,6.87f,0.0f,0.4f,6.87f,0.25f,0.55f,6.5f,0.25f,0.55f,6.5f,0.25f,0.7f,6.5f,0.11f,0.79f,6.16f,0.65f,0.35f,3.45f,0.65f,0.25f,1.1f};
return value;
}
private float[] getBI_COORD_11_10_point_3()
{
float[] value = {0.7f,0.5f,2.05f,0.34f,-0.68f,-5.9f,0.33f,-0.54f,-6.7f,0.3f,-0.8f,-5.0f,0.3f,-0.8f,-4.55f,0.3f,-0.8f,-3.9f,0.3f,-0.8f,-3.55f,0.35f,-0.32f,-6.71f,0.35f,-0.5f,-6.7f,0.33f,-0.54f,-6.7f,0.83f,0.5f,-3.58f,0.69f,0.28f,-4.03f,1.0f,-0.25f,-3.95f,1.1f,0.0f,-3.55f,0.93f,-0.63f,-3.54f,0.89f,-0.64f,-3.91f,0.65f,0.25f,1.1f,0.62f,0.6f,1.09f,0.65f,-0.7f,-2.6f,1.13f,-0.35f,-2.63f,1.15f,0.25f,-1.6f,1.15f,-0.35f,-1.6f,1.13f,-0.35f,-2.63f,1.13f,0.25f,-2.62f,1.13f,0.25f,-2.62f,0.96f,0.25f,-3.57f,0.8f,0.25f,-1.6f,0.8f,0.6f,-2.6f,0.8f,0.6f,-2.6f,0.49f,0.72f,3.51f,0.85f,0.25f,-0.95f,0.87f,0.25f,0.0f,0.9f,0.25f,0.65f,0.9f,-0.35f,0.65f,0.85f,-0.35f,-0.95f,0.31f,0.78f,2.05f,0.9f,-0.35f,0.65f,0.65f,-0.35f,1.1f,0.65f,-0.35f,0.65f,0.85f,-0.35f,-0.95f,0.75f,-0.35f,-1.8f,0.8f,-0.35f,-1.6f,0.5f,-0.85f,-1.6f,0.46f,-0.85f,-1.8f,0.55f,-0.84f,-0.95f,0.33f,-0.88f,0.65f,0.33f,-0.88f,1.1f,0.41f,0.84f,-1.6f,0.69f,0.68f,-2.61f,0.69f,0.68f,-2.61f,0.41f,0.84f,-1.6f,0.36f,0.86f,-0.95f,0.67f,0.64f,-0.95f,0.75f,0.6f,-1.6f,0.34f,0.85f,0.0f,0.55f,0.7f,0.0f,0.26f,0.74f,-3.55f,0.26f,0.74f,-3.55f,0.67f,0.64f,-0.95f,0.55f,0.7f,0.0f,0.59f,0.64f,0.65f,0.66f,0.54f,0.48f,0.4f,0.74f,4.01f,0.55f,0.35f,4.0f,0.2f,0.8f,4.55f,0.2f,0.8f,4.0f,0.19f,0.79f,4.91f,0.35f,0.35f,4.9f,0.45f,-0.18f,4.02f,0.53f,-0.23f,3.52f,0.0f,-0.5f,4.0f,0.55f,0.35f,4.0f,0.35f,0.35f,4.9f,0.26f,-0.16f,4.92f,0.45f,-0.18f,4.02f,0.65f,0.25f,0.65f,0.33f,-0.88f,1.1f,0.65f,-0.35f,1.1f,0.0f,-0.6f,5.95f,0.0f,-0.45f,6.2f,0.2f,0.8f,4.0f,0.34f,0.85f,0.0f,0.31f,0.78f,2.05f,0.8f,-0.35f,-1.6f,0.75f,-0.35f,-1.8f,2.12f,0.15f,6.49f,2.12f,0.15f,6.15f,0.2f,0.8f,4.55f,0.0f,1.7f,4.9f,0.0f,2.4f,5.65f,0.0f,2.75f,6.15f,0.0f,2.85f,6.7f,0.0f,0.95f,4.0f,0.0f,0.95f,3.55f,-0.8f,-0.35f,-1.6f,-0.75f,-0.35f,-1.8f,-0.34f,0.85f,0.0f,-0.4f,0.74f,4.01f,-2.12f,0.15f,6.49f,-2.12f,0.15f,6.15f};
return value;
}
private float[] getBI_COORD_11_10_point_4()
{
float[] value = {-0.33f,0.67f,-5.0f,0.0f,0.95f,-5.0f,-0.34f,0.81f,-4.55f,0.0f,0.95f,-3.55f,0.0f,1.1f,-4.55f,0.34f,0.81f,-4.55f,0.33f,0.67f,-5.0f,0.0f,0.95f,-3.55f,0.33f,0.67f,-5.0f,0.32f,0.23f,-5.0f};
return value;
}
/** Large attribute array: IndexedFaceSet coordIndex field, scene-graph level=10, element #10, 1061 total numbers.
* Reassemble split array as single method to improve readability and runnability.
* Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors.
* Individual Java methods (including aggregated initializations) are limited to 64KB.
* @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
* @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
*/
private MFInt32Object getIndexedFaceSet_10_10_coordIndex()
{
MFInt32Object IndexedFaceSet_10_10_coordIndex = new MFInt32Object()/*2.finalize*/
.append(new MFInt32Object(getIndexedFaceSet_10_10_coordIndex_1()))
.append(new MFInt32Object(getIndexedFaceSet_10_10_coordIndex_2()));
return IndexedFaceSet_10_10_coordIndex;
}
/** Large attribute array: Coordinate DEF='BI_COORD' point field, scene-graph level=11, element #10, 930 total numbers made up of 310 3-tuple values.
* Reassemble split array as single method to improve readability and runnability.
* Provide large array values via separate methods, hoping to avoid 'code too large' Java compilation errors.
* Individual Java methods (including aggregated initializations) are limited to 64KB.
* @see https://stackoverflow.com/questions/2407912/code-too-large-compilation-error-in-java
* @see https://stackoverflow.com/questions/11437905/java-too-many-constants-jvm-error
*/
private MFVec3fObject getBI_COORD_11_10_point()
{
MFVec3fObject BI_COORD_11_10_point = new MFVec3fObject()/*2.finalize*/
.append(new MFVec3fObject(getBI_COORD_11_10_point_1()))
.append(new MFVec3fObject(getBI_COORD_11_10_point_2()))
.append(new MFVec3fObject(getBI_COORD_11_10_point_3()))
.append(new MFVec3fObject(getBI_COORD_11_10_point_4()));
return BI_COORD_11_10_point;
}
/** The initialized model object, created within initialize() method. */
private X3DObject x3dModel;
/** Provide a
* shallow copy
* of the X3D model.
* @see X3DObject
* @return HarrierFlying model
*/
public X3DObject 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 X3DObject.handleArguments(args)
* @see X3DObject.validationReport()
* @see CommandLine
* @see CommandLine.USAGE
* @see ConfigurationProperties
*/
public static void main(String args[])
{
X3DObject thisExampleX3dObject = new HarrierFlying().getX3dModel();
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(X3DObject.FILE_EXTENSION_X3D) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_CLASSICVRML) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_X3DB) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_VRML97) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_EXI) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_GZIP) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_ZIP) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_HTML) ||
arg.toLowerCase().endsWith(X3DObject.FILE_EXTENSION_XHTML))
{
argumentsLoadNewModel = true;
fileName = arg;
}
}
}
if (argumentsLoadNewModel)
System.out.println("WARNING: \"HarrierFlying\" 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
thisExampleX3dObject.handleArguments(args);
if (validate)
{
System.out.print("Java program \"HarrierFlying\" self-validation test results: ");
String validationResults = thisExampleX3dObject.validationReport();
System.out.println(validationResults);
}
}
}