Class ColorInterpolator

All Implemented Interfaces:
X3DChildNode, X3DNode, ColorInterpolator, X3DInterpolatorNode

public class ColorInterpolator extends X3DConcreteNode implements ColorInterpolator
ColorInterpolator generates a range of color values.

Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the org.web3d.x3d.jsail classes. X3D node tooltip: [X3DInterpolatorNode] ColorInterpolator generates a range of color values. Authors can ROUTE value_changed output events to various color fields of Material or Color nodes. Hint: typical input connection is ROUTE someTimeSensorDEF.fraction_changed TO thisInterpolatorDEF.set_fraction. Hint: typical output connection is ROUTE thisInterpolatorDEF.value_changed TO someDestinationNodeDEF.set_someAttribute. Hint: X3D Scene Authoring Hints, Color <a href="https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Color" target="_blank">https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Color</a> Hint: example scenes and authoring assets at <a href="https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation" target="_blank">https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter07EventAnimationInterpolation</a> *


Note that SFColor provides a variety of color constants.

Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also:
  • Field Details

    • NAME

      public static final String NAME
      String constant NAME provides name of this element: ColorInterpolator.
      See Also:
    • COMPONENT

      public static final String COMPONENT
      String constant COMPONENT defines X3D component for the ColorInterpolator element: Interpolation
      See Also:
    • LEVEL

      public static final int LEVEL
      Integer constant LEVEL provides default X3D Interpolation component level for this element: 2
      See Also:
    • IS_DEFAULT_VALUE

      public static final IS IS_DEFAULT_VALUE
      SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).
    • KEY_DEFAULT_VALUE

      public static final ArrayList<Float> KEY_DEFAULT_VALUE
      MFFloat field named key has default value equal to an empty list.
    • KEYVALUE_DEFAULT_VALUE

      public static final float[] KEYVALUE_DEFAULT_VALUE
      MFColor field named keyValue has default value equal to an empty list.
    • METADATA_DEFAULT_VALUE

      public static final X3DMetadataObject METADATA_DEFAULT_VALUE
      SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).
    • containerField_DEFAULT_VALUE

      public static final String containerField_DEFAULT_VALUE
      containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes.
      See Also:
    • fromField_IS

      public static final String fromField_IS
      fromField ROUTE name for SFNode field named IS.
      See Also:
    • fromField_KEY

      public static final String fromField_KEY
      fromField ROUTE name for MFFloat field named key.
      See Also:
    • toField_KEY

      public static final String toField_KEY
      toField ROUTE name for MFFloat field named key.
      See Also:
    • fromField_KEYVALUE

      public static final String fromField_KEYVALUE
      fromField ROUTE name for MFColor field named keyValue.
      See Also:
    • toField_KEYVALUE

      public static final String toField_KEYVALUE
      toField ROUTE name for MFColor field named keyValue.
      See Also:
    • fromField_METADATA

      public static final String fromField_METADATA
      fromField ROUTE name for SFNode field named metadata.
      See Also:
    • toField_METADATA

      public static final String toField_METADATA
      toField ROUTE name for SFNode field named metadata.
      See Also:
    • toField_SET_FRACTION

      public static final String toField_SET_FRACTION
      toField ROUTE name for SFFloat field named set_fraction.
      See Also:
    • fromField_VALUE_CHANGED

      public static final String fromField_VALUE_CHANGED
      fromField ROUTE name for SFColor field named value_changed.
      See Also:
  • Constructor Details

    • ColorInterpolator

      public ColorInterpolator()
      Constructor for ColorInterpolator to initialize member variables with default values.
    • ColorInterpolator

      public ColorInterpolator(String DEFlabel)
      Utility constructor that assigns DEF label after initializing member variables with default values.
      Parameters:
      DEFlabel - unique DEF name for this X3D node
  • Method Details