Interface X3DShaderNode

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

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


Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
See Also:
SAI Java Specification: TODO, X3D Abstract Specification: TODO, X3D Tooltips, X3D Scene Authoring Hints
  • Method Summary

    Modifier and Type Method Description
    boolean getIsSelected()
    Provide boolean value from outputOnly SFBool field named isSelected.
    boolean getIsValid()
    Provide boolean value from outputOnly SFBool field named isValid.
    java.lang.String getLanguage()
    Provide String enumeration value (baseType shaderLanguageValues) ["Cg" | "GLSL" | "HLSL" | 'etc.'] from initializeOnly SFString field named language.
    X3DMetadataObject getMetadata()
    Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
    X3DShaderNode setActivate​(boolean newValue)
    Accessor method to assign boolean value to inputOnly SFBool field named activate.
    X3DShaderNode setLanguage​(java.lang.String newValue)
    Accessor method to assign String enumeration value ("Cg" | "GLSL" | "HLSL") to initializeOnly SFString field named language.
    X3DShaderNode setMetadata​(X3DMetadataObject newValue)
    Accessor method to assign 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

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

      X3DShaderNode setLanguage​(java.lang.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 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:
      X3D Scene Authoring Hints: Metadata Nodes
    • setMetadata

      X3DShaderNode setMetadata​(X3DMetadataObject newValue)
      Accessor method to assign 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:
      X3D Scene Authoring Hints: Metadata Nodes