Class MaterialModulatorPrototypeExpanded

java.lang.Object
X3dForWebAuthors.Chapter14Prototypes.MaterialModulatorPrototypeExpanded

public class MaterialModulatorPrototypeExpanded extends Object

Provide example for expansion of a MaterialModulator as regular X3D nodes, rather than a ProtoDeclare/ProtoInstance combination. MaterialModulator mimics a Material node and modulates diffuseColor field as an animation effect.

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

Scene Meta Information
meta tags   Document Metadata
title MaterialModulatorPrototypeExpanded.x3d
description Provide example for expansion of a MaterialModulator as regular X3D nodes, rather than a ProtoDeclare/ProtoInstance combination. MaterialModulator mimics a Material node and modulates diffuseColor field as an animation effect.
creator Don Brutzman, John Carlson, Roy Walmsley
created 2 July 2016
modified 20 October 2019
subject X3D prototype expander, IS/connect, Script inputOutput field
Image MaterialModulator.png
reference MaterialModulator.x3d
reference JSON prototype expander https://github.com/coderextreme/X3DJSONLD
TODO Create corresponding web page describing Prototype Expander design.
TODO Create stylesheet converter matching this Prototype Expander design pattern.
TODO Add external ROUTEs to original example as a further test case for Prototype Expander design.
reference https://github.com/coderextreme/X3DJSONLD/blob/master/PrototypeExpander.js
reference https://github.com/coderextreme/X3DJSONLD/blob/master/ServerPrototypeExpander.js
reference X3D Tooltips: ProtoBody https://www.web3d.org/x3d/content/X3dTooltips.html#ProtoBody
reference 4.4.4.3 PROTO definition semantics https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-IS.proof/Part01/concepts.html#PROTOdefinitionsemantics
reference [x3d-public] Prototype Expander, Question on design of instance expansions: http://web3d.org/pipermail/x3d-public_web3d.org/2016-July/004982.html
identifier https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14Prototypes/MaterialModulatorPrototypeExpanded.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 to create Java source code from an .x3d model.

  • Constructor Details

    • MaterialModulatorPrototypeExpanded

      public MaterialModulatorPrototypeExpanded()
      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:
      MaterialModulatorPrototypeExpanded 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: