Package org.web3d.x3d.sai.Shaders
Interface Matrix3VertexAttribute
- All Superinterfaces:
X3DGeometricPropertyNode,X3DNode,X3DVertexAttributeNode
- All Known Implementing Classes:
Matrix3VertexAttributeObject
public interface Matrix3VertexAttribute extends X3DVertexAttributeNode
Matrix3VertexAttribute defines a set of per-vertex 3x3 matrix attributes.
X3D node tooltip: (X3D version 3.1 or later) [X3DVertexAttributeNode] Matrix3VertexAttribute defines a set of per-vertex 3x3 matrix attributes. *
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
X3D node tooltip: (X3D version 3.1 or later) [X3DVertexAttributeNode] Matrix3VertexAttribute defines a set of per-vertex 3x3 matrix attributes. *
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 X3DMetadataObjectgetMetadata()Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.java.lang.StringgetName()Provide String value from inputOutput SFString field named name.float[]getValue()Provide array of float results from inputOutput MFMatrix3f field named value.Matrix3VertexAttributesetMetadata(X3DMetadataObject newValue)Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.Matrix3VertexAttributesetName(java.lang.String newValue)Accessor method to assign String value to inputOutput SFString field named name.Matrix3VertexAttributesetValue(float[] newValue)Accessor method to assign float array to inputOutput MFMatrix3f field named value.
-
Method Details
-
getMetadata
X3DMetadataObject getMetadata()Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#Metadata
- Specified by:
getMetadatain interfaceX3DGeometricPropertyNode- Specified by:
getMetadatain interfaceX3DNode- Specified by:
getMetadatain interfaceX3DVertexAttributeNode- Returns:
- value of metadata field
- See Also:
- X3D Scene Authoring Hints: Metadata Nodes
-
setMetadata
Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.- Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#Metadata
- Specified by:
setMetadatain interfaceX3DGeometricPropertyNode- Specified by:
setMetadatain interfaceX3DNode- Specified by:
setMetadatain interfaceX3DVertexAttributeNode- Parameters:
newValue- is new value for the metadata field.- Returns:
Matrix3VertexAttribute- 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
-
getName
java.lang.String getName()Provide String value from inputOutput SFString field named name.
Tooltip: Required name for this particular VertexAttribute instance.- Warning: name is not specified if this instance is a USE node.
- Hint: well-defined names can simplify design and debugging through improved author understanding.
- Hint: X3D Scene Authoring Hints, Naming Conventions https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions
- Specified by:
getNamein interfaceX3DVertexAttributeNode- Returns:
- value of name field
-
setName
Accessor method to assign String value to inputOutput SFString field named name.
Tooltip: Required name for this particular VertexAttribute instance.- Warning: name is not specified if this instance is a USE node.
- Hint: well-defined names can simplify design and debugging through improved author understanding.
- Hint: X3D Scene Authoring Hints, Naming Conventions https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions
- Specified by:
setNamein interfaceX3DVertexAttributeNode- Parameters:
newValue- is new value for the name field.- Returns:
Matrix3VertexAttribute- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getValue
float[] getValue()Provide array of float results from inputOutput MFMatrix3f field named value.
Tooltip: value specifies an arbitrary collection of matrix values that will be passed to the shader as per-vertex information.- Hint: the length of the value field shall be a multiple of numComponents.
- Returns:
- value of value field
-
setValue
Accessor method to assign float array to inputOutput MFMatrix3f field named value.
Tooltip: value specifies an arbitrary collection of matrix values that will be passed to the shader as per-vertex information.- Hint: the length of the value field shall be a multiple of numComponents.
- Parameters:
newValue- is new value for the value field.- Returns:
Matrix3VertexAttribute- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-