public class MultiTextureObject extends X3DConcreteNode implements MultiTexture
| Modifier and Type | Field and Description |
|---|---|
static float |
ALPHA_DEFAULT_VALUE
SFFloat field named alpha has default value 1f (Java syntax) or 1 (XML syntax).
|
static float[] |
COLOR_DEFAULT_VALUE
SFColor field named color has default value {1f,1f,1f} (Java syntax) or 1 1 1 (XML syntax).
|
static java.lang.String |
COMPONENT
String constant COMPONENT defines X3D component for the MultiTexture element: Texturing
|
static java.lang.String |
containerField_DEFAULT_VALUE
containerField describes typical field relationship of a node to its parent.
|
static java.lang.String |
fromField_ALPHA
fromField ROUTE name for SFFloat field named alpha.
|
static java.lang.String |
fromField_COLOR
fromField ROUTE name for SFColor field named color.
|
static java.lang.String |
fromField_FUNCTION
fromField ROUTE name for MFString field named function.
|
static java.lang.String |
fromField_METADATA
fromField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
fromField_MODE
fromField ROUTE name for MFString field named mode.
|
static java.lang.String |
fromField_SOURCE
fromField ROUTE name for MFString field named source.
|
static java.lang.String |
fromField_TEXTURE
fromField ROUTE name for MFNode field named texture.
|
static java.util.ArrayList<java.lang.String> |
FUNCTION_ALPHAREPLICATE
MFString field named function is an array that can include this quoted enumeration value new String[] {"ALPHAREPLICATE"} (Java syntax) or '"ALPHAREPLICATE"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
FUNCTION_COMPLEMENT
MFString field named function is an array that can include this quoted enumeration value new String[] {"COMPLEMENT"} (Java syntax) or '"COMPLEMENT"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
FUNCTION_DEFAULT_VALUE
MFString field named function has default value equal to an empty list.
|
static int |
LEVEL
Integer constant LEVEL provides default X3D Texturing component level for this element: 2
|
static java.util.ArrayList<java.lang.String> |
MODE_ADD
MFString field named mode is an array that can include this quoted enumeration value new String[] {"ADD"} (Java syntax) or '"ADD"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_ADDSIGNED
MFString field named mode is an array that can include this quoted enumeration value new String[] {"ADDSIGNED"} (Java syntax) or '"ADDSIGNED"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_ADDSIGNED2X
MFString field named mode is an array that can include this quoted enumeration value new String[] {"ADDSIGNED2X"} (Java syntax) or '"ADDSIGNED2X"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_ADDSMOOTH
MFString field named mode is an array that can include this quoted enumeration value new String[] {"ADDSMOOTH"} (Java syntax) or '"ADDSMOOTH"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_BLENDCURRENTALPHA
MFString field named mode is an array that can include this quoted enumeration value new String[] {"BLENDCURRENTALPHA"} (Java syntax) or '"BLENDCURRENTALPHA"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_BLENDDIFFUSEALPHA
MFString field named mode is an array that can include this quoted enumeration value new String[] {"BLENDDIFFUSEALPHA"} (Java syntax) or '"BLENDDIFFUSEALPHA"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_BLENDFACTORALPHA
MFString field named mode is an array that can include this quoted enumeration value new String[] {"BLENDFACTORALPHA"} (Java syntax) or '"BLENDFACTORALPHA"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_BLENDTEXTUREALPHA
MFString field named mode is an array that can include this quoted enumeration value new String[] {"BLENDTEXTUREALPHA"} (Java syntax) or '"BLENDTEXTUREALPHA"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_DEFAULT_VALUE
MFString field named mode has default value equal to an empty list.
|
static java.util.ArrayList<java.lang.String> |
MODE_DOTPRODUCT3
MFString field named mode is an array that can include this quoted enumeration value new String[] {"DOTPRODUCT3"} (Java syntax) or '"DOTPRODUCT3"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_MODULATE
MFString field named mode is an array that can include this quoted enumeration value new String[] {"MODULATE"} (Java syntax) or '"MODULATE"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_MODULATE2X
MFString field named mode is an array that can include this quoted enumeration value new String[] {"MODULATE2X"} (Java syntax) or '"MODULATE2X"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_MODULATE4X
MFString field named mode is an array that can include this quoted enumeration value new String[] {"MODULATE4X"} (Java syntax) or '"MODULATE4X"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_MODULATEALPHA_ADDCOLOR
MFString field named mode is an array that can include this quoted enumeration value new String[] {"MODULATEALPHA_ADDCOLOR"} (Java syntax) or '"MODULATEALPHA_ADDCOLOR"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_MODULATEINVALPHA_ADDCOLOR
MFString field named mode is an array that can include this quoted enumeration value new String[] {"MODULATEINVALPHA_ADDCOLOR"} (Java syntax) or '"MODULATEINVALPHA_ADDCOLOR"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_MODULATEINVCOLOR_ADDALPHA
MFString field named mode is an array that can include this quoted enumeration value new String[] {"MODULATEINVCOLOR_ADDALPHA"} (Java syntax) or '"MODULATEINVCOLOR_ADDALPHA"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_OFF
MFString field named mode is an array that can include this quoted enumeration value new String[] {"OFF"} (Java syntax) or '"OFF"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_REPLACE
MFString field named mode is an array that can include this quoted enumeration value new String[] {"REPLACE"} (Java syntax) or '"REPLACE"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_SELECTARG1
MFString field named mode is an array that can include this quoted enumeration value new String[] {"SELECTARG1"} (Java syntax) or '"SELECTARG1"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_SELECTARG2
MFString field named mode is an array that can include this quoted enumeration value new String[] {"SELECTARG2"} (Java syntax) or '"SELECTARG2"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
MODE_SUBTRACT
MFString field named mode is an array that can include this quoted enumeration value new String[] {"SUBTRACT"} (Java syntax) or '"SUBTRACT"' (XML syntax).
|
static java.lang.String |
NAME
String constant NAME provides name of this element: MultiTexture.
|
static java.util.ArrayList<java.lang.String> |
SOURCE_DEFAULT_VALUE
MFString field named source has default value equal to an empty list.
|
static java.util.ArrayList<java.lang.String> |
SOURCE_DIFFUSE
MFString field named source is an array that can include this quoted enumeration value new String[] {"DIFFUSE"} (Java syntax) or '"DIFFUSE"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
SOURCE_FACTOR
MFString field named source is an array that can include this quoted enumeration value new String[] {"FACTOR"} (Java syntax) or '"FACTOR"' (XML syntax).
|
static java.util.ArrayList<java.lang.String> |
SOURCE_SPECULAR
MFString field named source is an array that can include this quoted enumeration value new String[] {"SPECULAR"} (Java syntax) or '"SPECULAR"' (XML syntax).
|
static java.lang.String |
toField_ALPHA
toField ROUTE name for SFFloat field named alpha.
|
static java.lang.String |
toField_COLOR
toField ROUTE name for SFColor field named color.
|
static java.lang.String |
toField_FUNCTION
toField ROUTE name for MFString field named function.
|
static java.lang.String |
toField_METADATA
toField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
toField_MODE
toField ROUTE name for MFString field named mode.
|
static java.lang.String |
toField_SOURCE
toField ROUTE name for MFString field named source.
|
static java.lang.String |
toField_TEXTURE
toField ROUTE name for MFNode field named texture.
|
CLASS_DEFAULT_VALUE, containerField_ALTERNATE_VALUES, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUEvalidationResult| Constructor and Description |
|---|
MultiTextureObject()
Constructor for MultiTextureObject to initialize member variables with default values.
|
MultiTextureObject(java.lang.String DEFlabel)
Utility constructor that assigns DEF label after initializing member variables with default values.
|
| Modifier and Type | Method and Description |
|---|---|
MultiTextureObject |
addComments(CommentsBlock newCommentsBlock)
Add CommentsBlock to contained commentsList.
|
MultiTextureObject |
addComments(java.lang.String newComment)
Add comment as String to contained commentsList.
|
MultiTextureObject |
addComments(java.lang.String[] newComments)
Add comments as String[] array to contained commentsList.
|
MultiTextureObject |
addFunction(SFStringObject newValue)
Add singleton SFStringObject value to MFString function field.
|
MultiTextureObject |
addFunction(java.lang.String newValue)
Add singleton String value to MFString function field.
|
MultiTextureObject |
addMode(SFStringObject newValue)
Add singleton SFStringObject value to MFString mode field.
|
MultiTextureObject |
addMode(java.lang.String newValue)
Add singleton String value to MFString mode field.
|
MultiTextureObject |
addSource(SFStringObject newValue)
Add singleton SFStringObject value to MFString source field.
|
MultiTextureObject |
addSource(java.lang.String newValue)
Add singleton String value to MFString source field.
|
MultiTextureObject |
addTexture(X3DNode newValue)
Add single child node to existing array of texture nodes (if any).
|
void |
addTexture(X3DNode[] newValue)
Add array of child texture nodes to array of existing nodes (if any).
|
MultiTextureObject |
clearFunction()
Utility method to clear MFString value of function field.
|
MultiTextureObject |
clearMetadata()
Utility method to clear SFNode value of metadata field.
|
MultiTextureObject |
clearMode()
Utility method to clear MFString value of mode field.
|
MultiTextureObject |
clearSource()
Utility method to clear MFString value of source field.
|
MultiTextureObject |
clearTexture()
Utility method to clear MFNode value of texture field.
|
X3DConcreteElement |
findElementByNameValue(java.lang.String nameValue)
Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.
|
X3DConcreteElement |
findElementByNameValue(java.lang.String nameValue,
java.lang.String elementName)
Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.
|
X3DConcreteNode |
findNodeByDEF(java.lang.String DEFvalue)
Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.
|
java.lang.String |
getAccessType(java.lang.String fieldName)
Indicate accessType corresponding to given fieldName.
|
float |
getAlpha()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named alpha.
|
float[] |
getColor()
Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named color.
|
java.lang.String |
getComponent()
Defines X3D component for the MultiTexture element: Texturing
|
int |
getComponentLevel()
Provides default X3D component level for this element: 2
|
java.lang.String |
getContainerFieldDefault()
containerField describes typical field relationship of a node to its parent.
|
java.lang.String |
getElementName()
Provides name of this element: MultiTexture
|
java.lang.String |
getFieldType(java.lang.String fieldName)
Indicate type corresponding to given fieldName.
|
java.lang.String[] |
getFunction()
Provide array of String enumeration results ['"COMPLEMENT"'|'"ALPHAREPLICATE"'|'"etc."'] from inputOutput MFString field named function.
|
java.util.ArrayList<java.lang.String> |
getFunctionList()
Utility method to get ArrayList value of MFString function field, similar to
getFunction(). |
ISObject |
getIS()
Provide field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
java.lang.String[] |
getMode()
Provide array of String enumeration results ['"ADD"'|'"ADDSIGNED"'|'"ADDSIGNED2X"'|'"ADDSMOOTH"'|'"BLENDCURRENTALPHA"'|'"BLENDDIFFUSEALPHA"'|'"BLENDFACTORALPHA"'|'"BLENDTEXTUREALPHA"'|'"DOTPRODUCT3"'|'"MODULATE"'|'"MODULATE2X"'|'"MODULATE4X"'|'"MODULATEALPHA_ADDCOLOR"'|'"MODULATEINVALPHA_ADDCOLOR"'|'"MODULATEINVCOLOR_ADDALPHA"'|'"OFF"'|'"REPLACE"'|'"SELECTARG1"'|'"SELECTARG2"'|'"SUBTRACT"'|'"etc."'] from inputOutput MFString field named mode.
|
java.util.ArrayList<java.lang.String> |
getModeList()
Utility method to get ArrayList value of MFString mode field, similar to
getMode(). |
java.lang.String[] |
getSource()
Provide array of String enumeration results ['"DIFFUSE"'|'"FACTOR"'|'"SPECULAR"'|'"etc."'] from inputOutput MFString field named source.
|
java.util.ArrayList<java.lang.String> |
getSourceList()
Utility method to get ArrayList value of MFString source field, similar to
getSource(). |
X3DNode[] |
getTexture()
Provide array of X3DTextureNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) from inputOutput MFNode field texture.
|
java.util.ArrayList<X3DNode> |
getTextureList()
Utility method to get ArrayList value of MFNode texture field, similar to
getTexture(). |
boolean |
hasElementByNameValue(java.lang.String nameValue,
java.lang.String elementName)
Recursive method to determine whether node or statement with given name attribute is found, meaning both objects are attached to same scene graph.
|
boolean |
hasMetadata()
Indicate whether an object is available for inputOutput SFNode field metadata.
|
boolean |
hasNodeByDEF(java.lang.String DEFvalue)
Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.
|
boolean |
hasTexture()
Indicate whether an object is available for inputOutput MFNode field texture.
|
void |
initialize()
Initialize all member variables to default values.
|
MultiTextureObject |
setAlpha(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named alpha.
|
MultiTextureObject |
setAlpha(SFFloatObject newValue)
Assign typed object value to SFFloat alpha field, similar to
setAlpha(float). |
MultiTextureObject |
setColor(float[] newValue)
Assign 3-tuple float array using RGB values [0..1] using RGB values [0..1] to inputOutput SFColor field named color.
|
MultiTextureObject |
setColor(float red,
float green,
float blue)
Assign values to SFColor color field, similar to
setColor(float[]). |
MultiTextureObject |
setColor(SFColorObject newValue)
Assign typed object value to SFColor color field, similar to
setColor(float[]). |
MultiTextureObject |
setCssClass(SFStringObject newValue)
Assign typed object value to SFString cssClass field, similar to
setCssClass(String). |
MultiTextureObject |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
MultiTextureObject |
setDEF(SFStringObject newValue)
Assign typed object value to SFString DEF field, similar to
setDEF(String). |
MultiTextureObject |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
MultiTextureObject |
setFunction(java.util.ArrayList<java.lang.String> newValue)
Assign ArrayList value of MFString function field, similar to
setFunction(String[]). |
MultiTextureObject |
setFunction(MFStringObject newValue)
Assign typed object value to MFString function field, similar to
setFunction(String[]). |
MultiTextureObject |
setFunction(SFStringObject newValue)
Assign single SFString object value to MFString function field, similar to
setFunction(String[]). |
MultiTextureObject |
setFunction(java.lang.String newValue)
Assign singleton String value to MFString function field, similar to
setFunction(String[]). |
MultiTextureObject |
setFunction(java.lang.String[] newValue)
Assign String enumeration array (""COMPLEMENT""|""ALPHAREPLICATE"") ['"COMPLEMENT"'|'"ALPHAREPLICATE"'|'"etc."'] to inputOutput MFString field named function.
|
MultiTextureObject |
setIS(ISObject newValue)
Assign field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
MultiTextureObject |
setMetadata(ProtoInstanceObject newValue)
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.
|
MultiTextureObject |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
MultiTextureObject |
setMode(java.util.ArrayList<java.lang.String> newValue)
Assign ArrayList value of MFString mode field, similar to
setMode(String[]). |
MultiTextureObject |
setMode(MFStringObject newValue)
Assign typed object value to MFString mode field, similar to
setMode(String[]). |
MultiTextureObject |
setMode(SFStringObject newValue)
Assign single SFString object value to MFString mode field, similar to
setMode(String[]). |
MultiTextureObject |
setMode(java.lang.String newValue)
Assign singleton String value to MFString mode field, similar to
setMode(String[]). |
MultiTextureObject |
setMode(java.lang.String[] newValue)
Assign String enumeration array (""ADD""|""ADDSIGNED""|""ADDSIGNED2X""|""ADDSMOOTH""|""BLENDCURRENTALPHA""|""BLENDDIFFUSEALPHA""|""BLENDFACTORALPHA""|""BLENDTEXTUREALPHA""|""DOTPRODUCT3""|""MODULATE""|""MODULATE2X""|""MODULATE4X""|""MODULATEALPHA_ADDCOLOR""|""MODULATEINVALPHA_ADDCOLOR""|""MODULATEINVCOLOR_ADDALPHA""|""OFF""|""REPLACE""|""SELECTARG1""|""SELECTARG2""|""SUBTRACT"") ['"ADD"'|'"ADDSIGNED"'|'"ADDSIGNED2X"'|'"ADDSMOOTH"'|'"BLENDCURRENTALPHA"'|'"BLENDDIFFUSEALPHA"'|'"BLENDFACTORALPHA"'|'"BLENDTEXTUREALPHA"'|'"DOTPRODUCT3"'|'"MODULATE"'|'"MODULATE2X"'|'"MODULATE4X"'|'"MODULATEALPHA_ADDCOLOR"'|'"MODULATEINVALPHA_ADDCOLOR"'|'"MODULATEINVCOLOR_ADDALPHA"'|'"OFF"'|'"REPLACE"'|'"SELECTARG1"'|'"SELECTARG2"'|'"SUBTRACT"'|'"etc."'] to inputOutput MFString field named mode.
|
MultiTextureObject |
setSource(java.util.ArrayList<java.lang.String> newValue)
Assign ArrayList value of MFString source field, similar to
setSource(String[]). |
MultiTextureObject |
setSource(MFStringObject newValue)
Assign typed object value to MFString source field, similar to
setSource(String[]). |
MultiTextureObject |
setSource(SFStringObject newValue)
Assign single SFString object value to MFString source field, similar to
setSource(String[]). |
MultiTextureObject |
setSource(java.lang.String newValue)
Assign singleton String value to MFString source field, similar to
setSource(String[]). |
MultiTextureObject |
setSource(java.lang.String[] newValue)
Assign String enumeration array (""DIFFUSE""|""FACTOR""|""SPECULAR"") ['"DIFFUSE"'|'"FACTOR"'|'"SPECULAR"'|'"etc."'] to inputOutput MFString field named source.
|
MultiTextureObject |
setTexture(java.util.ArrayList<X3DTextureNode> newValue)
Assign ArrayList value of MFNode texture field, similar to
setTexture(X3DNode[]). |
MultiTextureObject |
setTexture(X3DConcreteNode newValue)
Utility method to set single SFNode as MultiTextureObject texture.
|
void |
setTexture(X3DNode newValue)
Set single child texture node, replacing prior array of existing nodes (if any).
|
MultiTextureObject |
setTexture(X3DNode[] newValue)
Assign X3DTextureNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) to inputOutput MFNode field texture.
|
MultiTextureObject |
setUSE(MultiTextureObject DEFnode)
Assign a USE reference to another DEF node of same node type, similar to
setUSE(String). |
MultiTextureObject |
setUSE(SFStringObject newValue)
Assign typed object value to SFString USE field, similar to
setUSE(String). |
MultiTextureObject |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
java.lang.String |
toStringClassicVRML(int indentLevel)
Recursive method to provide ClassicVRML string serialization.
|
java.lang.String |
toStringVRML97(int indentLevel)
Recursive method to provide VRML97 string serialization.
|
java.lang.String |
toStringX3D(int indentLevel)
Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.
|
java.lang.String |
validate()
Recursive method to validate this element plus all contained nodes and statements,
using both datatype-specification value checks and regular expression (regex) checking of corresponding string values.
|
getContainerFieldAlternateValues, getContainerFieldOverride, getCssClass, getDEF, getUSE, isNode, isStatement, isUSE, resetContainerFieldOverride, setConcreteCssClass, setConcreteDEF, setConcreteUSE, setContainerFieldOverrideclearParentObject, findAncestorElementByName, findAncestorProtoBody, findAncestorSceneObject, findAncestorX3DObject, getPackageName, getParentObject, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorSceneObject, hasAncestorX3DObject, setParentObject, toStringClassicVRML, toStringVRML97, toStringX3Dpublic static final java.util.ArrayList<java.lang.String> FUNCTION_COMPLEMENT
public static final java.util.ArrayList<java.lang.String> FUNCTION_ALPHAREPLICATE
public static final java.util.ArrayList<java.lang.String> MODE_ADD
public static final java.util.ArrayList<java.lang.String> MODE_ADDSIGNED
public static final java.util.ArrayList<java.lang.String> MODE_ADDSIGNED2X
public static final java.util.ArrayList<java.lang.String> MODE_ADDSMOOTH
public static final java.util.ArrayList<java.lang.String> MODE_BLENDCURRENTALPHA
public static final java.util.ArrayList<java.lang.String> MODE_BLENDDIFFUSEALPHA
public static final java.util.ArrayList<java.lang.String> MODE_BLENDFACTORALPHA
public static final java.util.ArrayList<java.lang.String> MODE_BLENDTEXTUREALPHA
public static final java.util.ArrayList<java.lang.String> MODE_DOTPRODUCT3
public static final java.util.ArrayList<java.lang.String> MODE_MODULATE
public static final java.util.ArrayList<java.lang.String> MODE_MODULATE2X
public static final java.util.ArrayList<java.lang.String> MODE_MODULATE4X
public static final java.util.ArrayList<java.lang.String> MODE_MODULATEALPHA_ADDCOLOR
public static final java.util.ArrayList<java.lang.String> MODE_MODULATEINVALPHA_ADDCOLOR
public static final java.util.ArrayList<java.lang.String> MODE_MODULATEINVCOLOR_ADDALPHA
public static final java.util.ArrayList<java.lang.String> MODE_OFF
public static final java.util.ArrayList<java.lang.String> MODE_REPLACE
public static final java.util.ArrayList<java.lang.String> MODE_SELECTARG1
public static final java.util.ArrayList<java.lang.String> MODE_SELECTARG2
public static final java.util.ArrayList<java.lang.String> MODE_SUBTRACT
public static final java.util.ArrayList<java.lang.String> SOURCE_DIFFUSE
public static final java.util.ArrayList<java.lang.String> SOURCE_FACTOR
public static final java.util.ArrayList<java.lang.String> SOURCE_SPECULAR
public static final java.lang.String NAME
public static final java.lang.String COMPONENT
public static final int LEVEL
public static final float ALPHA_DEFAULT_VALUE
public static final float[] COLOR_DEFAULT_VALUE
public static final java.util.ArrayList<java.lang.String> FUNCTION_DEFAULT_VALUE
public static final java.util.ArrayList<java.lang.String> MODE_DEFAULT_VALUE
public static final java.util.ArrayList<java.lang.String> SOURCE_DEFAULT_VALUE
public static final java.lang.String containerField_DEFAULT_VALUE
public static final java.lang.String fromField_ALPHA
public static final java.lang.String toField_ALPHA
public static final java.lang.String fromField_COLOR
public static final java.lang.String toField_COLOR
public static final java.lang.String fromField_FUNCTION
public static final java.lang.String toField_FUNCTION
public static final java.lang.String fromField_METADATA
public static final java.lang.String toField_METADATA
public static final java.lang.String fromField_MODE
public static final java.lang.String toField_MODE
public static final java.lang.String fromField_SOURCE
public static final java.lang.String toField_SOURCE
public static final java.lang.String fromField_TEXTURE
public static final java.lang.String toField_TEXTURE
public MultiTextureObject()
public MultiTextureObject(java.lang.String DEFlabel)
DEFlabel - unique DEF name for this X3D nodepublic final java.lang.String getElementName()
getElementName in class X3DConcreteElementpublic final java.lang.String getComponent()
getComponent in class X3DConcreteElementpublic final int getComponentLevel()
getComponentLevel in class X3DConcreteElementpublic java.lang.String getFieldType(java.lang.String fieldName)
getFieldType in class X3DConcreteElementfieldName - name of field in this X3D nodeConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPEpublic java.lang.String getAccessType(java.lang.String fieldName)
getAccessType in class X3DConcreteElementfieldName - name of field in this X3D nodeConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPEpublic final java.lang.String getContainerFieldDefault()
getContainerFieldDefault in class X3DConcreteNodepublic final void initialize()
initialize in class X3DConcreteNodepublic float getAlpha()
getAlpha in interface MultiTexturepublic MultiTextureObject setAlpha(float newValue)
setAlpha in interface MultiTexturenewValue - is new value for the alpha field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setAlpha(SFFloatObject newValue)
setAlpha(float).newValue - is new value for the alpha field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getColor()
getColor in interface MultiTexturepublic MultiTextureObject setColor(float[] newValue)
setColor in interface MultiTexturenewValue - is new value for the color field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setColor(SFColorObject newValue)
setColor(float[]).newValue - is new value for the color field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setColor(float red, float green, float blue)
setColor(float[]).red - first componentgreen - second componentblue - third componentMultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public java.lang.String[] getFunction()
COMPLEMENT, ALPHAREPLICATE.getFunction in interface MultiTexturepublic java.util.ArrayList<java.lang.String> getFunctionList()
getFunction().public MultiTextureObject setFunction(java.lang.String[] newValue)
COMPLEMENT, ALPHAREPLICATE).
setFunction in interface MultiTexturenewValue - is new value for the function field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setFunction(MFStringObject newValue)
setFunction(String[]).newValue - is new value for the function field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setFunction(SFStringObject newValue)
setFunction(String[]).newValue - is new value for the function field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public MultiTextureObject setFunction(java.lang.String newValue)
setFunction(String[]).newValue - is new value for the function field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public MultiTextureObject setFunction(java.util.ArrayList<java.lang.String> newValue)
setFunction(String[]).newValue - is new value for the function field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject clearFunction()
MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public MultiTextureObject addFunction(java.lang.String newValue)
newValue - is new value to add to the function field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public MultiTextureObject addFunction(SFStringObject newValue)
newValue - is new value to add to the function field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public X3DMetadataObject getMetadata()
getMetadata in interface X3DNodegetMetadata in interface X3DAppearanceChildNodegetMetadata in interface MultiTexturegetMetadata in interface X3DTextureNodegetMetadataProtoInstance(),
X3D Scene Authoring Hints: Metadata Nodespublic MultiTextureObject setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DNodesetMetadata in interface X3DAppearanceChildNodesetMetadata in interface MultiTexturesetMetadata in interface X3DTextureNodesetMetadata in class X3DConcreteNodenewValue - is new value for the metadata field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).setMetadata(ProtoInstanceObject),
X3D Scene Authoring Hints: Metadata Nodespublic MultiTextureObject clearMetadata()
MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public MultiTextureObject setMetadata(ProtoInstanceObject newValue)
setMetadata in class X3DConcreteNodenewValue - is new value for the metadata field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).setMetadata(X3DMetadataObject)public boolean hasMetadata()
getMetadata(),
getMetadataProtoInstance(),
X3D Scene Authoring Hints: Metadata Nodespublic java.lang.String[] getMode()
ADD, ADDSIGNED, ADDSIGNED2X, ADDSMOOTH, BLENDCURRENTALPHA, BLENDDIFFUSEALPHA, BLENDFACTORALPHA, BLENDTEXTUREALPHA, DOTPRODUCT3, MODULATE, MODULATE2X, MODULATE4X, MODULATEALPHA_ADDCOLOR, MODULATEINVALPHA_ADDCOLOR, MODULATEINVCOLOR_ADDALPHA, OFF, REPLACE, SELECTARG1, SELECTARG2, SUBTRACT.getMode in interface MultiTexturepublic java.util.ArrayList<java.lang.String> getModeList()
getMode().public MultiTextureObject setMode(java.lang.String[] newValue)
ADD, ADDSIGNED, ADDSIGNED2X, ADDSMOOTH, BLENDCURRENTALPHA, BLENDDIFFUSEALPHA, BLENDFACTORALPHA, BLENDTEXTUREALPHA, DOTPRODUCT3, MODULATE, MODULATE2X, MODULATE4X, MODULATEALPHA_ADDCOLOR, MODULATEINVALPHA_ADDCOLOR, MODULATEINVCOLOR_ADDALPHA, OFF, REPLACE, SELECTARG1, SELECTARG2, SUBTRACT).
setMode in interface MultiTexturenewValue - is new value for the mode field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setMode(MFStringObject newValue)
setMode(String[]).newValue - is new value for the mode field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setMode(SFStringObject newValue)
setMode(String[]).newValue - is new value for the mode field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public MultiTextureObject setMode(java.lang.String newValue)
setMode(String[]).newValue - is new value for the mode field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public MultiTextureObject setMode(java.util.ArrayList<java.lang.String> newValue)
setMode(String[]).newValue - is new value for the mode field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject clearMode()
MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public MultiTextureObject addMode(java.lang.String newValue)
newValue - is new value to add to the mode field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public MultiTextureObject addMode(SFStringObject newValue)
newValue - is new value to add to the mode field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public java.lang.String[] getSource()
DIFFUSE, FACTOR, SPECULAR.getSource in interface MultiTexturepublic java.util.ArrayList<java.lang.String> getSourceList()
getSource().public MultiTextureObject setSource(java.lang.String[] newValue)
DIFFUSE, FACTOR, SPECULAR).
setSource in interface MultiTexturenewValue - is new value for the source field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setSource(MFStringObject newValue)
setSource(String[]).newValue - is new value for the source field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setSource(SFStringObject newValue)
setSource(String[]).newValue - is new value for the source field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public MultiTextureObject setSource(java.lang.String newValue)
setSource(String[]).newValue - is new value for the source field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public MultiTextureObject setSource(java.util.ArrayList<java.lang.String> newValue)
setSource(String[]).newValue - is new value for the source field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject clearSource()
MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public MultiTextureObject addSource(java.lang.String newValue)
newValue - is new value to add to the source field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public MultiTextureObject addSource(SFStringObject newValue)
newValue - is new value to add to the source field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).MFStringObject.cleanupEnumerationValues(String)public X3DNode[] getTexture()
getTexture in interface MultiTextureX3DTextureNodepublic java.util.ArrayList<X3DNode> getTextureList()
getTexture().public MultiTextureObject setTexture(X3DNode[] newValue)
setTexture in interface MultiTexturenewValue - is new value for the texture field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setTexture(java.util.ArrayList<X3DTextureNode> newValue)
setTexture(X3DNode[]).newValue - is new value for the texture field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject addTexture(X3DNode newValue)
newValue - is new value to be appended the texture field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public void addTexture(X3DNode[] newValue)
addTexture in interface MultiTexturenewValue - is new value array to be appended the texture field.public void setTexture(X3DNode newValue)
setTexture in interface MultiTexturenewValue - is new node for the texture field (restricted to X3DTextureNode)public MultiTextureObject setTexture(X3DConcreteNode newValue)
newValue - MultiTextureObject node to setMultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public MultiTextureObject clearTexture()
MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public boolean hasTexture()
getTexture()public final MultiTextureObject setDEF(java.lang.String newValue)
setDEF in interface X3DNodesetDEF in interface X3DAppearanceChildNodesetDEF in interface MultiTexturesetDEF in interface X3DTextureNodesetDEF in class X3DConcreteNodenewValue - is new value for the DEF field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setDEF(SFStringObject newValue)
setDEF(String).newValue - is new value for the DEF field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final MultiTextureObject setUSE(java.lang.String newValue)
USE node is still an independent object, with the USE value matching the DEF value in the preceding object.
setUSE() method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.setUSE in interface X3DNodesetUSE in interface X3DAppearanceChildNodesetUSE in interface MultiTexturesetUSE in interface X3DTextureNodesetUSE in class X3DConcreteNodenewValue - is new value for the USE field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setUSE(SFStringObject newValue)
setUSE(String).newValue - is new value for the USE field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final MultiTextureObject setCssClass(java.lang.String newValue)
setCssClass in interface X3DNodesetCssClass in interface X3DAppearanceChildNodesetCssClass in interface MultiTexturesetCssClass in interface X3DTextureNodesetCssClass in class X3DConcreteNodenewValue - is new value for the class field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setCssClass(SFStringObject newValue)
setCssClass(String).newValue - is new value for the class field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject setIS(ISObject newValue)
setIS in class X3DConcreteNodenewValue - is new value for the description field.MultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ISObject getIS()
getIS in class X3DConcreteNodepublic MultiTextureObject setUSE(MultiTextureObject DEFnode)
setUSE(String).
setUSE() method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.
DEFnode - must have a DEF value definedMultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public MultiTextureObject addComments(java.lang.String newComment)
addComments in class X3DConcreteElementnewComment - initial valueMultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public MultiTextureObject addComments(java.lang.String[] newComments)
addComments in class X3DConcreteElementnewComments - array of commentsMultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public MultiTextureObject addComments(CommentsBlock newCommentsBlock)
addComments in class X3DConcreteElementnewCommentsBlock - block of comments to addMultiTextureObject - namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public java.lang.String toStringX3D(int indentLevel)
toStringX3D in class X3DConcreteElementindentLevel - number of levels of indentation for this elementX3DObject.FILE_EXTENSION_X3D,
X3DObject.FILE_EXTENSION_XML,
X3DObject.toStringXML(),
X3DObject.toFileXML(String),
X3DObject.toFileX3D(String),
X3D XML Encoding,
X3D Compressed Binary Encoding: X3D Canonical Formpublic java.lang.String toStringClassicVRML(int indentLevel)
toStringClassicVRML in class X3DConcreteElementindentLevel - number of levels of indentation for this elementX3DObject.FILE_EXTENSION_CLASSICVRML,
X3D Resources: Virtual Reality Modeling Language (VRML) 97,
Extensible 3D (X3D) encodings Part 2: Classic VRML encoding,
Extensible 3D (X3D) encodings Part 2: Classic VRML encoding, Annex A: Grammarpublic java.lang.String toStringVRML97(int indentLevel)
toStringVRML97 in class X3DConcreteElementindentLevel - number of levels of indentation for this elementX3DObject.FILE_EXTENSION_VRML97,
X3D Resources: Virtual Reality Modeling Language (VRML) 97,
Virtual Reality Modeling Language (VRML) 97 specification,
VRML 97 v2.1 Amendmentpublic X3DConcreteElement findElementByNameValue(java.lang.String nameValue)
findElementByNameValue in class X3DConcreteElementnameValue - is value of the name field being searched for in this element and child elements(if any)findNodeByDEF(String),
X3DConcreteElement.hasAncestorSceneObject(),
X3DConcreteElement.findAncestorX3DObject()public X3DConcreteElement findElementByNameValue(java.lang.String nameValue, java.lang.String elementName)
findElementByNameValue in class X3DConcreteElementnameValue - is value of the name field being searched for in this element and child elements(if any)elementName - identifies the element of interest (meta MetadataString ProtoDeclare CADassembly ProtoInstance HAnimHumanoid etc.)findNodeByDEF(String),
X3DConcreteElement.hasAncestorSceneObject(),
X3DConcreteElement.findAncestorX3DObject()public boolean hasElementByNameValue(java.lang.String nameValue,
java.lang.String elementName)
nameValue - is value of the name field being searched for in this element and child elements(if any)elementName - identifies the element of interest (meta MetadataString ProtoDeclare CADassembly ProtoInstance HAnimHumanoid etc.)findElementByNameValue(String, String)public X3DConcreteNode findNodeByDEF(java.lang.String DEFvalue)
findNodeByDEF in class X3DConcreteElementDEFvalue - is value of the name field being searched for in this element and child elements(if any)findElementByNameValue(String),
X3DConcreteElement.hasAncestorSceneObject(),
X3DConcreteElement.findAncestorX3DObject()public boolean hasNodeByDEF(java.lang.String DEFvalue)
DEFvalue - is value of the name field being searched for in this element and child elements(if any)findNodeByDEF(String)public java.lang.String validate()
validate in class X3DConcreteElementCopyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.