Interface X3DShaderNode
- All Superinterfaces:
X3DAppearanceChildNode,X3DNode
- All Known Subinterfaces:
ComposedShader,PackagedShader,ProgramShader
- All Known Implementing Classes:
ComposedShader,PackagedShader,ProgramShader
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).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanProvide boolean value from outputOnly SFBool field named isSelected.booleanProvide 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.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
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:
getMetadatain interfaceX3DAppearanceChildNode- Specified by:
getMetadatain interfaceX3DNode- Returns:
- value of metadata field
- See Also:
-
setMetadata
Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.- Specified by:
setMetadatain interfaceX3DAppearanceChildNode- Specified by:
setMetadatain 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:
-