public class IndexedTriangleSetObject extends X3DConcreteNode implements IndexedTriangleSet
Modifier and Type | Field and Description |
---|---|
static boolean |
CCW_DEFAULT_VALUE
SFBool field named ccw has default value true (Java syntax) or true (XML syntax).
|
static boolean |
COLORPERVERTEX_DEFAULT_VALUE
SFBool field named colorPerVertex has default value true (Java syntax) or true (XML syntax).
|
static java.lang.String |
COMPONENT
String constant COMPONENT provides X3D component for this element: Rendering.
|
static java.lang.String |
fromField_ATTRIB
fromField ROUTE name for MFNode field named attrib.
|
static java.lang.String |
fromField_COLOR
fromField ROUTE name for SFNode field named color.
|
static java.lang.String |
fromField_COORD
fromField ROUTE name for SFNode field named coord.
|
static java.lang.String |
fromField_FOGCOORD
fromField ROUTE name for SFNode field named fogCoord.
|
static java.lang.String |
fromField_METADATA
fromField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
fromField_NORMAL
fromField ROUTE name for SFNode field named normal.
|
static java.lang.String |
fromField_TEXCOORD
fromField ROUTE name for SFNode field named texCoord.
|
static int |
LEVEL
Integer constant LEVEL provides default X3D component level for this element: 3.
|
static java.lang.String |
NAME
String constant NAME provides name of this element: IndexedTriangleSet.
|
static boolean |
NORMALPERVERTEX_DEFAULT_VALUE
SFBool field named normalPerVertex has default value true (Java syntax) or true (XML syntax).
|
static boolean |
SOLID_DEFAULT_VALUE
SFBool field named solid has default value true (Java syntax) or true (XML syntax).
|
static java.lang.String |
toField_ATTRIB
toField ROUTE name for MFNode field named attrib.
|
static java.lang.String |
toField_COLOR
toField ROUTE name for SFNode field named color.
|
static java.lang.String |
toField_COORD
toField ROUTE name for SFNode field named coord.
|
static java.lang.String |
toField_FOGCOORD
toField ROUTE name for SFNode field named fogCoord.
|
static java.lang.String |
toField_METADATA
toField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
toField_NORMAL
toField ROUTE name for SFNode field named normal.
|
static java.lang.String |
toField_SET_INDEX
toField ROUTE name for MFInt32 field named set_index.
|
static java.lang.String |
toField_TEXCOORD
toField ROUTE name for SFNode field named texCoord.
|
CLASS_DEFAULT_VALUE, containerField_ALTERNATE_VALUES, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUE
validationResult
Constructor and Description |
---|
IndexedTriangleSetObject()
Constructor for IndexedTriangleSetObject to initialize member variables with default values.
|
IndexedTriangleSetObject(java.lang.String DEFname)
Utility constructor that assigns DEF name after initializing member variables with default values
|
Modifier and Type | Method and Description |
---|---|
void |
addAttrib(X3DNode[] newValue)
Add array of child attrib nodes to array of existing nodes (if any).
|
IndexedTriangleSetObject |
addAttrib(X3DVertexAttributeNode newValue)
Add single child attrib node to array of existing nodes (if any).
|
IndexedTriangleSetObject |
addComments(CommentsBlock newCommentsBlock)
Add CommentsBlock to contained commentsList.
|
IndexedTriangleSetObject |
addComments(java.lang.String newComment)
Add comment as String to contained commentsList.
|
IndexedTriangleSetObject |
addComments(java.lang.String[] newComments)
Add comments as String[] array to contained commentsList.
|
IndexedTriangleSetObject |
clearAttrib()
Utility method to clear MFNode value of attrib field.
|
IndexedTriangleSetObject |
clearColor()
Utility method to clear SFNode value of color field.
|
IndexedTriangleSetObject |
clearCoord()
Utility method to clear SFNode value of coord field.
|
IndexedTriangleSetObject |
clearFogCoord()
Utility method to clear SFNode value of fogCoord field.
|
IndexedTriangleSetObject |
clearIndex()
Utility method to clear MFInt32 value of index field.
|
IndexedTriangleSetObject |
clearMetadata()
Utility method to clear SFNode value of metadata field.
|
IndexedTriangleSetObject |
clearNormal()
Utility method to clear SFNode value of normal field.
|
IndexedTriangleSetObject |
clearTexCoord()
Utility method to clear SFNode value of texCoord 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.
|
X3DNode[] |
getAttrib()
Provide array of X3DVertexAttributeNode results (using an array consisting of properly typed nodes or X3DPrototypeInstance objects) from inputOutput MFNode field attrib.
|
java.util.ArrayList<X3DVertexAttributeNode> |
getAttribList()
Utility method to get ArrayList value of MFNode attrib field, similar to
getAttrib() . |
boolean |
getCcw()
Provide boolean value from initializeOnly SFBool field named ccw.
|
X3DColorNode |
getColor()
Provide X3DColorNode instance (using a properly typed node) using RGB values [0..1] from inputOutput SFNode field color.
|
boolean |
getColorPerVertex()
Provide boolean value from initializeOnly SFBool field named colorPerVertex.
|
ProtoInstanceObject |
getColorProtoInstance()
Provide properly typed ProtoInstance for inputOutput SFNode field color, if available.
|
java.lang.String |
getComponent()
Provides X3D component for this element: Rendering.
|
int |
getComponentLevel()
Provides default X3D component level for this element: 3.
|
X3DCoordinateNode |
getCoord()
Provide X3DCoordinateNode instance (using a properly typed node) from inputOutput SFNode field coord.
|
ProtoInstanceObject |
getCoordProtoInstance()
Provide properly typed ProtoInstance for inputOutput SFNode field coord, if available.
|
java.lang.String |
getElementName()
Provides name of this element: IndexedTriangleSet.
|
java.lang.String |
getFieldType(java.lang.String fieldName)
Indicate type corresponding to given fieldName.
|
FogCoordinate |
getFogCoord()
Provide FogCoordinate instance (using a properly typed node) from inputOutput SFNode field fogCoord.
|
ProtoInstanceObject |
getFogCoordProtoInstance()
Provide properly typed ProtoInstance for inputOutput SFNode field fogCoord, if available.
|
int[] |
getIndex()
Provide array of Integer results within allowed range of [0,infinity) from initializeOnly MFInt32 field named index.
|
java.util.ArrayList<java.lang.Integer> |
getIndexList()
Utility method to get ArrayList value of MFInt32 index field, similar to
getIndex() . |
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.
|
ProtoInstanceObject |
getMetadataProtoInstance()
Provide properly typed ProtoInstance for inputOutput SFNode field metadata, if available.
|
X3DConcreteNode |
getNodeByDEF(java.lang.String DEFname)
Recursive method to provide object reference to node by DEF name, if found as this node or in a contained node.
|
X3DNormalNode |
getNormal()
Provide X3DNormalNode instance (using a properly typed node) from inputOutput SFNode field normal.
|
boolean |
getNormalPerVertex()
Provide boolean value from initializeOnly SFBool field named normalPerVertex.
|
ProtoInstanceObject |
getNormalProtoInstance()
Provide properly typed ProtoInstance for inputOutput SFNode field normal, if available.
|
boolean |
getSolid()
Provide boolean value from initializeOnly SFBool field named solid.
|
X3DTextureCoordinateNode |
getTexCoord()
Provide X3DTextureCoordinateNode instance (using a properly typed node) from inputOutput SFNode field texCoord.
|
ProtoInstanceObject |
getTexCoordProtoInstance()
Provide properly typed ProtoInstance for inputOutput SFNode field texCoord, if available.
|
boolean |
hasAttrib()
Indicate whether an object is available for inputOutput MFNode field attrib.
|
boolean |
hasColor()
Indicate whether an object is available for inputOutput SFNode field color.
|
boolean |
hasCoord()
Indicate whether an object is available for inputOutput SFNode field coord.
|
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 |
hasFogCoord()
Indicate whether an object is available for inputOutput SFNode field fogCoord.
|
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 |
hasNormal()
Indicate whether an object is available for inputOutput SFNode field normal.
|
boolean |
hasTexCoord()
Indicate whether an object is available for inputOutput SFNode field texCoord.
|
void |
initialize()
Initialize all member variables to default values.
|
IndexedTriangleSetObject |
setAttrib(java.util.ArrayList<X3DVertexAttributeNode> newValue)
Assign ArrayList value of MFNode attrib field, similar to
setAttrib(X3DNode[]) . |
void |
setAttrib(X3DNode newValue)
Set single child attrib node, replacing prior array of existing nodes (if any).
|
IndexedTriangleSetObject |
setAttrib(X3DNode[] newValue)
Assign X3DVertexAttributeNode array (using an array consisting of properly typed nodes or X3DPrototypeInstance objects) to inputOutput MFNode field attrib.
|
IndexedTriangleSetObject |
setCcw(boolean newValue)
Assign boolean value to initializeOnly SFBool field named ccw.
|
IndexedTriangleSetObject |
setCcw(SFBoolObject newValue)
Assign typed object value to SFBool ccw field, similar to
setCcw(boolean) . |
IndexedTriangleSetObject |
setColor(ProtoInstanceObject newProtoInstanceNode)
Assign ProtoInstance to color field;
WARNING: ProtoInstance must match acceptable node type X3DColorNode.
|
IndexedTriangleSetObject |
setColor(X3DColorNode newValue)
Assign X3DColorNode instance (using a properly typed node) using RGB values [0..1] to inputOutput SFNode field color.
|
IndexedTriangleSetObject |
setColorPerVertex(boolean newValue)
Assign boolean value to initializeOnly SFBool field named colorPerVertex.
|
IndexedTriangleSetObject |
setColorPerVertex(SFBoolObject newValue)
Assign typed object value to SFBool colorPerVertex field, similar to
setColorPerVertex(boolean) . |
IndexedTriangleSetObject |
setCoord(ProtoInstanceObject newProtoInstanceNode)
Assign ProtoInstance to coord field;
WARNING: ProtoInstance must match acceptable node type X3DCoordinateNode.
|
IndexedTriangleSetObject |
setCoord(X3DCoordinateNode newValue)
Assign X3DCoordinateNode instance (using a properly typed node) to inputOutput SFNode field coord.
|
IndexedTriangleSetObject |
setCssClass(SFStringObject newValue)
Assign typed object value to SFString cssClass field, similar to
setCssClass(String) . |
IndexedTriangleSetObject |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
IndexedTriangleSetObject |
setDEF(SFStringObject newValue)
Assign typed object value to SFString DEF field, similar to
setDEF(String) . |
IndexedTriangleSetObject |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
IndexedTriangleSetObject |
setFogCoord(FogCoordinate newValue)
Assign FogCoordinate instance (using a properly typed node) to inputOutput SFNode field fogCoord.
|
IndexedTriangleSetObject |
setFogCoord(ProtoInstanceObject newProtoInstanceNode)
Assign ProtoInstance to fogCoord field;
WARNING: ProtoInstance must match acceptable node type FogCoordinate.
|
IndexedTriangleSetObject |
setIndex(java.util.ArrayList<java.lang.Integer> newValue)
Assign ArrayList value of MFInt32 index field, similar to
setIndex(int[]) . |
IndexedTriangleSetObject |
setIndex(int[] newValue)
Assign Integer array within allowed range of [0,infinity) to initializeOnly MFInt32 field named index.
|
IndexedTriangleSetObject |
setIndex(MFInt32Object newValue)
Assign typed object value to MFInt32 index field, similar to
setIndex(int[]) . |
IndexedTriangleSetObject |
setIS(ISObject newValue)
Assign field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
IndexedTriangleSetObject |
setMetadata(ProtoInstanceObject newProtoInstanceNode)
Assign ProtoInstance to metadata field;
WARNING: ProtoInstance must match acceptable node type X3DMetadataObject.
|
IndexedTriangleSetObject |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
IndexedTriangleSetObject |
setNormal(ProtoInstanceObject newProtoInstanceNode)
Assign ProtoInstance to normal field;
WARNING: ProtoInstance must match acceptable node type X3DNormalNode.
|
IndexedTriangleSetObject |
setNormal(X3DNormalNode newValue)
Assign X3DNormalNode instance (using a properly typed node) to inputOutput SFNode field normal.
|
IndexedTriangleSetObject |
setNormalPerVertex(boolean newValue)
Assign boolean value to initializeOnly SFBool field named normalPerVertex.
|
IndexedTriangleSetObject |
setNormalPerVertex(SFBoolObject newValue)
Assign typed object value to SFBool normalPerVertex field, similar to
setNormalPerVertex(boolean) . |
IndexedTriangleSetObject |
setSolid(boolean newValue)
Assign boolean value to initializeOnly SFBool field named solid.
|
IndexedTriangleSetObject |
setSolid(SFBoolObject newValue)
Assign typed object value to SFBool solid field, similar to
setSolid(boolean) . |
IndexedTriangleSetObject |
setTexCoord(ProtoInstanceObject newProtoInstanceNode)
Assign ProtoInstance to texCoord field;
WARNING: ProtoInstance must match acceptable node type X3DTextureCoordinateNode.
|
IndexedTriangleSetObject |
setTexCoord(X3DTextureCoordinateNode newValue)
Assign X3DTextureCoordinateNode instance (using a properly typed node) to inputOutput SFNode field texCoord.
|
IndexedTriangleSetObject |
setUSE(IndexedTriangleSetObject DEFnode)
Assign a USE reference to another DEF node of same node type, similar to
setUSE(String) . |
IndexedTriangleSetObject |
setUSE(SFStringObject newValue)
Assign typed object value to SFString USE field, similar to
setUSE(String) . |
IndexedTriangleSetObject |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
java.lang.String |
toStringClassicVRML(int level)
Recursive method to provide ClassicVRML string serialization.
|
java.lang.String |
toStringVRML97(int level)
Recursive method to provide VRML97 string serialization.
|
java.lang.String |
toStringX3D(int level)
Recursive method to provide X3D string serialization of this model subgraph.
|
java.lang.String |
validate()
Recursive method to validate this element plus all contained nodes and statements.
|
getContainerFieldAlternateValues, getContainerFieldOverride, getCssClass, getDEF, getUSE, isNode, isStatement, isUSE, resetContainerFieldOverride, setConcreteCssClass, setConcreteDEF, setConcreteUSE, setContainerFieldOverride
clearParentObject, findAncestorElementByName, findAncestorProtoBody, findAncestorSceneObject, findAncestorX3DObject, getPackageName, getParentObject, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorSceneObject, hasAncestorX3DObject, setParentObject, toStringClassicVRML, toStringVRML97, toStringX3D
public static final java.lang.String NAME
public static final java.lang.String COMPONENT
public static final int LEVEL
public static final boolean CCW_DEFAULT_VALUE
public static final boolean COLORPERVERTEX_DEFAULT_VALUE
public static final boolean NORMALPERVERTEX_DEFAULT_VALUE
public static final boolean SOLID_DEFAULT_VALUE
public static final java.lang.String fromField_ATTRIB
public static final java.lang.String toField_ATTRIB
public static final java.lang.String fromField_COLOR
public static final java.lang.String toField_COLOR
public static final java.lang.String fromField_COORD
public static final java.lang.String toField_COORD
public static final java.lang.String fromField_FOGCOORD
public static final java.lang.String toField_FOGCOORD
public static final java.lang.String fromField_METADATA
public static final java.lang.String toField_METADATA
public static final java.lang.String fromField_NORMAL
public static final java.lang.String toField_NORMAL
public static final java.lang.String toField_SET_INDEX
public static final java.lang.String fromField_TEXCOORD
public static final java.lang.String toField_TEXCOORD
public IndexedTriangleSetObject()
public IndexedTriangleSetObject(java.lang.String DEFname)
DEFname
- unique DEF name for this X3D nodepublic final java.lang.String getElementName()
getElementName
in class X3DConcreteElement
public final java.lang.String getComponent()
getComponent
in class X3DConcreteElement
public final int getComponentLevel()
getComponentLevel
in class X3DConcreteElement
public java.lang.String getFieldType(java.lang.String fieldName)
getFieldType
in class X3DConcreteElement
fieldName
- name of field in this X3D nodeConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPE
public java.lang.String getAccessType(java.lang.String fieldName)
getAccessType
in class X3DConcreteElement
fieldName
- name of field in this X3D nodeConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE
public final void initialize()
initialize
in class X3DConcreteNode
public X3DNode[] getAttrib()
getAttrib
in interface IndexedTriangleSet
getAttrib
in interface X3DComposedGeometryNode
public java.util.ArrayList<X3DVertexAttributeNode> getAttribList()
getAttrib()
.public IndexedTriangleSetObject setAttrib(X3DNode[] newValue)
setAttrib
in interface IndexedTriangleSet
setAttrib
in interface X3DComposedGeometryNode
newValue
- is new value for the attrib field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setAttrib(java.util.ArrayList<X3DVertexAttributeNode> newValue)
setAttrib(X3DNode[])
.newValue
- is new value for the attrib field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject addAttrib(X3DVertexAttributeNode newValue)
newValue
- is new value to be appended the attrib field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public void addAttrib(X3DNode[] newValue)
addAttrib
in interface IndexedTriangleSet
addAttrib
in interface X3DComposedGeometryNode
newValue
- is new value array to be appended the attrib field.public void setAttrib(X3DNode newValue)
setAttrib
in interface IndexedTriangleSet
setAttrib
in interface X3DComposedGeometryNode
newValue
- is new node for the attrib field.public IndexedTriangleSetObject clearAttrib()
IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public boolean hasAttrib()
getAttrib()
public boolean getCcw()
getCcw
in interface IndexedTriangleSet
getCcw
in interface X3DComposedGeometryNode
public IndexedTriangleSetObject setCcw(boolean newValue)
setCcw
in interface IndexedTriangleSet
setCcw
in interface X3DComposedGeometryNode
newValue
- is new value for the ccw field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setCcw(SFBoolObject newValue)
setCcw(boolean)
.newValue
- is new value for the ccw field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public X3DColorNode getColor()
getColor
in interface IndexedTriangleSet
getColor
in interface X3DComposedGeometryNode
getColorProtoInstance()
public IndexedTriangleSetObject setColor(X3DColorNode newValue)
setColor
in interface IndexedTriangleSet
setColor
in interface X3DComposedGeometryNode
newValue
- is new value for the color field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).setColor(ProtoInstanceObject)
public IndexedTriangleSetObject clearColor()
IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public IndexedTriangleSetObject setColor(ProtoInstanceObject newProtoInstanceNode)
newProtoInstanceNode
- is the new ProtoInstance node for the color fieldIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).setColor(X3DColorNode)
public ProtoInstanceObject getColorProtoInstance()
getColor()
public boolean hasColor()
getColor()
,
getColorProtoInstance()
public boolean getColorPerVertex()
getColorPerVertex
in interface IndexedTriangleSet
getColorPerVertex
in interface X3DComposedGeometryNode
public IndexedTriangleSetObject setColorPerVertex(boolean newValue)
setColorPerVertex
in interface IndexedTriangleSet
setColorPerVertex
in interface X3DComposedGeometryNode
newValue
- is new value for the colorPerVertex field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setColorPerVertex(SFBoolObject newValue)
setColorPerVertex(boolean)
.newValue
- is new value for the colorPerVertex field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public X3DCoordinateNode getCoord()
getCoord
in interface IndexedTriangleSet
getCoord
in interface X3DComposedGeometryNode
getCoordProtoInstance()
public IndexedTriangleSetObject setCoord(X3DCoordinateNode newValue)
setCoord
in interface IndexedTriangleSet
setCoord
in interface X3DComposedGeometryNode
newValue
- is new value for the coord field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).setCoord(ProtoInstanceObject)
public IndexedTriangleSetObject clearCoord()
IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public IndexedTriangleSetObject setCoord(ProtoInstanceObject newProtoInstanceNode)
newProtoInstanceNode
- is the new ProtoInstance node for the coord fieldIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).setCoord(X3DCoordinateNode)
public ProtoInstanceObject getCoordProtoInstance()
getCoord()
public boolean hasCoord()
getCoord()
,
getCoordProtoInstance()
public FogCoordinate getFogCoord()
getFogCoord
in interface IndexedTriangleSet
getFogCoord
in interface X3DComposedGeometryNode
getFogCoordProtoInstance()
public IndexedTriangleSetObject setFogCoord(FogCoordinate newValue)
setFogCoord
in interface IndexedTriangleSet
setFogCoord
in interface X3DComposedGeometryNode
newValue
- is new value for the fogCoord field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).setFogCoord(ProtoInstanceObject)
public IndexedTriangleSetObject clearFogCoord()
IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public IndexedTriangleSetObject setFogCoord(ProtoInstanceObject newProtoInstanceNode)
newProtoInstanceNode
- is the new ProtoInstance node for the fogCoord fieldIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).setFogCoord(FogCoordinate)
public ProtoInstanceObject getFogCoordProtoInstance()
getFogCoord()
public boolean hasFogCoord()
getFogCoord()
,
getFogCoordProtoInstance()
public int[] getIndex()
getIndex
in interface IndexedTriangleSet
public java.util.ArrayList<java.lang.Integer> getIndexList()
getIndex()
.public IndexedTriangleSetObject setIndex(int[] newValue)
setIndex
in interface IndexedTriangleSet
newValue
- is new value for the index field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setIndex(MFInt32Object newValue)
setIndex(int[])
.newValue
- is new value for the index field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setIndex(java.util.ArrayList<java.lang.Integer> newValue)
setIndex(int[])
.newValue
- is new value for the index field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject clearIndex()
IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public X3DMetadataObject getMetadata()
getMetadata
in interface X3DNode
getMetadata
in interface IndexedTriangleSet
getMetadata
in interface X3DComposedGeometryNode
getMetadata
in interface X3DGeometryNode
getMetadataProtoInstance()
,
X3D Scene Authoring Hints: Metadata Nodespublic IndexedTriangleSetObject setMetadata(X3DMetadataObject newValue)
setMetadata
in interface X3DNode
setMetadata
in interface IndexedTriangleSet
setMetadata
in interface X3DComposedGeometryNode
setMetadata
in interface X3DGeometryNode
setMetadata
in class X3DConcreteNode
newValue
- is new value for the metadata field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).setMetadata(ProtoInstanceObject)
,
X3D Scene Authoring Hints: Metadata Nodespublic IndexedTriangleSetObject clearMetadata()
IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public IndexedTriangleSetObject setMetadata(ProtoInstanceObject newProtoInstanceNode)
newProtoInstanceNode
- is the new ProtoInstance node for the metadata fieldIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).setMetadata(X3DMetadataObject)
,
X3D Scene Authoring Hints: Metadata Nodespublic ProtoInstanceObject getMetadataProtoInstance()
getMetadata()
,
X3D Scene Authoring Hints: Metadata Nodespublic boolean hasMetadata()
getMetadata()
,
getMetadataProtoInstance()
,
X3D Scene Authoring Hints: Metadata Nodespublic X3DNormalNode getNormal()
getNormal
in interface IndexedTriangleSet
getNormal
in interface X3DComposedGeometryNode
getNormalProtoInstance()
public IndexedTriangleSetObject setNormal(X3DNormalNode newValue)
setNormal
in interface IndexedTriangleSet
setNormal
in interface X3DComposedGeometryNode
newValue
- is new value for the normal field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).setNormal(ProtoInstanceObject)
public IndexedTriangleSetObject clearNormal()
IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public IndexedTriangleSetObject setNormal(ProtoInstanceObject newProtoInstanceNode)
newProtoInstanceNode
- is the new ProtoInstance node for the normal fieldIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).setNormal(X3DNormalNode)
public ProtoInstanceObject getNormalProtoInstance()
getNormal()
public boolean hasNormal()
getNormal()
,
getNormalProtoInstance()
public boolean getNormalPerVertex()
getNormalPerVertex
in interface IndexedTriangleSet
getNormalPerVertex
in interface X3DComposedGeometryNode
public IndexedTriangleSetObject setNormalPerVertex(boolean newValue)
setNormalPerVertex
in interface IndexedTriangleSet
setNormalPerVertex
in interface X3DComposedGeometryNode
newValue
- is new value for the normalPerVertex field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setNormalPerVertex(SFBoolObject newValue)
setNormalPerVertex(boolean)
.newValue
- is new value for the normalPerVertex field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public boolean getSolid()
getSolid
in interface IndexedTriangleSet
getSolid
in interface X3DComposedGeometryNode
public IndexedTriangleSetObject setSolid(boolean newValue)
setSolid
in interface IndexedTriangleSet
setSolid
in interface X3DComposedGeometryNode
newValue
- is new value for the solid field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setSolid(SFBoolObject newValue)
setSolid(boolean)
.newValue
- is new value for the solid field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public X3DTextureCoordinateNode getTexCoord()
getTexCoord
in interface IndexedTriangleSet
getTexCoord
in interface X3DComposedGeometryNode
getTexCoordProtoInstance()
public IndexedTriangleSetObject setTexCoord(X3DTextureCoordinateNode newValue)
setTexCoord
in interface IndexedTriangleSet
setTexCoord
in interface X3DComposedGeometryNode
newValue
- is new value for the texCoord field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).setTexCoord(ProtoInstanceObject)
public IndexedTriangleSetObject clearTexCoord()
IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public IndexedTriangleSetObject setTexCoord(ProtoInstanceObject newProtoInstanceNode)
newProtoInstanceNode
- is the new ProtoInstance node for the texCoord fieldIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).setTexCoord(X3DTextureCoordinateNode)
public ProtoInstanceObject getTexCoordProtoInstance()
getTexCoord()
public boolean hasTexCoord()
getTexCoord()
,
getTexCoordProtoInstance()
public final IndexedTriangleSetObject setDEF(java.lang.String newValue)
setDEF
in interface X3DNode
setDEF
in interface IndexedTriangleSet
setDEF
in interface X3DComposedGeometryNode
setDEF
in interface X3DGeometryNode
setDEF
in class X3DConcreteNode
newValue
- is new value for the DEF field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setDEF(SFStringObject newValue)
setDEF(String)
.newValue
- is new value for the DEF field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public final IndexedTriangleSetObject 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 resets all other fields to their default values and also releases all child nodes.setUSE
in interface X3DNode
setUSE
in interface IndexedTriangleSet
setUSE
in interface X3DComposedGeometryNode
setUSE
in interface X3DGeometryNode
setUSE
in class X3DConcreteNode
newValue
- is new value for the USE field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setUSE(SFStringObject newValue)
setUSE(String)
.newValue
- is new value for the USE field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public final IndexedTriangleSetObject setCssClass(java.lang.String newValue)
setCssClass
in interface X3DNode
setCssClass
in interface IndexedTriangleSet
setCssClass
in interface X3DComposedGeometryNode
setCssClass
in interface X3DGeometryNode
setCssClass
in class X3DConcreteNode
newValue
- is new value for the class field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setCssClass(SFStringObject newValue)
setCssClass(String)
.newValue
- is new value for the class field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject setIS(ISObject newValue)
setIS
in class X3DConcreteNode
newValue
- is new value for the description field.IndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public ISObject getIS()
getIS
in class X3DConcreteNode
public IndexedTriangleSetObject setUSE(IndexedTriangleSetObject DEFnode)
setUSE(String)
.
setUSE()
method resets all other fields to their default values and also releases
all child nodes.
DEFnode
- must have a DEF value definedIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).public IndexedTriangleSetObject addComments(java.lang.String newComment)
addComments
in class X3DConcreteElement
newComment
- initial valueIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public IndexedTriangleSetObject addComments(java.lang.String[] newComments)
addComments
in class X3DConcreteElement
newComments
- array of commentsIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public IndexedTriangleSetObject addComments(CommentsBlock newCommentsBlock)
addComments
in class X3DConcreteElement
newCommentsBlock
- block of comments to addIndexedTriangleSetObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public java.lang.String toStringX3D(int level)
toStringX3D
in class X3DConcreteElement
level
- number of levels of indentation for this elementpublic java.lang.String toStringClassicVRML(int level)
toStringClassicVRML
in class X3DConcreteElement
level
- number of levels of indentation for this elementpublic java.lang.String toStringVRML97(int level)
toStringVRML97
in class X3DConcreteElement
level
- number of levels of indentation for this elementpublic X3DConcreteNode getNodeByDEF(java.lang.String DEFname)
getNodeByDEF
in class X3DConcreteNode
DEFname
- DEF name of node to findpublic X3DConcreteElement findElementByNameValue(java.lang.String nameValue)
findElementByNameValue
in class X3DConcreteElement
nameValue
- is value of the name field being searched for in this element and child elements(if any)findNodeByDEF(String)
public X3DConcreteElement findElementByNameValue(java.lang.String nameValue, java.lang.String elementName)
findElementByNameValue
in class X3DConcreteElement
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.)findNodeByDEF(String)
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 X3DConcreteElement
DEFvalue
- is value of the name field being searched for in this element and child elements(if any)findElementByNameValue(String)
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 X3DConcreteElement
Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.