package Savage.ShipsMilitary.LargeDeckAmphibBoxerUnitedStates;
/*
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.Navigation.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Text.*;
// Javadoc annotations follow, see below for source.
/**
*
SuperStructure of Large Deck Amphibious Ship - USS Boxer.
Related links: SuperStructure.java source, SuperStructure 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 Patricia Sweat, LT USN
*/
public class SuperStructure
{
/** Default constructor to create this object. */
public SuperStructure ()
{
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_3)
.setHead(new headObject()
.addMeta(new metaObject().setName(metaObject.NAME_TITLE ).setContent("SuperStructure.x3d"))
.addMeta(new metaObject().setName(metaObject.NAME_CREATOR ).setContent("Patricia Sweat, LT USN"))
.addMeta(new metaObject().setName(metaObject.NAME_DESCRIPTION).setContent("SuperStructure of Large Deck Amphibious Ship - USS Boxer"))
.addMeta(new metaObject().setName(metaObject.NAME_CREATED ).setContent("1 September 2004"))
.addMeta(new metaObject().setName(metaObject.NAME_MODIFIED ).setContent("26 February 2016"))
.addMeta(new metaObject().setName(metaObject.NAME_IDENTIFIER ).setContent("https://savage.nps.edu/Savage/ShipsMilitary/LargeDeckAmphib-Boxer-UnitedStates/SuperStructure.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 ViewpointObject().setDescription("Port view point").setOrientation(0.747f,-0.064f,0.662f,2.9812f).setPosition(64.3f,-15.8f,-6.3f))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,3.14f)
.addChild(new GroupObject("Super_structure")
.addChild(new TransformObject("Bridge_structure")
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject("Out_line").setCrossSection(new MFVec2fObject(new float[] {5.0f,20.0f,7.5f,25.0f,7.5f,40.0f,17.25f,40.0f,17.25f,35.0f,17.5f,32.5f,17.5f,27.5f,17.25f,25.0f,17.25f,-35.0f,5.0f,-35.0f,5.0f,20.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject("Haze_Gray").setDiffuseColor(.6f,.6f,.6f)))))
.addChild(new TransformObject("Foundation").setTranslation(9.85f,-2.5f,-5.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(10.0f,8.0f,50.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("number_port").setRotation(1.0f,0.0f,1.0f,3.14f).setScale(10.0f,10.0f,10.0f).setTranslation(4.75f,0.0f,-9.0f)
.addChild(new ShapeObject("hull_number")
.setGeometry(new TextObject().setString(new String[] {"4"})
.setFontStyle(new FontStyleObject().setStyle("BOLD")))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject("White").setDiffuseColor(1.0f,1.0f,1.0f).setEmissiveColor(1.0f,1.0f,1.0f)))))
.addChild(new TransformObject("number_stbd").setRotation(1.0f,0.0f,1.0f,-3.14f).setScale(10.0f,10.0f,10.0f).setTranslation(17.0f,-3.0f,5.0f)
.addChild(new ShapeObject().setUSE("hull_number")))
.addChild(new TransformObject("fwd_aframe").setTranslation(15.75f,-3.0f,10.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(2.25f,7.5f,20.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("aft_aframe").setTranslation(15.75f,-3.0f,-20.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(2.25f,7.5f,20.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("fwd_stack").setTranslation(15.5f,-13.0f,-14.0f)
.addChild(new ShapeObject("stack")
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {0.0f,1.0f,.85f,.85f,1.0f,0.0f,.85f,-.85f,0.0f,-1.0f,-.85f,-.85f,-1.0f,0.0f,-.85f,.85f,0.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,7.0f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("aft_stack").setTranslation(15.5f,-13.0f,-12.0f)
.addChild(new ShapeObject().setUSE("stack")))
.addChild(new TransformObject("Top_of_stack_fwd").setTranslation(15.5f,-13.75f,-14.0f)
.addChild(new ShapeObject("Top_stack")
.setGeometry(new ExtrusionObject().setBeginCap(false).setCrossSection(new MFVec2fObject(new float[] {0.0f,1.1f,.86f,.86f,1.1f,0.0f,.86f,-.86f,0.0f,-1.1f,-.86f,-.86f,-1.1f,0.0f,-.86f,.86f,0.0f,1.1f})).setEndCap(false).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,1.5f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject("Black").setDiffuseColor(0.0f,0.0f,0.0f)))))
.addChild(new TransformObject("Top_of_stack_aft").setTranslation(15.5f,-13.75f,-12.0f)
.addChild(new ShapeObject().setUSE("Top_stack")))
.addChild(new TransformObject("Bridge_wing").setTranslation(19.0f,-6.75f,18.5f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(6.0f,.5f,3.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("Bridge").setTranslation(11.0f,-8.0f,16.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(12.2f,3.0f,8.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("behind_bridge").setTranslation(10.8f,-8.0f,7.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(12.2f,3.0f,10.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("Front").setTranslation(0.0f,-2.5f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {5.0f,20.0f,7.5f,25.0f,7.5f,40.0f,17.25f,40.0f,17.25f,35.0f,17.5f,32.5f,17.5f,27.5f,17.25f,20.0f,5.0f,20.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,2.5f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("CIWS_plat").setTranslation(1.5f,-5.0f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {4.0f,20.0f,7.25f,26.0f,11.75f,26.0f,14.75f,20.0f,4.0f,20.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,2.5f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("platform_64").setTranslation(11.0f,-11.0f,7.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(7.0f,3.0f,10.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("platform_32").setTranslation(11.0f,-13.0f,5.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(12.0f,.5f,3.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("Front_bridge_bottom").setTranslation(11.0f,-6.75f,19.5f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(12.2f,.5f,3.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("Front_bridge_top").setTranslation(11.0f,-8.0f,19.5f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(12.2f,.5f,3.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("Bridge_wing_top").setTranslation(19.0f,-8.0f,18.5f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(6.0f,.5f,3.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("Front_windows").setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(11.0f,-7.5f,20.5f)
.addChild(new ShapeObject("window")
.setGeometry(new BoxObject().setSize(12.2f,1.0f,.2f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject("windows").setDiffuseColor(0.0f,0.0f,1.0f).setEmissiveColor(0.0f,.8f,.8f).setTransparency(.7f)))))
.addChild(new TransformObject("Front_bridge_wing_window").setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(19.5f,-7.5f,19.7f)
.addChild(new ShapeObject("win")
.setGeometry(new BoxObject().setSize(5.0f,1.0f,.2f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("windows")))))
.addChild(new TransformObject("Aft_bridge_wing_window").setRotation(1.0f,0.0f,0.0f,0.4f).setTranslation(19.5f,-7.5f,17.25f)
.addChild(new ShapeObject().setUSE("win")))
.addChild(new TransformObject("Stbd_bridge_wing_window").setRotation(0.0f,0.0f,1.0f,0.4f).setTranslation(21.5f,-7.5f,18.5f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(.2f,1.0f,3.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("windows")))))
.addChild(new TransformObject("Signal_bridge").setTranslation(11.0f,-10.0f,16.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(6.0f,3.0f,5.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("Signalbeidge_front_window").setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(11.0f,-10.8f,18.80f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(8.0f,.75f,.2f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("windows")))))
.addChild(new TransformObject("Signalbridge_stbd_window").setRotation(0.0f,0.0f,1.0f,0.4f).setTranslation(15.0f,-10.8f,16.0f)
.addChild(new ShapeObject("sigs_side_win")
.setGeometry(new BoxObject().setSize(.2f,.65f,5.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("windows")))))
.addChild(new TransformObject("Signalbridge_port_window").setRotation(0.0f,0.0f,1.0f,-0.4f).setTranslation(7.5f,-10.8f,16.0f)
.addChild(new ShapeObject().setUSE("sigs_side_win")))
.addChild(new TransformObject("Sigs_Top_win").setTranslation(11.0f,-11.25f,18.0f)
.addChild(new ShapeObject("sig_bridge_top")
.setGeometry(new BoxObject().setSize(6.0f,.3f,2.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("Sigs_bott_win").setTranslation(11.0f,-10.5f,18.0f)
.addChild(new ShapeObject().setUSE("sig_bridge_top")))
.addChild(new TransformObject("Sigs_stbd_top").setTranslation(14.0f,-11.25f,16.0f)
.addChild(new ShapeObject("sigs_side_top_win")
.setGeometry(new BoxObject().setSize(2.0f,.3f,5.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("Sigs_stbd_bott").setTranslation(14.0f,-10.5f,16.0f)
.addChild(new ShapeObject().setUSE("sigs_side_top_win")))
.addChild(new TransformObject("Sigs_port_top").setTranslation(8.0f,-11.25f,16.0f)
.addChild(new ShapeObject().setUSE("sigs_side_top_win")))
.addChild(new TransformObject("Sigs_port_bott").setTranslation(8.0f,-10.5f,16.0f)
.addChild(new ShapeObject().setUSE("sigs_side_top_win"))))
.addChild(new GroupObject("Bars_windows")
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(15.0f,-7.25f,20.75f)
.addChild(new ShapeObject("bridge_bars")
.setGeometry(new BoxObject().setSize(.4f,1.25f,.25f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(16.75f,-7.25f,20.75f)
.addChild(new ShapeObject().setUSE("bridge_bars")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(13.25f,-7.25f,20.75f)
.addChild(new ShapeObject().setUSE("bridge_bars")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(11.5f,-7.25f,20.75f)
.addChild(new ShapeObject().setUSE("bridge_bars")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(9.75f,-7.25f,20.75f)
.addChild(new ShapeObject().setUSE("bridge_bars")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(8.0f,-7.25f,20.75f)
.addChild(new ShapeObject().setUSE("bridge_bars")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(6.25f,-7.25f,20.75f)
.addChild(new ShapeObject().setUSE("bridge_bars")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-0.4f).setTranslation(5.2f,-7.25f,20.75f)
.addChild(new ShapeObject().setUSE("bridge_bars")))
.addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,0.4f).setTranslation(21.75f,-7.25f,19.75f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(.4f,1.25f,.25f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,0.4f).setTranslation(21.75f,-7.25f,18.5f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(.4f,1.25f,.25f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setRotation(0.0f,0.0f,1.0f,0.4f).setTranslation(21.75f,-7.25f,17.25f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(.4f,1.25f,.25f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray"))))))
.addChild(new GroupObject("Fwd_Mast")
.addChild(new TransformObject("mast").setTranslation(11.0f,-11.75f,7.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(12f).setRadius(.5f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("aft_mast").setTranslation(11.0f,-11.75f,-18.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(18f).setRadius(.5f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("plat_fwd_mast").setRotation(0.0f,1.0f,0.0f,1.57f).setTranslation(11.0f,-18.0f,7.0f)
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {0.0f,1.1f,2.86f,.86f,3.1f,0.0f,2.86f,-.86f,0.0f,-1.1f,-2.86f,-.86f,-3.1f,0.0f,-2.86f,.86f,0.0f,1.1f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,.5f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("fwd_fwd_mast").setTranslation(11.0f,-18.0f,5.0f)
.addChild(new ShapeObject("Ant_plat")
.setGeometry(new BoxObject().setSize(9.0f,.25f,.75f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject("fwd_aft_mast").setTranslation(11.0f,-18.0f,9.0f)
.addChild(new ShapeObject().setUSE("Ant_plat")))
.addChild(new TransformObject("fwd_mast_ant").setTranslation(11.0f,-18.0f,7.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(.15f).setRadius(.3f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setTranslation(11.0f,-19.0f,7.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(.05f).setRadius(.10f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,3.14f).setTranslation(11.0f,-18.75f,7.0f)
.addChild(new ShapeObject()
.setGeometry(new ConeObject().setBottomRadius(.25f).setHeight(1.5f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setTranslation(11.0f,-19.5f,7.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(1.5f).setRadius(.08f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setTranslation(13.5f,-19.0f,9.0f)
.addChild(new ShapeObject("small_ant")
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))
.setGeometry(new CylinderObject().setHeight(1.5f).setRadius(.01f))))
.addChild(new TransformObject().setTranslation(8.5f,-19.0f,9.0f)
.addChild(new ShapeObject().setUSE("small_ant")))
.addChild(new TransformObject().setTranslation(8.5f,-19.0f,5.0f)
.addChild(new ShapeObject().setUSE("small_ant")))
.addChild(new TransformObject().setTranslation(13.5f,-19.0f,5.0f)
.addChild(new ShapeObject().setUSE("small_ant"))))
.addChild(new GroupObject("SLQ-32")
.addChild(new TransformObject("Base_Stbd").setRotation(0.0f,1.0f,0.0f,1.57f).setTranslation(16.75f,-14.5f,5.0f)
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.57f).setTranslation(.3f,0.0f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.2f,0.0f,-.1f,.25f,.1f,.25f,.2f,0.0f,-.2f,0.0f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.2f,1.0f,0.0f,0.0f,.2f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-.6f})))
.setAppearance(new AppearanceObject("Gray")
.setMaterial(new MaterialObject().setSpecularColor(.4f,.4f,.4f)))))
.addChild(new TransformObject("Stbd_SLQFrame").setRotation(1.0f,0.0f,0.0f,-1.57f).setTranslation(0.0f,1.25f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-1.0f,0.0f,-.5f,.6f,.5f,.6f,1.0f,0.0f,.2f,-.6f,0.0f,-.6f,-.2f,-.6f,-1.0f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-1.0f})))
.setAppearance(new AppearanceObject().setUSE("Gray"))))
.addChild(new GroupObject("LeftAnt_Stbd")
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,.92f).setTranslation(-.55f,1.1f,.38f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject("Ant")
.setMaterial(new MaterialObject().setDiffuseColor(0.74f,0.74f,0.74f)))
.setGeometry(new BoxObject().setSize(.1f,.2f,.7f))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,.92f).setTranslation(-.6f,.75f,.34f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("Ant"))
.setGeometry(new BoxObject().setSize(.1f,.25f,.8f))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,.92f).setTranslation(-.76f,.4f,.2f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("Ant"))
.setGeometry(new BoxObject().setSize(.1f,.2f,.4f)))))
.addChild(new GroupObject("CenterAntStbd")
.addChild(new TransformObject().setTranslation(0.0f,1.1f,.6f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("Ant"))
.setGeometry(new CylinderObject().setHeight(.2f).setRadius(.16f))))
.addChild(new TransformObject().setTranslation(0.0f,.8f,.6f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("Ant"))
.setGeometry(new CylinderObject().setHeight(.18f).setRadius(.18f)))))
.addChild(new GroupObject("RightAntStbd")
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-.92f).setTranslation(.55f,1.1f,.38f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("Ant"))
.setGeometry(new BoxObject().setSize(.1f,.2f,.7f))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-.92f).setTranslation(.6f,.75f,.34f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("Ant"))
.setGeometry(new BoxObject().setSize(.1f,.25f,.8f))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-.92f).setTranslation(.76f,.4f,.2f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("Ant"))
.setGeometry(new BoxObject().setSize(.1f,.2f,.4f))))))
.addChild(new TransformObject("Base_Port").setRotation(0.0f,1.0f,0.0f,-1.57f).setTranslation(5.2f,-14.5f,5.0f)
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,1.57f).setTranslation(.3f,0.0f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-.2f,0.0f,-.1f,.25f,.1f,.25f,.2f,0.0f,-.2f,0.0f})).setOrientation(new MFRotationObject(new float[] {1.0f,0.0f,0.0f,-.2f,1.0f,0.0f,0.0f,.2f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-.6f})))
.setAppearance(new AppearanceObject().setUSE("Gray"))))
.addChild(new TransformObject("SLQFrame").setRotation(1.0f,0.0f,0.0f,-1.57f).setTranslation(0.0f,1.25f,0.0f)
.addChild(new ShapeObject()
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {-1.0f,0.0f,-.5f,.6f,.5f,.6f,1.0f,0.0f,.2f,-.6f,0.0f,-.6f,-.2f,-.6f,-1.0f,0.0f})).setScale(new MFVec2fObject(new float[] {1.0f,1.0f,1.0f,1.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,-1.0f})))
.setAppearance(new AppearanceObject().setUSE("Gray"))))
.addChild(new GroupObject("LeftAnt")
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,.92f).setTranslation(-.55f,1.1f,.38f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject("AntennaFace1")
.setMaterial(new MaterialObject().setDiffuseColor(0.74f,0.74f,0.74f)))
.setGeometry(new BoxObject().setSize(.1f,.2f,.7f))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,.92f).setTranslation(-.6f,.75f,.34f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("AntennaFace1"))
.setGeometry(new BoxObject().setSize(.1f,.25f,.8f))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,.92f).setTranslation(-.76f,.4f,.2f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("AntennaFace1"))
.setGeometry(new BoxObject().setSize(.1f,.2f,.4f)))))
.addChild(new GroupObject("CenterAnt")
.addChild(new TransformObject().setTranslation(0.0f,1.1f,.6f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("AntennaFace1"))
.setGeometry(new CylinderObject().setHeight(.2f).setRadius(.16f))))
.addChild(new TransformObject().setTranslation(0.0f,.8f,.6f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("AntennaFace1"))
.setGeometry(new CylinderObject().setHeight(.18f).setRadius(.18f)))))
.addChild(new GroupObject("RightAnt")
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-.92f).setTranslation(.55f,1.1f,.38f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("AntennaFace1"))
.setGeometry(new BoxObject().setSize(.1f,.2f,.7f))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-.92f).setTranslation(.6f,.75f,.34f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("AntennaFace1"))
.setGeometry(new BoxObject().setSize(.1f,.25f,.8f))))
.addChild(new TransformObject().setRotation(0.0f,1.0f,0.0f,-.92f).setTranslation(.76f,.4f,.2f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject().setUSE("AntennaFace1"))
.setGeometry(new BoxObject().setSize(.1f,.2f,.4f)))))))
.addChild(new GroupObject("Flight_Tower")
.addChild(new TransformObject("Tower").setTranslation(10.8f,-8.0f,-25.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(12.2f,3.0f,10.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setTranslation(11.15f,-1.5f,-32.4f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(12.2f,5.0f,5.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setTranslation(10.8f,-10.0f,-27.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(6.0f,3.0f,6.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject()
.addChild(new ShapeObject()))
.addChild(new TransformObject()))
.addChild(new GroupObject("Sea_Sparrow")
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,3.14f).setTranslation(12.75f,-3.0f,35.0f)
.addChild(new ShapeObject()
.setGeometry(new ConeObject().setBottomRadius(2.5f).setHeight(.25f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject("haze").setDiffuseColor(.8f,.8f,.8f)))))
.addChild(new TransformObject().setTranslation(12.75f,-4.0f,35.0f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setRadius(.5f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("haze")))))
.addChild(new TransformObject().setTranslation(12.75f,-5.0f,35.0f)
.addChild(new ShapeObject()
.setGeometry(new BoxObject().setSize(3.0f,.25f,.5f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("haze")))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,.25f).setTranslation(14.25f,-5.0f,35.0f)
.addChild(new ShapeObject("box")
.setGeometry(new BoxObject().setSize(.75f,.75f,4.0f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("haze")))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,.25f).setTranslation(13.5f,-5.0f,35.0f)
.addChild(new ShapeObject().setUSE("box")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,.25f).setTranslation(12.0f,-5.0f,35.0f)
.addChild(new ShapeObject().setUSE("box")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,.25f).setTranslation(11.25f,-5.0f,35.0f)
.addChild(new ShapeObject().setUSE("box")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,.25f).setTranslation(11.25f,-5.75f,34.85f)
.addChild(new ShapeObject().setUSE("box")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,.25f).setTranslation(12.0f,-5.75f,34.85f)
.addChild(new ShapeObject().setUSE("box")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,.25f).setTranslation(13.5f,-5.75f,34.85f)
.addChild(new ShapeObject().setUSE("box")))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,.25f).setTranslation(14.25f,-5.75f,34.85f)
.addChild(new ShapeObject().setUSE("box"))))
.addChild(new GroupObject("CIWS")
.addChild(new TransformObject("Mount21").setTranslation(11.0f,-6.5f,23.5f)
.addChild(new ShapeObject()
.setGeometry(new CylinderObject().setHeight(1.5f).setRadius(.5f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject("White2").setAmbientIntensity(.5f).setDiffuseColor(1.0f,1.0f,1.0f).setEmissiveColor(1.0f,1.0f,1.0f)))))
.addChild(new TransformObject().setTranslation(11.0f,-7.25f,23.5f)
.addChild(new ShapeObject("mount")
.setGeometry(new SphereObject().setRadius(.5f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("White2")))))
.addChild(new TransformObject().setTranslation(10.4f,-4.85f,22.9f)
.addChild(new ShapeObject()
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("haze")))
.setGeometry(new ExtrusionObject().setBeginCap(false).setCrossSection(new MFVec2fObject(new float[] {0.0f,0.0f,0.0f,.9f,1.25f,.9f,1.25f,0.0f,0.0f,0.0f})).setEndCap(false).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,0.0f,0.0f,1.25f})))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,1.57f).setTranslation(11.5f,-4.85f,24.15f)
.addChild(new ShapeObject("side_CIWS")
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {0.0f,0.0f,.15f,.9f,.75f,1.05f,1.20f,.9f,1.35f,0.0f,0.0f,0.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,.25f,0.0f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,1.57f).setTranslation(10.25f,-4.85f,24.15f)
.addChild(new ShapeObject("side_CIWS_port")
.setGeometry(new ExtrusionObject().setCrossSection(new MFVec2fObject(new float[] {0.0f,0.0f,.15f,.9f,.75f,1.05f,1.20f,.9f,1.35f,0.0f,0.0f,0.0f})).setSpine(new MFVec3fObject(new float[] {0.0f,0.0f,0.0f,.25f,0.0f,0.0f})))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Haze_Gray")))))
.addChild(new TransformObject().setRotation(1.0f,0.0f,0.0f,-1.25f).setTranslation(11.0f,-5.65f,24.5f)
.addChild(new ShapeObject("Barrel")
.setGeometry(new CylinderObject().setHeight(1f).setRadius(.05f))
.setAppearance(new AppearanceObject()
.setMaterial(new MaterialObject().setUSE("Black"))))))));
}
// end of initialize() method
/** The initialized model object, created within initialize() method. */
private X3DObject x3dModel;
/** Provide a
* shallow copy
* of the X3D model.
* @see X3DObject
* @return SuperStructure 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 SuperStructure().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: \"SuperStructure\" 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 \"SuperStructure\" self-validation test results: ");
String validationResults = thisExampleX3dObject.validationReport();
System.out.println(validationResults);
}
}
}