Class Example05

java.lang.Object
Basic.Vrml97Specification.Example05

public class Example05 extends Object

VRML 97 specification example: This Script node decides whether or not to open a bank vault given openVault and combinationEntered messages. To do this, it remembers whether or not the correct combination has been entered. The Script node combined with a Sphere, a TouchSensor and a Sound node to show how is works. When the pointing device is over the sphere, the combinationEntered eventIn of the Script is sent. Then, when the Sphere is touched (typically when the mouse button is pressed) the Script is sent the openVault eventIn. This generates the vaultUnlocked eventOut which starts a 'click' sound.

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

Scene Meta Information
meta tags   Document Metadata
title Example05.x3d
creator Don Brutzman
created 24 May 2000
modified 28 October 2019
creator X3D working group
description VRML 97 specification example: This Script node decides whether or not to open a bank vault given openVault and combinationEntered messages. To do this, it remembers whether or not the correct combination has been entered. The Script node combined with a Sphere, a TouchSensor and a Sound node to show how is works. When the pointing device is over the sphere, the combinationEntered eventIn of the Script is sent. Then, when the Sphere is touched (typically when the mouse button is pressed) the Script is sent the openVault eventIn. This generates the vaultUnlocked eventOut which starts a 'click' sound.
specificationUrl originals/exampleD_5.wrl
specificationSection VRML 97, ISO/IEC 14772-1, Part 1: Functional specification and UTF-8 encoding, D.5 Scripting example
specificationUrl https://www.web3d.org/documents/specifications/14772/V2.0/part1/examples.html#D.5
identifier https://www.web3d.org/x3d/content/examples/Basic/Vrml97Specification/Example05.x3d
generator X3D-Edit 3.3, 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 (version control) is used to create Java source code from an original .x3d model.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor to create this object.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.web3d.x3d.jsail.Core.X3D
    Provide a shallow copy of the X3D model.
    final void
    Create and initialize the X3D model for this object.
    static void
    main(String[] args)
    Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Example05

      public Example05()
      Default constructor to create this object.
  • Method Details