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 TypeMethodDescriptionfloatgetAlpha()Return the alpha float value.voidgetColor(float[] val) Return the color value in the argument float[]voidgetFunction(String[] val) Return the function value in the argument String[]voidReturn the mode value in the argument String[]intReturn the number of MFString items in the function field.intReturn the number of MFString items in the mode field.intReturn the number of MFString items in the source field.intReturn the number of MFNode items in the texture field.voidReturn the source value in the argument String[]voidgetTexture(X3DNode[] val) Return the texture value in the argument X3DNode[]voidsetAlpha(float val) Set the alpha field.voidsetColor(float[] val) Set the color field.voidsetFunction(String[] val) Set the function field.voidSet the mode field.voidSet the source field.voidsetTexture(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, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getNumModein interfaceMultiTexture- Returns:
- the number of MFString items in the mode field.
-
getMode
Return the mode value in the argument String[]- Specified by:
getModein interfaceMultiTexture- Parameters:
val- The String[] to initialize.
-
setMode
Set the mode field.- Specified by:
setModein interfaceMultiTexture- Parameters:
val- The String[] to set.
-
getNumTexture
public int getNumTexture()Return the number of MFNode items in the texture field.- Specified by:
getNumTexturein interfaceMultiTexture- Returns:
- the number of MFNode items in the texture field.
-
getTexture
Return the texture value in the argument X3DNode[]- Specified by:
getTexturein interfaceMultiTexture- Parameters:
val- The X3DNode[] to initialize.
-
setTexture
Set the texture field.- Specified by:
setTexturein interfaceMultiTexture- Parameters:
val- The X3DNode[] to set.
-
getColor
public void getColor(float[] val) Return the color value in the argument float[]- Specified by:
getColorin interfaceMultiTexture- Parameters:
val- The float[] to initialize.
-
setColor
public void setColor(float[] val) Set the color field.- Specified by:
setColorin interfaceMultiTexture- Parameters:
val- The float[] to set.
-
getAlpha
public float getAlpha()Return the alpha float value.- Specified by:
getAlphain interfaceMultiTexture- Returns:
- The alpha float value.
-
setAlpha
public void setAlpha(float val) Set the alpha field.- Specified by:
setAlphain interfaceMultiTexture- Parameters:
val- The float to set.
-
getNumFunction
public int getNumFunction()Return the number of MFString items in the function field.- Specified by:
getNumFunctionin interfaceMultiTexture- Returns:
- the number of MFString items in the function field.
-
getFunction
Return the function value in the argument String[]- Specified by:
getFunctionin interfaceMultiTexture- Parameters:
val- The String[] to initialize.
-
setFunction
Set the function field.- Specified by:
setFunctionin interfaceMultiTexture- Parameters:
val- The String[] to set.
-
getNumSource
public int getNumSource()Return the number of MFString items in the source field.- Specified by:
getNumSourcein interfaceMultiTexture- Returns:
- the number of MFString items in the source field.
-
getSource
Return the source value in the argument String[]- Specified by:
getSourcein interfaceMultiTexture- Parameters:
val- The String[] to initialize.
-
setSource
Set the source field.- Specified by:
setSourcein interfaceMultiTexture- Parameters:
val- The String[] to set.
-