Package org.web3d.x3d.sai.Shaders
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.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
-
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 xs:NMTOKEN) ["Cg" | "GLSL" | "HLSL" | 'etc.'] from initializeOnly SFString field named language.X3DMetadataObject
getMetadata()
Provide org.web3d.x3d.sai.Core.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 org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
-
Method Details
-
setActivate
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 xs:NMTOKEN) ["Cg" | "GLSL" | "HLSL" | 'etc.'] from initializeOnly SFString field named language.- Returns:
- value of language field
-
setLanguage
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 interfaceX3DAppearanceChildNode
- Specified by:
getMetadata
in interfaceX3DNode
- Returns:
- value of metadata field
- See Also:
- X3D Scene Authoring Hints: Metadata Nodes
-
setMetadata
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 interfaceX3DAppearanceChildNode
- Specified by:
setMetadata
in interfaceX3DNode
- 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
-