Package org.web3d.x3d.sai.Texturing
Interface MultiTextureCoordinate
- All Superinterfaces:
X3DGeometricPropertyNode,X3DNode,X3DTextureCoordinateNode
- All Known Implementing Classes:
MultiTextureCoordinateObject
public interface MultiTextureCoordinate extends X3DTextureCoordinateNode
MultiTextureCoordinate contains multiple TextureCoordinate or TextureCoordinateGenerator nodes, for use by a parent polygonal geometry node such as IndexedFaceSet or a Triangle* node.
X3D node tooltip: [X3DTextureCoordinateNode] MultiTextureCoordinate contains multiple TextureCoordinate or TextureCoordinateGenerator nodes, for use by a parent polygonal geometry node such as IndexedFaceSet or a Triangle* node. Each of the contained texture coordinate nodes correspond to the multiple texture nodes contained in a sibling Appearance/MultiTexture node.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
X3D node tooltip: [X3DTextureCoordinateNode] MultiTextureCoordinate contains multiple TextureCoordinate or TextureCoordinateGenerator nodes, for use by a parent polygonal geometry node such as IndexedFaceSet or a Triangle* node. Each of the contained texture coordinate nodes correspond to the multiple texture nodes contained in a sibling Appearance/MultiTexture node.
- Hint: add Shape and then polgyonal/planar geometry before adding MultiTextureCoordinate.
- Hint: Texture mapping https://en.wikipedia.org/wiki/Texture_mapping
- Warning: the number of textures to be blended may have a significant impact on performance, depending on available graphics hardware capabilities.
- Hint: multitexturing is accomplished using MultiTexture, MultiTextureCoordinate and MultiTextureTransform nodes.
- Hint: X3D Texturing component Figure 18.2 Lightmap example, https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#f-Lightmapexample
- Hint: X3D Texturing component Table 18.2: Comparison of single texture and multitexture attributes, https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-SingleAndMultitextureAttrs
- Warning: MultiTextureCoordinate may not contain another MultiTextureCoordinate node.
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 voidaddTexCoord(X3DNode[] newValue)Add array of child texCoord nodes to array of existing nodes (if any).X3DMetadataObjectgetMetadata()Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.X3DNode[]getTexCoord()Provide array of X3DNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) from inputOutput MFNode field texCoord.MultiTextureCoordinatesetMetadata(X3DMetadataObject newValue)Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.voidsetTexCoord(X3DNode newValue)Set single child texCoord node, replacing prior array of existing nodes (if any).MultiTextureCoordinatesetTexCoord(X3DNode[] newValue)Accessor method to assign X3DNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) to inputOutput MFNode field texCoord.
-
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 interfaceX3DTextureCoordinateNode- 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 interfaceX3DTextureCoordinateNode- Parameters:
newValue- is new value for the metadata field.- Returns:
MultiTextureCoordinate- 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
-
getTexCoord
X3DNode[] getTexCoord()Provide array of X3DNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) from inputOutput MFNode field texCoord.
Tooltip: [X3DTextureCoordinateNode] Zero or more contained TextureCoordinate or TextureCoordinateGenerator nodes that specify texture coordinates for the different texture channels, used for texture mapping onto corresponding geometry.- Warning: MultiTextureCoordinate may not contain another MultiTextureCoordinate node.
Warning: according to X3D Unified Object Model (X3DUOM), acceptable node types are limited to X3DTextureCoordinateNode.- Returns:
- value of texCoord field
- See Also:
X3DTextureCoordinateNode
-
setTexCoord
Accessor method to assign X3DNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) to inputOutput MFNode field texCoord.
Tooltip: [X3DTextureCoordinateNode] Zero or more contained TextureCoordinate or TextureCoordinateGenerator nodes that specify texture coordinates for the different texture channels, used for texture mapping onto corresponding geometry.- Warning: MultiTextureCoordinate may not contain another MultiTextureCoordinate node.
Note: according to X3D Unified Object Model (X3DUOM), acceptable node types are limited to X3DTextureCoordinateNode.- Parameters:
newValue- is new value for the texCoord field.- Returns:
MultiTextureCoordinate- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addTexCoord
Add array of child texCoord nodes to array of existing nodes (if any).
Note: according to X3D Unified Object Model (X3DUOM), acceptable node types are limited to X3DTextureCoordinateNode.- Parameters:
newValue- is new value array to be appended the texCoord field.
-
setTexCoord
Set single child texCoord node, replacing prior array of existing nodes (if any).- Parameters:
newValue- is new node for the texCoord field
-