Class DEF_USE_AnimationExample

java.lang.Object
X3dForAdvancedModeling.Animation.DEF_USE_AnimationExample

public class DEF_USE_AnimationExample extends Object

Illustrate how USE nodes implement copy by reference, resulting in immediate changes when original DEF node is modified. A single MasterMaterial node is animated, and changes in the parent MasterAppearance are reflected throughout the scene graph.

Related links: Catalog page DEF_USE_AnimationExample, source DEF_USE_AnimationExample.java, X3D Resources, X3D Scene Authoring Hints, and X3D Tooltips.

Scene Meta Information
meta tags   Document Metadata
title DEF_USE_AnimationExample.x3d
description Illustrate how USE nodes implement copy by reference, resulting in immediate changes when original DEF node is modified. A single MasterMaterial node is animated, and changes in the parent MasterAppearance are reflected throughout the scene graph.
creator Don Brutzman
modified 1 September 2024
Image DEF_USE_AnimationExampleScreenshot.png
TODO X3D Specification Mantis Issue https://www.web3d.org/member-only/mantis/view.php?id=690
reference Wikipedia: Evaluation strategy, pass by sharing https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_sharing
specificationSection X3D 4.0 Architecture, ISO/IEC 19775-1:2023, clause 4 Concepts, 4.4.3 DEF/USE semantics
specificationUrl https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof/Part01/concepts.html#DEF_USE_Semantics
reference https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter02GeometryPrimitives/GeometryPrimitiveNodes.x3d
identifier https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/DEF_USE_AnimationExample.x3d
generator Altova XMLSpy https://www.altova.com/xmlspy-xml-editor
reference XMLSpyPrettyPrintSpacingTextViewSettings.png
generator X3D-Edit 4.0 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) which is used to create Java source code from an original .x3d model.

  • Constructor Details

    • DEF_USE_AnimationExample

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

    • initialize

      public final void initialize()
      Create and initialize the X3D model for this object.
    • getX3dModel

      public org.web3d.x3d.jsail.Core.X3D getX3dModel()
      Provide a shallow copy of the X3D model.
      Returns:
      DEF_USE_AnimationExample model
      See Also:
    • main

      public static void main(String[] args)
      Default main() method provided for test purposes, uses CommandLine to set global ConfigurationProperties for this object.
      Parameters:
      args - array of input parameters, provided as arguments
      See Also: