Class SAIMultiTexture
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.texturing.SAIMultiTexture
- All Implemented Interfaces:
MultiTexture
,X3DAppearanceChildNode
,X3DNode
,X3DTextureNode
A concrete implementation of the MultiTexture node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIMultiTexture
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionfloat
getAlpha()
Return the alpha float value.void
getColor
(float[] val) Return the color value in the argument float[]void
getFunction
(String[] val) Return the function value in the argument String[]void
Return the mode value in the argument String[]int
Return the number of MFString items in the function field.int
Return the number of MFString items in the mode field.int
Return the number of MFString items in the source field.int
Return the number of MFNode items in the texture field.void
Return the source value in the argument String[]void
getTexture
(X3DNode[] val) Return the texture value in the argument X3DNode[]void
setAlpha
(float val) Set the alpha field.void
setColor
(float[] val) Set the color field.void
setFunction
(String[] val) Set the function field.void
Set the mode field.void
Set the source field.void
setTexture
(X3DNode[] val) Set the texture field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIMultiTexture
public SAIMultiTexture(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
nodeFactory
-fieldFactory
-queue
-
-
-
Method Details
-
getNumMode
public int getNumMode()Return the number of MFString items in the mode field.- Specified by:
getNumMode
in interfaceMultiTexture
- Returns:
- the number of MFString items in the mode field.
-
getMode
Return the mode value in the argument String[]- Specified by:
getMode
in interfaceMultiTexture
- Parameters:
val
- The String[] to initialize.
-
setMode
Set the mode field.- Specified by:
setMode
in interfaceMultiTexture
- Parameters:
val
- The String[] to set.
-
getNumTexture
public int getNumTexture()Return the number of MFNode items in the texture field.- Specified by:
getNumTexture
in interfaceMultiTexture
- Returns:
- the number of MFNode items in the texture field.
-
getTexture
Return the texture value in the argument X3DNode[]- Specified by:
getTexture
in interfaceMultiTexture
- Parameters:
val
- The X3DNode[] to initialize.
-
setTexture
Set the texture field.- Specified by:
setTexture
in interfaceMultiTexture
- Parameters:
val
- The X3DNode[] to set.
-
getColor
public void getColor(float[] val) Return the color value in the argument float[]- Specified by:
getColor
in interfaceMultiTexture
- Parameters:
val
- The float[] to initialize.
-
setColor
public void setColor(float[] val) Set the color field.- Specified by:
setColor
in interfaceMultiTexture
- Parameters:
val
- The float[] to set.
-
getAlpha
public float getAlpha()Return the alpha float value.- Specified by:
getAlpha
in interfaceMultiTexture
- Returns:
- The alpha float value.
-
setAlpha
public void setAlpha(float val) Set the alpha field.- Specified by:
setAlpha
in interfaceMultiTexture
- Parameters:
val
- The float to set.
-
getNumFunction
public int getNumFunction()Return the number of MFString items in the function field.- Specified by:
getNumFunction
in interfaceMultiTexture
- Returns:
- the number of MFString items in the function field.
-
getFunction
Return the function value in the argument String[]- Specified by:
getFunction
in interfaceMultiTexture
- Parameters:
val
- The String[] to initialize.
-
setFunction
Set the function field.- Specified by:
setFunction
in interfaceMultiTexture
- Parameters:
val
- The String[] to set.
-
getNumSource
public int getNumSource()Return the number of MFString items in the source field.- Specified by:
getNumSource
in interfaceMultiTexture
- Returns:
- the number of MFString items in the source field.
-
getSource
Return the source value in the argument String[]- Specified by:
getSource
in interfaceMultiTexture
- Parameters:
val
- The String[] to initialize.
-
setSource
Set the source field.- Specified by:
setSource
in interfaceMultiTexture
- Parameters:
val
- The String[] to set.
-