package Savage.ShipsMilitary.DDG51FlightIIAUnitedStates; /* 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.Grouping.*; import org.web3d.x3d.jsail.Navigation.*; import org.web3d.x3d.jsail.Networking.*; // Javadoc annotations follow, see below for source. /** *

DDG-51 Flight IIA Helo hangers and deck with movable hanger doors and RASTs.

Related links: Prototype.java source, Prototype catalog page, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.

meta tags   Document Metadata
title Prototype.x3d
description DDG-51 Flight IIA Helo hangers and deck with movable hanger doors and RASTs
creator LT Joe Sears, USN
created 21 July 2003
modified 22 August 2018
reference http://combatindex.com/store/3d
drawing http://www.fas.org/man/dod-101/sys/ship/ddg-51.htm
identifier https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/Prototype.x3d
generator X3D-Edit 3.2, https://savage.nps.edu/X3D-Edit
license ../../license.html
 

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 LT Joe Sears, USN */ public class Prototype { /** Default constructor to create this object. */ public Prototype () { 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("Prototype.x3d")) .addMeta(new metaObject().setName(metaObject.NAME_DESCRIPTION).setContent("DDG-51 Flight IIA Helo hangers and deck with movable hanger doors and RASTs")) .addMeta(new metaObject().setName(metaObject.NAME_CREATOR ).setContent("LT Joe Sears, USN")) .addMeta(new metaObject().setName(metaObject.NAME_CREATED ).setContent("21 July 2003")) .addMeta(new metaObject().setName(metaObject.NAME_MODIFIED ).setContent("22 August 2018")) .addMeta(new metaObject().setName(metaObject.NAME_REFERENCE ).setContent("http://combatindex.com/store/3d")) .addMeta(new metaObject().setName(metaObject.NAME_DRAWING ).setContent("http://www.fas.org/man/dod-101/sys/ship/ddg-51.htm")) .addMeta(new metaObject().setName(metaObject.NAME_IDENTIFIER ).setContent("https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/Prototype.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("STBD side").setOrientation(-0.047f,0.998f,0.042f,1.6342f).setPosition(140.2f,8.0f,-88.7f)) .addChild(new ViewpointObject().setDescription("Flight Operations").setOrientation(-0.977f,-0.207f,0.045f,0.1503f).setPosition(-0.9f,28.2f,75.2f)) .addChild(new ViewpointObject().setDescription("25 meters aft of helo hanger looking forward").setOrientation(-1.0f,0.0f,0.007f,0.1154f).setPosition(0.0f,1.9f,26.5f)) .addChild(new ViewpointObject().setDescription("Bow Forward Superstructure").setOrientation(0.002f,0.999f,0.053f,3.101f).setPosition(1.0f,6.4f,-182.1f)) .addChild(new ViewpointObject().setDescription("STBD Chaff Launchers").setOrientation(-0.109f,0.981f,0.161f,1.334f).setPosition(23.1f,6.9f,-78.2f)) .addChild(new ViewpointObject().setDescription("Combat Systems FWD to Aft").setOrientation(0.024f,0.996f,-0.081f,2.3639f).setPosition(22.1f,5.7f,-102.2f)) .addChild(new ViewpointObject().setDescription("Overhead").setOrientation(-0.581f,0.57f,0.581f,2.1039f).setPosition(0.1f,152.4f,-75.5f)) .addChild(new ViewpointObject().setDescription("MK 45 5 Inch Gun").setOrientation(-1.0f,0.016f,0.003f,0.9041f).setPosition(0.0f,12.5f,-120.6f)) .addChild(new TransformObject().setTranslation(0.0f,-5.5f,0.0f) .addChild(new GroupObject("HeloHanger") .addChild(new TransformObject().setTranslation(0.0f,2.55f,0.0f) .addChild(new InlineObject().setUrl(new String[] {"HeloHanger.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/HeloHanger.x3d","HeloHanger.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/HeloHanger.wrl"})))) .addChild(new GroupObject("HullBottom") .addChild(new TransformObject() .addChild(new InlineObject().setUrl(new String[] {"Hull.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/Hull.x3d","Hull.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/Hull.wrl"})))) .addChild(new GroupObject("SuperstructureAft") .addChild(new TransformObject() .addChild(new InlineObject().setUrl(new String[] {"AftSuperstructure.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/AftSuperstructure.x3d","AftSuperstructure.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/AftSuperstructure.wrl"})))) .addChild(new GroupObject("FWDSuperstructure") .addChild(new TransformObject().setTranslation(0.0f,.05f,0.0f) .addChild(new InlineObject().setUrl(new String[] {"ForwardSuperstructure.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/ForwardSuperstructure.x3d","ForwardSuperstructure.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/ForwardSuperstructure.wrl"})))) .addChild(new GroupObject("MK32MOD14SVTT") .addChild(new TransformObject("SVTTSTBD").setTranslation(9.5f,6.05f,-70.0f) .addChild(new InlineObject("SVTT").setUrl(new String[] {"SVTT.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/SVTT.x3d","SVTT.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/SVTT.wrl"}))) .addChild(new TransformObject("SVTTPort").setTranslation(-9.5f,6.05f,-70.0f) .addChild(new InlineObject().setUSE("SVTT")))) .addChild(new GroupObject("Mk45Gun") .addChild(new TransformObject("FiveInchGun").setRotation(0.0f,1.0f,0.0f,-1.57f).setScale(.75f,.75f,.75f).setTranslation(0.0f,8.3f,-126.0f) .addChild(new InlineObject().setUrl(new String[] {"../Frigate-Yavuz-Turkey/Mk45.x3d","https://savage.nps.edu/Savage/ShipsMilitary/Frigate-Yavuz-Turkey/Mk45.x3d","../Frigate-Yavuz-Turkey/Mk45.wrl","https://savage.nps.edu/Savage/ShipsMilitary/Frigate-Yavuz-Turkey/Mk45.wrl"})))) .addChild(new GroupObject("AntennaGroup") .addChild(new TransformObject("SRS-1AntennaGroup") .addChild(new InlineObject().setUrl(new String[] {"SRS1AntennaGroup.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/SRS1AntennaGroup.x3d","SRS1AntennaGroup.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/SRS1AntennaGroup.wrl"})))) .addChild(new SwitchObject("MissileLauncherWG").setWhichChoice(0) .addChild(new TransformObject().setScale(1.2f,1.2f,1.4f).setTranslation(0.0f,10.6f,-26.0f) .addChild(new InlineObject().setUrl(new String[] {"MissileLaunchers.x3d","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/MissileLaunchers.x3d","MissileLaunchers.wrl","https://savage.nps.edu/Savage/ShipsMilitary/DDG-51FlightIIA-UnitedStates/MissileLaunchers.wrl"})))))); } // 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 Prototype 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 Prototype().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: \"Prototype\" 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 \"Prototype\" self-validation test results: "); String validationResults = thisExampleX3dObject.validationReport(); System.out.println(validationResults); } } }