public class ExtrusionObject extends X3DConcreteNode implements Extrusion
Modifier and Type | Field and Description |
---|---|
static boolean |
BEGINCAP_DEFAULT_VALUE
SFBool field named beginCap has default value true (Java syntax) or true (XML syntax).
|
static boolean |
CCW_DEFAULT_VALUE
SFBool field named ccw has default value true (Java syntax) or true (XML syntax).
|
static java.lang.String |
COMPONENT
String constant COMPONENT defines X3D component for the Extrusion element: Geometry3D
|
static java.lang.String |
containerField_DEFAULT_VALUE
containerField describes typical field relationship of a node to its parent.
|
static boolean |
CONVEX_DEFAULT_VALUE
SFBool field named convex has default value true (Java syntax) or true (XML syntax).
|
static float |
CREASEANGLE_DEFAULT_VALUE
SFFloat field named creaseAngle has default value 0.0f (Java syntax) or 0.0 (XML syntax).
|
static float[] |
CROSSSECTION_DEFAULT_VALUE
MFVec2f field named crossSection has default value {1f,1f,1f,-1f,-1f,-1f,-1f,1f,1f,1f} (Java syntax) or 1 1 1 -1 -1 -1 -1 1 1 1 (XML syntax).
|
static boolean |
ENDCAP_DEFAULT_VALUE
SFBool field named endCap has default value true (Java syntax) or true (XML syntax).
|
static java.lang.String |
fromField_METADATA
fromField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
fromField_ORIENTATION
fromField ROUTE name for MFRotation field named orientation.
|
static java.lang.String |
fromField_SCALE
fromField ROUTE name for MFVec2f field named scale.
|
static int |
LEVEL
Integer constant LEVEL provides default X3D Geometry3D component level for this element: 4
|
static java.lang.String |
NAME
String constant NAME provides name of this element: Extrusion.
|
static float[] |
ORIENTATION_DEFAULT_VALUE
MFRotation field named orientation has default value {0f,0f,1f,0f} (Java syntax) or 0 0 1 0 (XML syntax).
|
static float[] |
SCALE_DEFAULT_VALUE
MFVec2f field named scale has default value {1f,1f} (Java syntax) or 1 1 (XML syntax).
|
static boolean |
SOLID_DEFAULT_VALUE
SFBool field named solid has default value true (Java syntax) or true (XML syntax).
|
static float[] |
SPINE_DEFAULT_VALUE
MFVec3f field named spine has default value {0f,0f,0f,0f,1f,0f} (Java syntax) or 0 0 0 0 1 0 (XML syntax).
|
static java.lang.String |
toField_METADATA
toField ROUTE name for SFNode field named metadata.
|
static java.lang.String |
toField_ORIENTATION
toField ROUTE name for MFRotation field named orientation.
|
static java.lang.String |
toField_SCALE
toField ROUTE name for MFVec2f field named scale.
|
static java.lang.String |
toField_SET_CROSSSECTION
toField ROUTE name for MFVec2f field named set_crossSection.
|
static java.lang.String |
toField_SET_ORIENTATION
toField ROUTE name for MFRotation field named set_orientation.
|
static java.lang.String |
toField_SET_SCALE
toField ROUTE name for MFVec2f field named set_scale.
|
static java.lang.String |
toField_SET_SPINE
toField ROUTE name for MFVec3f field named set_spine.
|
CLASS_DEFAULT_VALUE, containerField_ALTERNATE_VALUES, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUE
validationResult
Constructor and Description |
---|
ExtrusionObject()
Constructor for ExtrusionObject to initialize member variables with default values.
|
ExtrusionObject(java.lang.String DEFlabel)
Utility constructor that assigns DEF label after initializing member variables with default values.
|
Modifier and Type | Method and Description |
---|---|
ExtrusionObject |
addComments(CommentsBlock newCommentsBlock)
Add CommentsBlock to contained commentsList.
|
ExtrusionObject |
addComments(java.lang.String newComment)
Add comment as String to contained commentsList.
|
ExtrusionObject |
addComments(java.lang.String[] newComments)
Add comments as String[] array to contained commentsList.
|
ExtrusionObject |
addCrossSection(SFVec2fObject newValue)
Add singleton SFVec2fObject value to MFVec2f crossSection field.
|
ExtrusionObject |
addOrientation(SFRotationObject newValue)
Add singleton SFRotationObject value to MFRotation orientation field.
|
ExtrusionObject |
addScale(SFVec2fObject newValue)
Add singleton SFVec2fObject value to MFVec2f scale field.
|
ExtrusionObject |
addSpine(SFVec3fObject newValue)
Add singleton SFVec3fObject value to MFVec3f spine field.
|
ExtrusionObject |
clearMetadata()
Utility method to clear SFNode value of metadata 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.
|
boolean |
getBeginCap()
Provide boolean value from initializeOnly SFBool field named beginCap.
|
boolean |
getCcw()
Provide boolean value from initializeOnly SFBool field named ccw.
|
java.lang.String |
getComponent()
Defines X3D component for the Extrusion element: Geometry3D
|
int |
getComponentLevel()
Provides default X3D component level for this element: 4
|
java.lang.String |
getContainerFieldDefault()
containerField describes typical field relationship of a node to its parent.
|
boolean |
getConvex()
Provide boolean value from initializeOnly SFBool field named convex.
|
float |
getCreaseAngle()
Provide float value unit axis, angle (in radians) within allowed range of [0,infinity) from initializeOnly SFFloat field named creaseAngle.
|
float[] |
getCrossSection()
Provide array of 2-tuple float results from initializeOnly MFVec2f field named crossSection.
|
java.lang.String |
getElementName()
Provides name of this element: Extrusion
|
boolean |
getEndCap()
Provide boolean value from initializeOnly SFBool field named endCap.
|
java.lang.String |
getFieldType(java.lang.String fieldName)
Indicate type corresponding to given fieldName.
|
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.
|
float[] |
getOrientation()
Provide array of 4-tuple float results unit axis, angle (in radians) from inputOutput MFRotation field named orientation.
|
float[] |
getScale()
Provide array of 2-tuple float results from inputOutput MFVec2f field named scale.
|
boolean |
getSolid()
Provide boolean value from initializeOnly SFBool field named solid.
|
float[] |
getSpine()
Provide array of 3-tuple float results from initializeOnly MFVec3f field named spine.
|
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.
|
void |
initialize()
Initialize all member variables to default values.
|
boolean |
isCrossSectionClosed()
Whether crossSection array is open or closed (closed means that endpoints are coincident).
|
boolean |
isSpineClosed()
Whether spine array is open or closed (closed means that endpoints are coincident).
|
ExtrusionObject |
setBeginCap(boolean newValue)
Assign boolean value to initializeOnly SFBool field named beginCap.
|
ExtrusionObject |
setBeginCap(SFBoolObject newValue)
Assign typed object value to SFBool beginCap field, similar to
setBeginCap(boolean) . |
ExtrusionObject |
setCcw(boolean newValue)
Assign boolean value to initializeOnly SFBool field named ccw.
|
ExtrusionObject |
setCcw(SFBoolObject newValue)
Assign typed object value to SFBool ccw field, similar to
setCcw(boolean) . |
ExtrusionObject |
setConvex(boolean newValue)
Assign boolean value to initializeOnly SFBool field named convex.
|
ExtrusionObject |
setConvex(SFBoolObject newValue)
Assign typed object value to SFBool convex field, similar to
setConvex(boolean) . |
ExtrusionObject |
setCreaseAngle(float newValue)
Assign float value unit axis, angle (in radians) within allowed range of [0,infinity) to initializeOnly SFFloat field named creaseAngle.
|
ExtrusionObject |
setCreaseAngle(SFFloatObject newValue)
Assign typed object value to SFFloat creaseAngle field, similar to
setCreaseAngle(float) . |
ExtrusionObject |
setCrossSection(float[] newValue)
Assign 2-tuple float array to initializeOnly MFVec2f field named crossSection.
|
ExtrusionObject |
setCrossSection(MFVec2fObject newValue)
Assign typed object value to MFVec2f crossSection field, similar to
setCrossSection(float[]) . |
ExtrusionObject |
setCssClass(SFStringObject newValue)
Assign typed object value to SFString cssClass field, similar to
setCssClass(String) . |
ExtrusionObject |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
ExtrusionObject |
setDEF(SFStringObject newValue)
Assign typed object value to SFString DEF field, similar to
setDEF(String) . |
ExtrusionObject |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
ExtrusionObject |
setEndCap(boolean newValue)
Assign boolean value to initializeOnly SFBool field named endCap.
|
ExtrusionObject |
setEndCap(SFBoolObject newValue)
Assign typed object value to SFBool endCap field, similar to
setEndCap(boolean) . |
ExtrusionObject |
setIS(ISObject newValue)
Assign field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
ExtrusionObject |
setMetadata(ProtoInstanceObject newValue)
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.
|
ExtrusionObject |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
ExtrusionObject |
setOrientation(float[] newValue)
Assign 4-tuple float array unit axis, angle (in radians) to inputOutput MFRotation field named orientation.
|
ExtrusionObject |
setOrientation(MFRotationObject newValue)
Assign typed object value to MFRotation orientation field, similar to
setOrientation(float[]) . |
ExtrusionObject |
setScale(float[] newValue)
Assign 2-tuple float array to inputOutput MFVec2f field named scale.
|
ExtrusionObject |
setScale(MFVec2fObject newValue)
Assign typed object value to MFVec2f scale field, similar to
setScale(float[]) . |
ExtrusionObject |
setSolid(boolean newValue)
Assign boolean value to initializeOnly SFBool field named solid.
|
ExtrusionObject |
setSolid(SFBoolObject newValue)
Assign typed object value to SFBool solid field, similar to
setSolid(boolean) . |
ExtrusionObject |
setSpine(float[] newValue)
Assign 3-tuple float array to initializeOnly MFVec3f field named spine.
|
ExtrusionObject |
setSpine(MFVec3fObject newValue)
Assign typed object value to MFVec3f spine field, similar to
setSpine(float[]) . |
ExtrusionObject |
setUSE(ExtrusionObject DEFnode)
Assign a USE reference to another DEF node of same node type, similar to
setUSE(String) . |
ExtrusionObject |
setUSE(SFStringObject newValue)
Assign typed object value to SFString USE field, similar to
setUSE(String) . |
ExtrusionObject |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
java.io.File |
toFileSvgCrossSection(java.lang.String fileName)
Create SVG output file (with same base name) for Extrusion crossSection, if found.
|
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, 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 BEGINCAP_DEFAULT_VALUE
public static final boolean CCW_DEFAULT_VALUE
public static final boolean CONVEX_DEFAULT_VALUE
public static final float CREASEANGLE_DEFAULT_VALUE
public static final float[] CROSSSECTION_DEFAULT_VALUE
public static final boolean ENDCAP_DEFAULT_VALUE
public static final float[] ORIENTATION_DEFAULT_VALUE
public static final float[] SCALE_DEFAULT_VALUE
public static final boolean SOLID_DEFAULT_VALUE
public static final float[] SPINE_DEFAULT_VALUE
public static final java.lang.String containerField_DEFAULT_VALUE
public static final java.lang.String fromField_METADATA
public static final java.lang.String toField_METADATA
public static final java.lang.String fromField_ORIENTATION
public static final java.lang.String toField_ORIENTATION
public static final java.lang.String fromField_SCALE
public static final java.lang.String toField_SCALE
public static final java.lang.String toField_SET_CROSSSECTION
public static final java.lang.String toField_SET_ORIENTATION
public static final java.lang.String toField_SET_SCALE
public static final java.lang.String toField_SET_SPINE
public ExtrusionObject()
public ExtrusionObject(java.lang.String DEFlabel)
DEFlabel
- 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 java.lang.String getContainerFieldDefault()
getContainerFieldDefault
in class X3DConcreteNode
public final void initialize()
initialize
in class X3DConcreteNode
public boolean getBeginCap()
getBeginCap
in interface Extrusion
public ExtrusionObject setBeginCap(boolean newValue)
setBeginCap
in interface Extrusion
newValue
- is new value for the beginCap field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setBeginCap(SFBoolObject newValue)
setBeginCap(boolean)
.newValue
- is new value for the beginCap field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getCcw()
public ExtrusionObject setCcw(boolean newValue)
setCcw
in interface Extrusion
newValue
- is new value for the ccw field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setCcw(SFBoolObject newValue)
setCcw(boolean)
.newValue
- is new value for the ccw field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getConvex()
public ExtrusionObject setConvex(boolean newValue)
setConvex
in interface Extrusion
newValue
- is new value for the convex field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setConvex(SFBoolObject newValue)
setConvex(boolean)
.newValue
- is new value for the convex field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float getCreaseAngle()
getCreaseAngle
in interface Extrusion
public ExtrusionObject setCreaseAngle(float newValue)
setCreaseAngle
in interface Extrusion
newValue
- is new value for the creaseAngle field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setCreaseAngle(SFFloatObject newValue)
setCreaseAngle(float)
.newValue
- is new value for the creaseAngle field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getCrossSection()
getCrossSection
in interface Extrusion
public ExtrusionObject setCrossSection(float[] newValue)
setCrossSection
in interface Extrusion
newValue
- is new value for the crossSection field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setCrossSection(MFVec2fObject newValue)
setCrossSection(float[])
.newValue
- is new value for the crossSection field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject addCrossSection(SFVec2fObject newValue)
newValue
- is new value to add to the crossSection field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getEndCap()
public ExtrusionObject setEndCap(boolean newValue)
setEndCap
in interface Extrusion
newValue
- is new value for the endCap field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setEndCap(SFBoolObject newValue)
setEndCap(boolean)
.newValue
- is new value for the endCap field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public X3DMetadataObject getMetadata()
getMetadata
in interface X3DNode
getMetadata
in interface Extrusion
getMetadata
in interface X3DGeometryNode
getMetadataProtoInstance()
,
X3D Scene Authoring Hints: Metadata Nodespublic ExtrusionObject setMetadata(X3DMetadataObject newValue)
setMetadata
in interface X3DNode
setMetadata
in interface Extrusion
setMetadata
in interface X3DGeometryNode
setMetadata
in class X3DConcreteNode
newValue
- is new value for the metadata field.ExtrusionObject
- 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 ExtrusionObject clearMetadata()
ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public ExtrusionObject setMetadata(ProtoInstanceObject newValue)
setMetadata
in class X3DConcreteNode
newValue
- is new value for the metadata field.ExtrusionObject
- 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 float[] getOrientation()
getOrientation
in interface Extrusion
public ExtrusionObject setOrientation(float[] newValue)
setOrientation
in interface Extrusion
newValue
- is new value for the orientation field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setOrientation(MFRotationObject newValue)
setOrientation(float[])
.newValue
- is new value for the orientation field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject addOrientation(SFRotationObject newValue)
newValue
- is new value to add to the orientation field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getScale()
public ExtrusionObject setScale(float[] newValue)
setScale
in interface Extrusion
newValue
- is new value for the scale field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setScale(MFVec2fObject newValue)
setScale(float[])
.newValue
- is new value for the scale field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject addScale(SFVec2fObject newValue)
newValue
- is new value to add to the scale field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public boolean getSolid()
public ExtrusionObject setSolid(boolean newValue)
setSolid
in interface Extrusion
newValue
- is new value for the solid field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setSolid(SFBoolObject newValue)
setSolid(boolean)
.newValue
- is new value for the solid field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public float[] getSpine()
public ExtrusionObject setSpine(float[] newValue)
setSpine
in interface Extrusion
newValue
- is new value for the spine field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setSpine(MFVec3fObject newValue)
setSpine(float[])
.newValue
- is new value for the spine field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject addSpine(SFVec3fObject newValue)
newValue
- is new value to add to the spine field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final ExtrusionObject setDEF(java.lang.String newValue)
setDEF
in interface X3DNode
setDEF
in interface Extrusion
setDEF
in interface X3DGeometryNode
setDEF
in class X3DConcreteNode
newValue
- is new value for the DEF field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setDEF(SFStringObject newValue)
setDEF(String)
.newValue
- is new value for the DEF field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final ExtrusionObject 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 X3DNode
setUSE
in interface Extrusion
setUSE
in interface X3DGeometryNode
setUSE
in class X3DConcreteNode
newValue
- is new value for the USE field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setUSE(SFStringObject newValue)
setUSE(String)
.newValue
- is new value for the USE field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public final ExtrusionObject setCssClass(java.lang.String newValue)
setCssClass
in interface X3DNode
setCssClass
in interface Extrusion
setCssClass
in interface X3DGeometryNode
setCssClass
in class X3DConcreteNode
newValue
- is new value for the class field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setCssClass(SFStringObject newValue)
setCssClass(String)
.newValue
- is new value for the class field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject setIS(ISObject newValue)
setIS
in class X3DConcreteNode
newValue
- is new value for the description field.ExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ISObject getIS()
getIS
in class X3DConcreteNode
public ExtrusionObject setUSE(ExtrusionObject 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 definedExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).public ExtrusionObject addComments(java.lang.String newComment)
addComments
in class X3DConcreteElement
newComment
- initial valueExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public ExtrusionObject addComments(java.lang.String[] newComments)
addComments
in class X3DConcreteElement
newComments
- array of commentsExtrusionObject
- namely this same object to allow sequential method pipelining (i.e. consecutive
setAttribute method invocations).public ExtrusionObject addComments(CommentsBlock newCommentsBlock)
addComments
in class X3DConcreteElement
newCommentsBlock
- block of comments to addExtrusionObject
- 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 X3DConcreteElement
indentLevel
- 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 X3DConcreteElement
indentLevel
- 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 X3DConcreteElement
indentLevel
- 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 X3DConcreteElement
nameValue
- 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 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)
,
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 X3DConcreteElement
DEFvalue
- 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 X3DConcreteElement
public boolean isCrossSectionClosed()
public boolean isSpineClosed()
public java.io.File toFileSvgCrossSection(java.lang.String fileName)
fileName
- name of file to create and save, can include local directory path, must end with .svgX3DObject.FILE_EXTENSION_SVG
,
ConfigurationProperties.STYLESHEET_extrusionCrossSectionSVG
,
X3DObject.toFileStylesheetConversion(String,String)
Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.