package Basic.UniversalMediaMaterials;
/*
Copyright (c) 1995-2023 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 (https://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 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.Lighting.*;
import org.web3d.x3d.jsail.Navigation.*;
import org.web3d.x3d.jsail.Networking.*;
import org.web3d.x3d.jsail.Shape.*;
import org.web3d.x3d.jsail.Text.*;
import org.web3d.x3d.jsail.Time.*;
// Javadoc metadata annotations follow, see below for X3DJSAIL Java source code.
/**
*
Example ExternProtoDeclare/ProtoInstance usage of X3D/VRML materials, originally converted from SGI's Open Inventor material examples.
Related links: NeonExamples.java source, NeonExamples 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
(version control)
is used to create Java source code from an original .x3d
model.
* @author David Roussel
*/
public class NeonExamples
{
/** Default constructor to create this object. */
public NeonExamples ()
{
initialize();
}
/** Create and initialize the X3D model for this object. */
public final void initialize()
{
try { // catch-all
x3dModel = new X3D().setProfile(X3D.PROFILE_IMMERSIVE).setVersion(X3D.VERSION_3_0)
.setHead(new head()
.addMeta(new meta().setName(meta.NAME_TITLE ).setContent("NeonExamples.x3d"))
.addMeta(new meta().setName(meta.NAME_DESCRIPTION).setContent("Example ExternProtoDeclare/ProtoInstance usage of X3D/VRML materials, originally converted from SGI's Open Inventor material examples."))
.addMeta(new meta().setName(meta.NAME_CREATOR ).setContent("David Roussel"))
.addMeta(new meta().setName(meta.NAME_TRANSLATOR ).setContent("James Harney, Don Brutzman NPS"))
.addMeta(new meta().setName(meta.NAME_CREATED ).setContent("7 April 2002"))
.addMeta(new meta().setName(meta.NAME_MODIFIED ).setContent("20 October 2019"))
.addMeta(new meta().setName(meta.NAME_REFERENCE ).setContent("http://vrmlstuff.free.fr/materials"))
.addMeta(new meta().setName(meta.NAME_SUBJECT ).setContent("Universal Media Material Library"))
.addMeta(new meta().setName(meta.NAME_IDENTIFIER ).setContent("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonExamples.x3d"))
.addMeta(new meta().setName(meta.NAME_GENERATOR ).setContent("Vrml97ToX3dNist, http://ovrt.nist.gov/v2_x3d.html"))
.addMeta(new meta().setName(meta.NAME_LICENSE ).setContent("../license.html")))
.setScene(new Scene()
.addChild(new WorldInfo().setTitle("NeonExamples.x3d"))
.addChild(new ExternProtoDeclare("Neon00").setName("Neon00").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon00","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon00","NeonPrototypes.wrl#Neon00","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon00"}))
.addChild(new ExternProtoDeclare("Neon01").setName("Neon01").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon01","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon01","NeonPrototypes.wrl#Neon01","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon01"}))
.addChild(new ExternProtoDeclare("Neon02").setName("Neon02").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon02","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon02","NeonPrototypes.wrl#Neon02","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon02"}))
.addChild(new ExternProtoDeclare("Neon03").setName("Neon03").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon03","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon03","NeonPrototypes.wrl#Neon03","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon03"}))
.addChild(new ExternProtoDeclare("Neon04").setName("Neon04").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon04","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon04","NeonPrototypes.wrl#Neon04","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon04"}))
.addChild(new ExternProtoDeclare("Neon05").setName("Neon05").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon05","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon05","NeonPrototypes.wrl#Neon05","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon05"}))
.addChild(new ExternProtoDeclare("Neon06").setName("Neon06").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon06","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon06","NeonPrototypes.wrl#Neon06","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon06"}))
.addChild(new ExternProtoDeclare("Neon07").setName("Neon07").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon07","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon07","NeonPrototypes.wrl#Neon07","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon07"}))
.addChild(new ExternProtoDeclare("Neon08").setName("Neon08").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon08","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon08","NeonPrototypes.wrl#Neon08","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon08"}))
.addChild(new ExternProtoDeclare("Neon09").setName("Neon09").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon09","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon09","NeonPrototypes.wrl#Neon09","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon09"}))
.addChild(new ExternProtoDeclare("Neon10").setName("Neon10").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon10","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon10","NeonPrototypes.wrl#Neon10","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon10"}))
.addChild(new ExternProtoDeclare("Neon11").setName("Neon11").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon11","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon11","NeonPrototypes.wrl#Neon11","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon11"}))
.addChild(new ExternProtoDeclare("Neon12").setName("Neon12").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon12","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon12","NeonPrototypes.wrl#Neon12","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon12"}))
.addChild(new ExternProtoDeclare("Neon13").setName("Neon13").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon13","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon13","NeonPrototypes.wrl#Neon13","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon13"}))
.addChild(new ExternProtoDeclare("Neon14").setName("Neon14").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon14","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon14","NeonPrototypes.wrl#Neon14","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon14"}))
.addChild(new ExternProtoDeclare("Neon15").setName("Neon15").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon15","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon15","NeonPrototypes.wrl#Neon15","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon15"}))
.addChild(new ExternProtoDeclare("Neon16").setName("Neon16").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon16","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon16","NeonPrototypes.wrl#Neon16","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon16"}))
.addChild(new ExternProtoDeclare("Neon17").setName("Neon17").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon17","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon17","NeonPrototypes.wrl#Neon17","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon17"}))
.addChild(new ExternProtoDeclare("Neon18").setName("Neon18").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon18","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon18","NeonPrototypes.wrl#Neon18","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon18"}))
.addChild(new ExternProtoDeclare("Neon19").setName("Neon19").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon19","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon19","NeonPrototypes.wrl#Neon19","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon19"}))
.addChild(new ExternProtoDeclare("Neon20").setName("Neon20").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon20","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon20","NeonPrototypes.wrl#Neon20","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon20"}))
.addChild(new ExternProtoDeclare("Neon21").setName("Neon21").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon21","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon21","NeonPrototypes.wrl#Neon21","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon21"}))
.addChild(new ExternProtoDeclare("Neon22").setName("Neon22").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon22","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon22","NeonPrototypes.wrl#Neon22","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon22"}))
.addChild(new ExternProtoDeclare("Neon23").setName("Neon23").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon23","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon23","NeonPrototypes.wrl#Neon23","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon23"}))
.addChild(new ExternProtoDeclare("Neon24").setName("Neon24").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon24","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon24","NeonPrototypes.wrl#Neon24","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon24"}))
.addChild(new ExternProtoDeclare("Neon25").setName("Neon25").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon25","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon25","NeonPrototypes.wrl#Neon25","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon25"}))
.addChild(new ExternProtoDeclare("Neon26").setName("Neon26").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon26","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon26","NeonPrototypes.wrl#Neon26","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon26"}))
.addChild(new ExternProtoDeclare("Neon27").setName("Neon27").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon27","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon27","NeonPrototypes.wrl#Neon27","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon27"}))
.addChild(new ExternProtoDeclare("Neon28").setName("Neon28").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon28","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon28","NeonPrototypes.wrl#Neon28","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon28"}))
.addChild(new ExternProtoDeclare("Neon29").setName("Neon29").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon29","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon29","NeonPrototypes.wrl#Neon29","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon29"}))
.addChild(new ExternProtoDeclare("Neon30").setName("Neon30").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon30","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon30","NeonPrototypes.wrl#Neon30","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon30"}))
.addChild(new ExternProtoDeclare("Neon31").setName("Neon31").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon31","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon31","NeonPrototypes.wrl#Neon31","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon31"}))
.addChild(new ExternProtoDeclare("Neon32").setName("Neon32").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon32","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon32","NeonPrototypes.wrl#Neon32","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon32"}))
.addChild(new ExternProtoDeclare("Neon33").setName("Neon33").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon33","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon33","NeonPrototypes.wrl#Neon33","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon33"}))
.addChild(new ExternProtoDeclare("Neon34").setName("Neon34").setAppinfo("UniversalMediaMaterials prototype").setDocumentation("https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials").setUrl(new String[] {"NeonPrototypes.x3d#Neon34","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.x3d#Neon34","NeonPrototypes.wrl#Neon34","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.wrl#Neon34"}))
.addChild(new Group()
.addChild(new NavigationInfo().setHeadlight(false))
.addChild(new Viewpoint("Front").setDescription("Front view").setPosition(0.0,0.0,12.0))
.addChild(new Viewpoint("PersRight").setDescription("Low Right").setOrientation(0.74291,0.30772,0.59447,1.2171).setPosition(6.9282,-6.9282,6.9282))
.addChild(new Viewpoint("PersLeft").setDescription("Low Left").setOrientation(0.74291,-0.30772,-0.59447,1.2171).setPosition(-6.9282,-6.9282,6.9282))
.addChild(new Viewpoint("Back").setDescription("Back view").setOrientation(0.0,1.0,0.0,3.1416).setPosition(0.0,0.0,-12.0))
.addChild(new Transform("Close_travel")
.addChild(new PositionInterpolator("Close_Mover").setKey(new double[] {0.0,0.25,0.5,0.75,1.0}).setKeyValue(new MFVec3f(new double[] {0.0,2.5,0.0,0.0,0.0,0.0,0.0,-2.5,0.0,0.0,0.0,0.0,0.0,2.5,0.0})))
.addChild(new TimeSensor("Close_Time").setCycleInterval(12.0).setLoop(true))
.addChild(new Viewpoint("Close").setDescription("Close Front").setPosition(0.0,0.0,6.0)))
.addChild(new DirectionalLight().setDirection(1.0,-1.0,-1.0))
.addChild(new DirectionalLight().setDirection(0.0,1.0,-0.5).setIntensity(0.5))
.addChild(new Anchor().setDescription("Back to front view").setUrl(new String[] {"#Front"})
.addChild(new Transform().setTranslation(0.0,0.0,-0.5)
.addChild(new Inline().setUrl(new String[] {"gridBack.x3d","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/gridBack.x3d","gridBack.wrl","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/gridBack.wrl"}))))
.addChild(new Viewpoint("View00").setDescription("Neon00").setPosition(-3.75,3.75,3.0))
.addChild(new Transform().setTranslation(-3.75,3.75,0.0)
.addChild(new Anchor().setDescription("Neon00 view").setUrl(new String[] {"#View00"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon00").setContainerField("material")))
.setGeometry(new Sphere("Ball").setRadius(0.5))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon00").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon00","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon00"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material("TextMat").setDiffuseColor(1.0,1.0,1.0)))
.setGeometry(new Text().setString(new String[] {"Neon00"})
.setFontStyle(new FontStyle("Style").setFamily(new String[] {"SANS"}).setJustify(FontStyle.JUSTIFY_MIDDLE_MIDDLE).setSize(0.3).setCssStyle("BOLD")))))))
.addChild(new Viewpoint("View01").setDescription("Neon01").setPosition(-2.25,3.75,3.0))
.addChild(new Transform().setTranslation(-2.25,3.75,0.0)
.addChild(new Anchor().setDescription("Neon01 view").setUrl(new String[] {"#View01"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon01").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon01").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon01","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon01"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon01"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View02").setDescription("Neon02").setPosition(-0.75,3.75,3.0))
.addChild(new Transform().setTranslation(-0.75,3.75,0.0)
.addChild(new Anchor().setDescription("Neon02 view").setUrl(new String[] {"#View02"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon02").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon02").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon02","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon02"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon02"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View03").setDescription("Neon03").setPosition(0.75,3.75,3.0))
.addChild(new Transform().setTranslation(0.75,3.75,0.0)
.addChild(new Anchor().setDescription("Neon03 view").setUrl(new String[] {"#View03"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon03").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon03").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon03","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon03"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon03"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View04").setDescription("Neon04").setPosition(2.25,3.75,3.0))
.addChild(new Transform().setTranslation(2.25,3.75,0.0)
.addChild(new Anchor().setDescription("Neon04 view").setUrl(new String[] {"#View04"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon04").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon04").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon04","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon04"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon04"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View05").setDescription("Neon05").setPosition(3.75,3.75,3.0))
.addChild(new Transform().setTranslation(3.75,3.75,0.0)
.addChild(new Anchor().setDescription("Neon05 view").setUrl(new String[] {"#View05"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon05").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon05").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon05","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon05"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon05"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View06").setDescription("Neon06").setPosition(-3.75,2.25,3.0))
.addChild(new Transform().setTranslation(-3.75,2.25,0.0)
.addChild(new Anchor().setDescription("Neon06 view").setUrl(new String[] {"#View06"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon06").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon06").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon06","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon06"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon06"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View07").setDescription("Neon07").setPosition(-2.25,2.25,3.0))
.addChild(new Transform().setTranslation(-2.25,2.25,0.0)
.addChild(new Anchor().setDescription("Neon07 view").setUrl(new String[] {"#View07"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon07").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon07").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon07","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon07"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon07"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View08").setDescription("Neon08").setPosition(-0.75,2.25,3.0))
.addChild(new Transform().setTranslation(-0.75,2.25,0.0)
.addChild(new Anchor().setDescription("Neon08 view").setUrl(new String[] {"#View08"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon08").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon08").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon08","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon08"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon08"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View09").setDescription("Neon09").setPosition(0.75,2.25,3.0))
.addChild(new Transform().setTranslation(0.75,2.25,0.0)
.addChild(new Anchor().setDescription("Neon09 view").setUrl(new String[] {"#View09"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon09").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon09").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon09","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon09"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon09"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View10").setDescription("Neon10").setPosition(2.25,2.25,3.0))
.addChild(new Transform().setTranslation(2.25,2.25,0.0)
.addChild(new Anchor().setDescription("Neon10 view").setUrl(new String[] {"#View10"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon10").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon10").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon10","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon10"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon10"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View11").setDescription("Neon11").setPosition(3.75,2.25,3.0))
.addChild(new Transform().setTranslation(3.75,2.25,0.0)
.addChild(new Anchor().setDescription("Neon11 view").setUrl(new String[] {"#View11"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon11").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon11").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon11","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon11"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon11"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View12").setDescription("Neon12").setPosition(-3.75,0.75,3.0))
.addChild(new Transform().setTranslation(-3.75,0.75,0.0)
.addChild(new Anchor().setDescription("Neon12 view").setUrl(new String[] {"#View12"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon12").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon12").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon12","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon12"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon12"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View13").setDescription("Neon13").setPosition(-2.25,0.75,3.0))
.addChild(new Transform().setTranslation(-2.25,0.75,0.0)
.addChild(new Anchor().setDescription("Neon13 view").setUrl(new String[] {"#View13"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon13").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon13").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon13","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon13"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon13"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View14").setDescription("Neon14").setPosition(-0.75,0.75,3.0))
.addChild(new Transform().setTranslation(-0.75,0.75,0.0)
.addChild(new Anchor().setDescription("Neon14 view").setUrl(new String[] {"#View14"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon14").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon14").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon4","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon14"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon14"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View15").setDescription("Neon15").setPosition(0.75,0.75,3.0))
.addChild(new Transform().setTranslation(0.75,0.75,0.0)
.addChild(new Anchor().setDescription("Neon15 view").setUrl(new String[] {"#View15"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon15").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon15").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon5","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon15"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon15"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View16").setDescription("Neon16").setPosition(2.25,0.75,3.0))
.addChild(new Transform().setTranslation(2.25,0.75,0.0)
.addChild(new Anchor().setDescription("Neon16 view").setUrl(new String[] {"#View16"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon16").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon16").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon16","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon16"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon16"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View17").setDescription("Neon17").setPosition(3.75,0.75,3.0))
.addChild(new Transform().setTranslation(3.75,0.75,0.0)
.addChild(new Anchor().setDescription("Neon17 view").setUrl(new String[] {"#View17"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon17").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon17").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon17","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon17"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon17"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View18").setDescription("Neon18").setPosition(-3.75,-0.75,3.0))
.addChild(new Transform().setTranslation(-3.75,-0.75,0.0)
.addChild(new Anchor().setDescription("Neon18 view").setUrl(new String[] {"#View18"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon18").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon18").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon18","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon18"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon18"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View19").setDescription("Neon19").setPosition(-2.25,-0.75,3.0))
.addChild(new Transform().setTranslation(-2.25,-0.75,0.0)
.addChild(new Anchor().setDescription("Neon19 view").setUrl(new String[] {"#View19"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon19").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon19").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon19","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon19"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon19"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View20").setDescription("Neon20").setPosition(-0.75,-0.75,3.0))
.addChild(new Transform().setTranslation(-0.75,-0.75,0.0)
.addChild(new Anchor().setDescription("Neon20 view").setUrl(new String[] {"#View20"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon20").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon20").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon20","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon20"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon20"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View21").setDescription("Neon21").setPosition(0.75,-0.75,3.0))
.addChild(new Transform().setTranslation(0.75,-0.75,0.0)
.addChild(new Anchor().setDescription("Neon21 view").setUrl(new String[] {"#View21"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon21").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon21").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon21","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon21"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon21"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View22").setDescription("Neon22").setPosition(2.25,-0.75,3.0))
.addChild(new Transform().setTranslation(2.25,-0.75,0.0)
.addChild(new Anchor().setDescription("Neon22 view").setUrl(new String[] {"#View22"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon22").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon22").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon22","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon22"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon22"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View23").setDescription("Neon23").setPosition(3.75,-0.75,3.0))
.addChild(new Transform().setTranslation(3.75,-0.75,0.0)
.addChild(new Anchor().setDescription("Neon23 view").setUrl(new String[] {"#View23"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon23").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon23").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon23","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon23"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon23"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View24").setDescription("Neon24").setPosition(-3.75,-2.25,3.0))
.addChild(new Transform().setTranslation(-3.75,-2.25,0.0)
.addChild(new Anchor().setDescription("Neon24 view").setUrl(new String[] {"#View24"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon24").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon24").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon24","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon24"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon24"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View25").setDescription("Neon25").setPosition(-2.25,-2.25,3.0))
.addChild(new Transform().setTranslation(-2.25,-2.25,0.0)
.addChild(new Anchor().setDescription("Neon25 view").setUrl(new String[] {"#View25"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon25").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon25").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon25","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon25"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon25"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View26").setDescription("Neon26").setPosition(-0.75,-2.25,3.0))
.addChild(new Transform().setTranslation(-0.75,-2.25,0.0)
.addChild(new Anchor().setDescription("Neon26 view").setUrl(new String[] {"#View26"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon26").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon26").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon26","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon26"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon26"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View27").setDescription("Neon27").setPosition(0.75,-2.25,3.0))
.addChild(new Transform().setTranslation(0.75,-2.25,0.0)
.addChild(new Anchor().setDescription("Neon27 view").setUrl(new String[] {"#View27"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon27").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon27").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon27","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon27"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon27"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View28").setDescription("Neon28").setPosition(2.25,-2.25,3.0))
.addChild(new Transform().setTranslation(2.25,-2.25,0.0)
.addChild(new Anchor().setDescription("Neon28 view").setUrl(new String[] {"#View28"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon28").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon28").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon28","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon28"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon28"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View29").setDescription("Neon29").setPosition(3.75,-2.25,3.0))
.addChild(new Transform().setTranslation(3.75,-2.25,0.0)
.addChild(new Anchor().setDescription("Neon29 view").setUrl(new String[] {"#View29"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon29").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon29").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon29","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon29"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon29"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View30").setDescription("Neon30").setPosition(-3.75,-3.75,3.0))
.addChild(new Transform().setTranslation(-3.75,-3.75,0.0)
.addChild(new Anchor().setDescription("Neon30 view").setUrl(new String[] {"#View30"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon30").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon30").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon30","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon30"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon30"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View31").setDescription("Neon31").setPosition(-2.25,-3.75,3.0))
.addChild(new Transform().setTranslation(-2.25,-3.75,0.0)
.addChild(new Anchor().setDescription("Neon31 view").setUrl(new String[] {"#View31"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon31").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon31").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon31","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon31"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon31"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View32").setDescription("Neon32").setPosition(-0.75,-3.75,3.0))
.addChild(new Transform().setTranslation(-0.75,-3.75,0.0)
.addChild(new Anchor().setDescription("Neon32 view").setUrl(new String[] {"#View32"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon32").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon32").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon32","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon32"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon32"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View33").setDescription("Neon33").setPosition(0.75,-3.75,3.0))
.addChild(new Transform().setTranslation(0.75,-3.75,0.0)
.addChild(new Anchor().setDescription("Neon33 view").setUrl(new String[] {"#View33"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon33").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon33").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon33","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon33"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon33"})
.setFontStyle(new FontStyle().setUSE("Style")))))))
.addChild(new Viewpoint("View34").setDescription("Neon34").setPosition(2.25,-3.75,3.0))
.addChild(new Transform().setTranslation(2.25,-3.75,0.0)
.addChild(new Anchor().setDescription("Neon34 view").setUrl(new String[] {"#View34"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new ProtoInstance("Neon34").setContainerField("material")))
.setGeometry(new Sphere().setUSE("Ball"))))
.addChild(new Transform().setTranslation(0.0,0.3,0.5)
.addChild(new Anchor().setDescription("Neon34").setParameter(new String[] {"target=_source"}).setUrl(new String[] {"NeonPrototypes.html#ProtoDeclare_Neon34","https://www.web3d.org/x3d/content/examples/Basic/UniversalMediaMaterials/NeonPrototypes.html#ProtoDeclare_Neon34"})
.addChild(new Shape()
.setAppearance(new Appearance()
.setMaterial(new Material().setUSE("TextMat")))
.setGeometry(new Text().setString(new String[] {"Neon34"})
.setFontStyle(new FontStyle().setUSE("Style"))))))))
.addChild(new ROUTE().setFromNode("Close_Time").setFromField("fraction_changed").setToNode("Close_Mover").setToField("set_fraction"))
.addChild(new ROUTE().setFromNode("Close_Mover").setFromField("value_changed").setToNode("Close_travel").setToField("set_translation")));
}
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
* shallow copy
* of the X3D model.
* @see X3D
* @return NeonExamples 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 X3D.handleArguments(args)
* @see X3D.validationReport()
* @see CommandLine
* @see CommandLine.USAGE
* @see ConfigurationProperties
*/
public static void main(String args[])
{
System.out.println("Build this X3D model, showing validation diagnostics...");
X3D thisExampleX3dModel = new NeonExamples().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: \"Basic.UniversalMediaMaterials.NeonExamples\" 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("Basic.UniversalMediaMaterials.NeonExamples self-validation test results: ");
if (!validationResults.equals("success"))
System.out.println();
System.out.println(validationResults.trim());
}
}
}