Interface X3DShaderNode

All Superinterfaces:
X3DAppearanceChildNode, X3DNode
All Known Subinterfaces:
ComposedShader, PackagedShader, ProgramShader
All Known Implementing Classes:
ComposedShader, PackagedShader, ProgramShader

public interface X3DShaderNode extends X3DAppearanceChildNode
Base type for all nodes that specify a programmable shader.

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.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Provide boolean value from outputOnly SFBool field named isSelected.
    boolean
    Provide boolean value from outputOnly SFBool field named isValid.
    Provide String enumeration value (baseType xs:NMTOKEN) ["Cg" | "GLSL" | "HLSL" | 'etc.'] from initializeOnly SFString field named language.
    Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
    setActivate(boolean newValue)
    Accessor method to assign boolean value to inputOnly SFBool field named activate.
    setLanguage(String newValue)
    Accessor method to assign String enumeration value ("Cg" | "GLSL" | "HLSL") to initializeOnly SFString field named language.
    Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
  • Method Details

    • setActivate

      X3DShaderNode setActivate(boolean newValue)
      Accessor method to assign boolean value to inputOnly SFBool field named activate.
      Parameters:
      newValue - is new value for the activate field.
      Returns:
      X3DShaderNode - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getIsSelected

      boolean getIsSelected()
      Provide boolean value from outputOnly SFBool field named isSelected.
      Returns:
      value of isSelected field
    • getIsValid

      boolean getIsValid()
      Provide boolean value from outputOnly SFBool field named isValid.
      Returns:
      value of isValid field
    • getLanguage

      String getLanguage()
      Provide String enumeration value (baseType xs:NMTOKEN) ["Cg" | "GLSL" | "HLSL" | 'etc.'] from initializeOnly SFString field named language.
      Returns:
      value of language field
    • setLanguage

      X3DShaderNode setLanguage(String newValue)
      Accessor method to assign String enumeration value ("Cg" | "GLSL" | "HLSL") to initializeOnly SFString field named language.
      Parameters:
      newValue - is new value for the language field.
      Returns:
      X3DShaderNode - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
    • getMetadata

      X3DMetadataObject getMetadata()
      Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
      Specified by:
      getMetadata in interface X3DAppearanceChildNode
      Specified by:
      getMetadata in interface X3DNode
      Returns:
      value of metadata field
      See Also:
    • setMetadata

      X3DShaderNode setMetadata(X3DMetadataObject newValue)
      Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
      Specified by:
      setMetadata in interface X3DAppearanceChildNode
      Specified by:
      setMetadata in interface X3DNode
      Parameters:
      newValue - is new value for the metadata field.
      Returns:
      X3DShaderNode - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
      See Also: