Package org.web3d.x3d.jsail.Texturing
Class TexturePropertiesObject
java.lang.Object
org.web3d.x3d.jsail.X3DConcreteElement
org.web3d.x3d.jsail.X3DConcreteNode
org.web3d.x3d.jsail.Texturing.TexturePropertiesObject
- All Implemented Interfaces:
X3DNode
,TextureProperties
public class TexturePropertiesObject extends X3DConcreteNode implements TextureProperties
TextureProperties allows precise fine-grained control over application of image textures to geometry.
X3D node tooltip: [X3DNode] TextureProperties allows precise fine-grained control over application of image textures to geometry.
Note that SFColorObject provides a variety of color constants.
Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
X3D node tooltip: [X3DNode] TextureProperties allows precise fine-grained control over application of image textures to geometry.
- Warning: requires X3D profile='Full' or else include <component name='Shape' level='2'/>
- Hint: Texture mapping https://en.wikipedia.org/wiki/Texture_mapping
Note that SFColorObject provides a variety of color constants.
Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
-
Field Summary
Fields Modifier and Type Field Description static float
ANISOTROPICDEGREE_DEFAULT_VALUE
SFFloat field named anisotropicDegree has default value 1f (Java syntax) or 1 (XML syntax).static float[]
BORDERCOLOR_DEFAULT_VALUE
SFColorRGBA field named borderColor has default value {0f,0f,0f,0f} (Java syntax) or 0 0 0 0 (XML syntax).static int
BORDERWIDTH_DEFAULT_VALUE
SFInt32 field named borderWidth has default value 0 (Java syntax) or 0 (XML syntax).static java.lang.String
BOUNDARYMODER_CLAMP
Tooltip: Clamp texture coordinates to range [0,1].static java.lang.String
BOUNDARYMODER_CLAMP_TO_BOUNDARY
Tooltip: Clamp texture coordinates such that texture samples are border texels for fragments.static java.lang.String
BOUNDARYMODER_CLAMP_TO_EDGE
Tooltip: Clamp texture coordinates such that a border texel is never sampled.static java.lang.String
BOUNDARYMODER_DEFAULT_VALUE
SFString field named boundaryModeR has default value "REPEAT" (Java syntax) or REPEAT (XML syntax).static java.lang.String
BOUNDARYMODER_MIRRORED_REPEAT
Tooltip: Texture coordinates are mirrored and then clamped as in CLAMP_TO_EDGE.static java.lang.String
BOUNDARYMODER_REPEAT
Tooltip: Repeat a texture across the fragment.static java.lang.String
BOUNDARYMODES_CLAMP
Tooltip: Clamp texture coordinates to range [0,1].static java.lang.String
BOUNDARYMODES_CLAMP_TO_BOUNDARY
Tooltip: Clamp texture coordinates such that texture samples are border texels for fragments.static java.lang.String
BOUNDARYMODES_CLAMP_TO_EDGE
Tooltip: Clamp texture coordinates such that a border texel is never sampled.static java.lang.String
BOUNDARYMODES_DEFAULT_VALUE
SFString field named boundaryModeS has default value "REPEAT" (Java syntax) or REPEAT (XML syntax).static java.lang.String
BOUNDARYMODES_MIRRORED_REPEAT
Tooltip: Texture coordinates are mirrored and then clamped as in CLAMP_TO_EDGE.static java.lang.String
BOUNDARYMODES_REPEAT
Tooltip: Repeat a texture across the fragment.static java.lang.String
BOUNDARYMODET_CLAMP
Tooltip: Clamp texture coordinates to range [0,1].static java.lang.String
BOUNDARYMODET_CLAMP_TO_BOUNDARY
Tooltip: Clamp texture coordinates such that texture samples are border texels for fragments.static java.lang.String
BOUNDARYMODET_CLAMP_TO_EDGE
Tooltip: Clamp texture coordinates such that a border texel is never sampled.static java.lang.String
BOUNDARYMODET_DEFAULT_VALUE
SFString field named boundaryModeT has default value "REPEAT" (Java syntax) or REPEAT (XML syntax).static java.lang.String
BOUNDARYMODET_MIRRORED_REPEAT
Tooltip: Texture coordinates are mirrored and then clamped as in CLAMP_TO_EDGE.static java.lang.String
BOUNDARYMODET_REPEAT
Tooltip: Repeat a texture across the fragment.static java.lang.String
COMPONENT
String constant COMPONENT defines X3D component for the TextureProperties element: Texturingstatic java.lang.String
containerField_DEFAULT_VALUE
containerField describes typical field relationship of a node to its parent.static java.lang.String
fromField_ANISOTROPICDEGREE
fromField ROUTE name for SFFloat field named anisotropicDegree.static java.lang.String
fromField_BORDERCOLOR
fromField ROUTE name for SFColorRGBA field named borderColor.static java.lang.String
fromField_BORDERWIDTH
fromField ROUTE name for SFInt32 field named borderWidth.static java.lang.String
fromField_BOUNDARYMODER
fromField ROUTE name for SFString field named boundaryModeR.static java.lang.String
fromField_BOUNDARYMODES
fromField ROUTE name for SFString field named boundaryModeS.static java.lang.String
fromField_BOUNDARYMODET
fromField ROUTE name for SFString field named boundaryModeT.static java.lang.String
fromField_IS
fromField ROUTE name for SFNode field named IS.static java.lang.String
fromField_MAGNIFICATIONFILTER
fromField ROUTE name for SFString field named magnificationFilter.static java.lang.String
fromField_METADATA
fromField ROUTE name for SFNode field named metadata.static java.lang.String
fromField_MINIFICATIONFILTER
fromField ROUTE name for SFString field named minificationFilter.static java.lang.String
fromField_TEXTURECOMPRESSION
fromField ROUTE name for SFString field named textureCompression.static java.lang.String
fromField_TEXTUREPRIORITY
fromField ROUTE name for SFFloat field named texturePriority.static boolean
GENERATEMIPMAPS_DEFAULT_VALUE
SFBool field named generateMipMaps has default value false (Java syntax) or false (XML syntax).static ISObject
IS_DEFAULT_VALUE
SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).static int
LEVEL
Integer constant LEVEL provides default X3D Texturing component level for this element: 2static java.lang.String
MAGNIFICATIONFILTER_AVG_PIXEL
Tooltip: weighted average of four texture elements closest to center of pixel being textured.static java.lang.String
MAGNIFICATIONFILTER_DEFAULT
Tooltip: browser-specified default magnification mode.static java.lang.String
MAGNIFICATIONFILTER_DEFAULT_VALUE
SFString field named magnificationFilter has default value "FASTEST" (Java syntax) or FASTEST (XML syntax).static java.lang.String
MAGNIFICATIONFILTER_FASTEST
Tooltip: fastest method available.static java.lang.String
MAGNIFICATIONFILTER_NEAREST_PIXEL
Tooltip: texture element nearest to the center of pixel being textured.static java.lang.String
MAGNIFICATIONFILTER_NICEST
Tooltip: highest quality method available.static X3DMetadataObject
METADATA_DEFAULT_VALUE
SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).static java.lang.String
MINIFICATIONFILTER_AVG_PIXEL
Tooltip: weighted average of four texture elements closest to center of pixel being textured.static java.lang.String
MINIFICATIONFILTER_AVG_PIXEL_AVG_MIPMAP
Tooltip: tri-linear mipmap filtering.static java.lang.String
MINIFICATIONFILTER_AVG_PIXEL_NEAREST_MIPMAP
Tooltip: choose mipmap that most closely matches size of pixel being textured, use weighted average of four texture elements closest to center of pixel.static java.lang.String
MINIFICATIONFILTER_DEFAULT
Tooltip: browser-specified default minification mode.static java.lang.String
MINIFICATIONFILTER_DEFAULT_VALUE
SFString field named minificationFilter has default value "FASTEST" (Java syntax) or FASTEST (XML syntax).static java.lang.String
MINIFICATIONFILTER_FASTEST
Tooltip: fastest method available, use mipmaps if possible.static java.lang.String
MINIFICATIONFILTER_NEAREST_PIXEL
Tooltip: texture element nearest to center of pixel being textured.static java.lang.String
MINIFICATIONFILTER_NEAREST_PIXEL_AVG_MIPMAP
Tooltip: texture element nearest to center of pixel being textured, use average of two nearest mipmaps.static java.lang.String
MINIFICATIONFILTER_NEAREST_PIXEL_NEAREST_MIPMAP
Tooltip: texture element nearest to center of pixel being textured, use nearest mipmap.static java.lang.String
MINIFICATIONFILTER_NICEST
Tooltip: highest quality method available.static java.lang.String
NAME
String constant NAME provides name of this element: TextureProperties.static java.lang.String
TEXTURECOMPRESSION_DEFAULT
Tooltip: browser-specified default compression mode.static java.lang.String
TEXTURECOMPRESSION_DEFAULT_VALUE
SFString field named textureCompression has default value "FASTEST" (Java syntax) or FASTEST (XML syntax).static java.lang.String
TEXTURECOMPRESSION_FASTEST
Tooltip: fastest method available.static java.lang.String
TEXTURECOMPRESSION_HIGH
Tooltip: greatest amount of compression.static java.lang.String
TEXTURECOMPRESSION_LOW
Tooltip: least amount of compression.static java.lang.String
TEXTURECOMPRESSION_MEDIUM
Tooltip: moderate amount of compressions.static java.lang.String
TEXTURECOMPRESSION_NICEST
Tooltip: highest quality method available.static float
TEXTUREPRIORITY_DEFAULT_VALUE
SFFloat field named texturePriority has default value 0f (Java syntax) or 0 (XML syntax).static java.lang.String
toField_ANISOTROPICDEGREE
toField ROUTE name for SFFloat field named anisotropicDegree.static java.lang.String
toField_BORDERCOLOR
toField ROUTE name for SFColorRGBA field named borderColor.static java.lang.String
toField_BORDERWIDTH
toField ROUTE name for SFInt32 field named borderWidth.static java.lang.String
toField_BOUNDARYMODER
toField ROUTE name for SFString field named boundaryModeR.static java.lang.String
toField_BOUNDARYMODES
toField ROUTE name for SFString field named boundaryModeS.static java.lang.String
toField_BOUNDARYMODET
toField ROUTE name for SFString field named boundaryModeT.static java.lang.String
toField_MAGNIFICATIONFILTER
toField ROUTE name for SFString field named magnificationFilter.static java.lang.String
toField_METADATA
toField ROUTE name for SFNode field named metadata.static java.lang.String
toField_MINIFICATIONFILTER
toField ROUTE name for SFString field named minificationFilter.static java.lang.String
toField_TEXTURECOMPRESSION
toField ROUTE name for SFString field named textureCompression.static java.lang.String
toField_TEXTUREPRIORITY
toField ROUTE name for SFFloat field named texturePriority.Fields inherited from class org.web3d.x3d.jsail.X3DConcreteNode
CLASS_DEFAULT_VALUE, containerField_ALTERNATE_VALUES, DEF_DEFAULT_VALUE, USE_DEFAULT_VALUE
-
Constructor Summary
Constructors Constructor Description TexturePropertiesObject()
Constructor for TexturePropertiesObject to initialize member variables with default values.TexturePropertiesObject(java.lang.String DEFlabel)
Utility constructor that assigns DEF label after initializing member variables with default values. -
Method Summary
Modifier and Type Method Description TexturePropertiesObject
addComments(java.lang.String newComment)
Add comment as String to contained commentsList.TexturePropertiesObject
addComments(java.lang.String[] newComments)
Add comments as String[] array to contained commentsList.TexturePropertiesObject
addComments(CommentsBlock newCommentsBlock)
Add CommentsBlock to contained commentsList.TexturePropertiesObject
clearIS()
Utility method to clear SFNode value of IS field.TexturePropertiesObject
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.float
getAnisotropicDegree()
Provide float value within allowed range of [1,infinity) from inputOutput SFFloat field named anisotropicDegree.float[]
getBorderColor()
Provide array of 4-tuple float results using RGBA values [0..1] using RGBA values [0..1] from inputOutput SFColorRGBA field named borderColor.int
getBorderWidth()
Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named borderWidth.java.lang.String
getBoundaryModeR()
Provide String enumeration value (baseType xs:NMTOKEN) ["CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT"] from inputOutput SFString field named boundaryModeR.java.lang.String
getBoundaryModeS()
Provide String enumeration value (baseType xs:NMTOKEN) ["CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT"] from inputOutput SFString field named boundaryModeS.java.lang.String
getBoundaryModeT()
Provide String enumeration value (baseType xs:NMTOKEN) ["CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT"] from inputOutput SFString field named boundaryModeT.java.lang.String
getComponent()
Defines X3D component for the TextureProperties element: Texturingint
getComponentLevel()
Provides default X3D component level for this element: 2java.lang.String
getContainerFieldDefault()
containerField describes typical field relationship of a node to its parent.java.lang.String
getCssClass()
Provide String value from inputOutput SFString field named class.java.lang.String
getDEF()
Provide String value from inputOutput SFString field named DEF.java.lang.String
getElementName()
Provides name of this element: TexturePropertiesjava.lang.String
getFieldType(java.lang.String fieldName)
Indicate type corresponding to given fieldName.boolean
getGenerateMipMaps()
Provide boolean value from initializeOnly SFBool field named generateMipMaps.ISObject
getIS()
Provide ISObject instance (using a properly typed node) from inputOutput SFNode field IS.java.lang.String
getMagnificationFilter()
Provide String enumeration value (baseType xs:NMTOKEN) ["AVG_PIXEL" | "DEFAULT" | "FASTEST" | "NEAREST_PIXEL" | "NICEST"] from inputOutput SFString field named magnificationFilter.X3DMetadataObject
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.java.lang.String
getMinificationFilter()
Provide String enumeration value (baseType xs:NMTOKEN) ["AVG_PIXEL" | "AVG_PIXEL_AVG_MIPMAP" | "AVG_PIXEL_NEAREST_MIPMAP" | "DEFAULT" | "FASTEST" | "NEAREST_PIXEL" | "NEAREST_PIXEL_AVG_MIPMAP" | "NEAREST_PIXEL_NEAREST_MIPMAP" | "NICEST"] from inputOutput SFString field named minificationFilter.java.lang.String
getTextureCompression()
Provide String enumeration value (baseType xs:NMTOKEN) ["DEFAULT" | "FASTEST" | "HIGH" | "LOW" | "MEDIUM" | "NICEST"] from inputOutput SFString field named textureCompression.float
getTexturePriority()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named texturePriority.java.lang.String
getUSE()
Provide String value from inputOutput SFString field named USE.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
hasIS()
Indicate whether an object is available for inputOutput SFNode field IS.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.TexturePropertiesObject
setAnisotropicDegree(double newValue)
Utility method: double-precision set-parameter accessor for X3D floating-point type, similar tosetAnisotropicDegree(float)
.TexturePropertiesObject
setAnisotropicDegree(float newValue)
Accessor method to assign float value to inputOutput SFFloat field named anisotropicDegree.TexturePropertiesObject
setAnisotropicDegree(SFFloatObject newValue)
Assign typed object value to SFFloat anisotropicDegree field, similar tosetAnisotropicDegree(float)
.TexturePropertiesObject
setBorderColor(double[] newArray)
Utility method: double-precision set-parameters accessor for X3D floating-point type, similar tosetBorderColor(float[])
.TexturePropertiesObject
setBorderColor(double red, double green, double blue, double alpha)
Utility method: double-precision set-parameters accessor for X3D floating-point type, similar tosetBorderColor(float[])
.TexturePropertiesObject
setBorderColor(float[] newValue)
Accessor method to assign 4-tuple float array using RGBA values [0..1] to inputOutput SFColorRGBA field named borderColor.TexturePropertiesObject
setBorderColor(float red, float green, float blue, float alpha)
Assign values to SFColorRGBA borderColor field, similar tosetBorderColor(float[])
.TexturePropertiesObject
setBorderColor(SFColorRGBAObject newValue)
Assign typed object value to SFColorRGBA borderColor field, similar tosetBorderColor(float[])
.TexturePropertiesObject
setBorderWidth(int newValue)
Accessor method to assign int value to inputOutput SFInt32 field named borderWidth.TexturePropertiesObject
setBorderWidth(SFInt32Object newValue)
Assign typed object value to SFInt32 borderWidth field, similar tosetBorderWidth(int)
.TexturePropertiesObject
setBoundaryModeR(java.lang.String newValue)
Accessor method to assign String enumeration value ("CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT") to inputOutput SFString field named boundaryModeR.TexturePropertiesObject
setBoundaryModeR(SFStringObject newValue)
Assign typed object value to SFString boundaryModeR field, similar tosetBoundaryModeR(String)
.TexturePropertiesObject
setBoundaryModeS(java.lang.String newValue)
Accessor method to assign String enumeration value ("CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT") to inputOutput SFString field named boundaryModeS.TexturePropertiesObject
setBoundaryModeS(SFStringObject newValue)
Assign typed object value to SFString boundaryModeS field, similar tosetBoundaryModeS(String)
.TexturePropertiesObject
setBoundaryModeT(java.lang.String newValue)
Accessor method to assign String enumeration value ("CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT") to inputOutput SFString field named boundaryModeT.TexturePropertiesObject
setBoundaryModeT(SFStringObject newValue)
Assign typed object value to SFString boundaryModeT field, similar tosetBoundaryModeT(String)
.TexturePropertiesObject
setCssClass(java.lang.String newValue)
Accessor method to assign String value to inputOutput SFString field named class.TexturePropertiesObject
setCssClass(SFStringObject newValue)
Assign typed object value to SFString cssClass field, similar tosetCssClass(String)
.TexturePropertiesObject
setDEF(java.lang.String newValue)
Accessor method to assign String value to inputOutput SFString field named DEF.TexturePropertiesObject
setDEF(SFStringObject newValue)
Assign typed object value to SFString DEF field, similar tosetDEF(String)
.TexturePropertiesObject
setGenerateMipMaps(boolean newValue)
Accessor method to assign boolean value to initializeOnly SFBool field named generateMipMaps.TexturePropertiesObject
setGenerateMipMaps(SFBoolObject newValue)
Assign typed object value to SFBool generateMipMaps field, similar tosetGenerateMipMaps(boolean)
.TexturePropertiesObject
setIS(ISObject newValue)
Accessor method to assign ISObject instance (using a properly typed node) to inputOutput SFNode field IS.TexturePropertiesObject
setMagnificationFilter(java.lang.String newValue)
Accessor method to assign String enumeration value ("AVG_PIXEL" | "DEFAULT" | "FASTEST" | "NEAREST_PIXEL" | "NICEST") to inputOutput SFString field named magnificationFilter.TexturePropertiesObject
setMagnificationFilter(SFStringObject newValue)
Assign typed object value to SFString magnificationFilter field, similar tosetMagnificationFilter(String)
.TexturePropertiesObject
setMetadata(ProtoInstanceObject newValue)
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.TexturePropertiesObject
setMetadata(X3DMetadataObject newValue)
Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.TexturePropertiesObject
setMinificationFilter(java.lang.String newValue)
Accessor method to assign String enumeration value ("AVG_PIXEL" | "AVG_PIXEL_AVG_MIPMAP" | "AVG_PIXEL_NEAREST_MIPMAP" | "DEFAULT" | "FASTEST" | "NEAREST_PIXEL" | "NEAREST_PIXEL_AVG_MIPMAP" | "NEAREST_PIXEL_NEAREST_MIPMAP" | "NICEST") to inputOutput SFString field named minificationFilter.TexturePropertiesObject
setMinificationFilter(SFStringObject newValue)
Assign typed object value to SFString minificationFilter field, similar tosetMinificationFilter(String)
.TexturePropertiesObject
setTextureCompression(java.lang.String newValue)
Accessor method to assign String enumeration value ("DEFAULT" | "FASTEST" | "HIGH" | "LOW" | "MEDIUM" | "NICEST") to inputOutput SFString field named textureCompression.TexturePropertiesObject
setTextureCompression(SFStringObject newValue)
Assign typed object value to SFString textureCompression field, similar tosetTextureCompression(String)
.TexturePropertiesObject
setTexturePriority(double newValue)
Utility method: double-precision set-parameter accessor for X3D floating-point type, similar tosetTexturePriority(float)
.TexturePropertiesObject
setTexturePriority(float newValue)
Accessor method to assign float value to inputOutput SFFloat field named texturePriority.TexturePropertiesObject
setTexturePriority(SFFloatObject newValue)
Assign typed object value to SFFloat texturePriority field, similar tosetTexturePriority(float)
.TexturePropertiesObject
setUSE(java.lang.String newValue)
Accessor method to assign String value to inputOutput SFString field named USE.TexturePropertiesObject
setUSE(SFStringObject newValue)
Assign typed object value to SFString USE field, similar tosetUSE(String)
.TexturePropertiesObject
setUSE(TexturePropertiesObject DEFnode)
Assign a USE reference to another DEF node of same node type, similar tosetUSE(String)
.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.Methods inherited from class org.web3d.x3d.jsail.X3DConcreteNode
getContainerFieldAlternateValues, getContainerFieldOverride, isNode, isStatement, isUSE, resetContainerFieldOverride, setConcreteCssClass, setConcreteDEF, setConcreteUSE, setContainerFieldOverride
Methods inherited from class org.web3d.x3d.jsail.X3DConcreteElement
clearParentObject, findAncestorElementByName, findAncestorProtoBody, findAncestorSceneObject, findAncestorX3DObject, getPackageName, getParentObject, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorSceneObject, hasAncestorX3DObject, hasParentObject, isValid, setParentObject, toStringClassicVRML, toStringVRML97, toStringX3D
-
Field Details
-
BOUNDARYMODER_CLAMP
public static final java.lang.String BOUNDARYMODER_CLAMPTooltip: Clamp texture coordinates to range [0,1]. SFString field named boundaryModeR with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CLAMP" (Java syntax) or CLAMP (XML syntax). -
BOUNDARYMODER_CLAMP_TO_EDGE
public static final java.lang.String BOUNDARYMODER_CLAMP_TO_EDGETooltip: Clamp texture coordinates such that a border texel is never sampled. SFString field named boundaryModeR with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CLAMP_TO_EDGE" (Java syntax) or CLAMP_TO_EDGE (XML syntax). -
BOUNDARYMODER_CLAMP_TO_BOUNDARY
public static final java.lang.String BOUNDARYMODER_CLAMP_TO_BOUNDARYTooltip: Clamp texture coordinates such that texture samples are border texels for fragments. SFString field named boundaryModeR with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CLAMP_TO_BOUNDARY" (Java syntax) or CLAMP_TO_BOUNDARY (XML syntax). -
BOUNDARYMODER_MIRRORED_REPEAT
public static final java.lang.String BOUNDARYMODER_MIRRORED_REPEATTooltip: Texture coordinates are mirrored and then clamped as in CLAMP_TO_EDGE. SFString field named boundaryModeR with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "MIRRORED_REPEAT" (Java syntax) or MIRRORED_REPEAT (XML syntax). -
BOUNDARYMODER_REPEAT
public static final java.lang.String BOUNDARYMODER_REPEATTooltip: Repeat a texture across the fragment. SFString field named boundaryModeR with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "REPEAT" (Java syntax) or REPEAT (XML syntax). -
BOUNDARYMODES_CLAMP
public static final java.lang.String BOUNDARYMODES_CLAMPTooltip: Clamp texture coordinates to range [0,1]. SFString field named boundaryModeS with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CLAMP" (Java syntax) or CLAMP (XML syntax). -
BOUNDARYMODES_CLAMP_TO_EDGE
public static final java.lang.String BOUNDARYMODES_CLAMP_TO_EDGETooltip: Clamp texture coordinates such that a border texel is never sampled. SFString field named boundaryModeS with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CLAMP_TO_EDGE" (Java syntax) or CLAMP_TO_EDGE (XML syntax). -
BOUNDARYMODES_CLAMP_TO_BOUNDARY
public static final java.lang.String BOUNDARYMODES_CLAMP_TO_BOUNDARYTooltip: Clamp texture coordinates such that texture samples are border texels for fragments. SFString field named boundaryModeS with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CLAMP_TO_BOUNDARY" (Java syntax) or CLAMP_TO_BOUNDARY (XML syntax). -
BOUNDARYMODES_MIRRORED_REPEAT
public static final java.lang.String BOUNDARYMODES_MIRRORED_REPEATTooltip: Texture coordinates are mirrored and then clamped as in CLAMP_TO_EDGE. SFString field named boundaryModeS with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "MIRRORED_REPEAT" (Java syntax) or MIRRORED_REPEAT (XML syntax). -
BOUNDARYMODES_REPEAT
public static final java.lang.String BOUNDARYMODES_REPEATTooltip: Repeat a texture across the fragment. SFString field named boundaryModeS with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "REPEAT" (Java syntax) or REPEAT (XML syntax). -
BOUNDARYMODET_CLAMP
public static final java.lang.String BOUNDARYMODET_CLAMPTooltip: Clamp texture coordinates to range [0,1]. SFString field named boundaryModeT with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CLAMP" (Java syntax) or CLAMP (XML syntax). -
BOUNDARYMODET_CLAMP_TO_EDGE
public static final java.lang.String BOUNDARYMODET_CLAMP_TO_EDGETooltip: Clamp texture coordinates such that a border texel is never sampled. SFString field named boundaryModeT with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CLAMP_TO_EDGE" (Java syntax) or CLAMP_TO_EDGE (XML syntax). -
BOUNDARYMODET_CLAMP_TO_BOUNDARY
public static final java.lang.String BOUNDARYMODET_CLAMP_TO_BOUNDARYTooltip: Clamp texture coordinates such that texture samples are border texels for fragments. SFString field named boundaryModeT with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CLAMP_TO_BOUNDARY" (Java syntax) or CLAMP_TO_BOUNDARY (XML syntax). -
BOUNDARYMODET_MIRRORED_REPEAT
public static final java.lang.String BOUNDARYMODET_MIRRORED_REPEATTooltip: Texture coordinates are mirrored and then clamped as in CLAMP_TO_EDGE. SFString field named boundaryModeT with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "MIRRORED_REPEAT" (Java syntax) or MIRRORED_REPEAT (XML syntax). -
BOUNDARYMODET_REPEAT
public static final java.lang.String BOUNDARYMODET_REPEATTooltip: Repeat a texture across the fragment. SFString field named boundaryModeT with X3DUOM simpleType textureBoundaryModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "REPEAT" (Java syntax) or REPEAT (XML syntax). -
MAGNIFICATIONFILTER_AVG_PIXEL
public static final java.lang.String MAGNIFICATIONFILTER_AVG_PIXELTooltip: weighted average of four texture elements closest to center of pixel being textured. SFString field named magnificationFilter with X3DUOM simpleType textureMagnificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "AVG_PIXEL" (Java syntax) or AVG_PIXEL (XML syntax). -
MAGNIFICATIONFILTER_DEFAULT
public static final java.lang.String MAGNIFICATIONFILTER_DEFAULTTooltip: browser-specified default magnification mode. SFString field named magnificationFilter with X3DUOM simpleType textureMagnificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "DEFAULT" (Java syntax) or DEFAULT (XML syntax). -
MAGNIFICATIONFILTER_FASTEST
public static final java.lang.String MAGNIFICATIONFILTER_FASTESTTooltip: fastest method available. SFString field named magnificationFilter with X3DUOM simpleType textureMagnificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "FASTEST" (Java syntax) or FASTEST (XML syntax). -
MAGNIFICATIONFILTER_NEAREST_PIXEL
public static final java.lang.String MAGNIFICATIONFILTER_NEAREST_PIXELTooltip: texture element nearest to the center of pixel being textured. SFString field named magnificationFilter with X3DUOM simpleType textureMagnificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "NEAREST_PIXEL" (Java syntax) or NEAREST_PIXEL (XML syntax). -
MAGNIFICATIONFILTER_NICEST
public static final java.lang.String MAGNIFICATIONFILTER_NICESTTooltip: highest quality method available. SFString field named magnificationFilter with X3DUOM simpleType textureMagnificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "NICEST" (Java syntax) or NICEST (XML syntax). -
MINIFICATIONFILTER_AVG_PIXEL
public static final java.lang.String MINIFICATIONFILTER_AVG_PIXELTooltip: weighted average of four texture elements closest to center of pixel being textured. SFString field named minificationFilter with X3DUOM simpleType textureMinificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "AVG_PIXEL" (Java syntax) or AVG_PIXEL (XML syntax). -
MINIFICATIONFILTER_AVG_PIXEL_AVG_MIPMAP
public static final java.lang.String MINIFICATIONFILTER_AVG_PIXEL_AVG_MIPMAPTooltip: tri-linear mipmap filtering. SFString field named minificationFilter with X3DUOM simpleType textureMinificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "AVG_PIXEL_AVG_MIPMAP" (Java syntax) or AVG_PIXEL_AVG_MIPMAP (XML syntax). -
MINIFICATIONFILTER_AVG_PIXEL_NEAREST_MIPMAP
public static final java.lang.String MINIFICATIONFILTER_AVG_PIXEL_NEAREST_MIPMAPTooltip: choose mipmap that most closely matches size of pixel being textured, use weighted average of four texture elements closest to center of pixel. SFString field named minificationFilter with X3DUOM simpleType textureMinificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "AVG_PIXEL_NEAREST_MIPMAP" (Java syntax) or AVG_PIXEL_NEAREST_MIPMAP (XML syntax). -
MINIFICATIONFILTER_DEFAULT
public static final java.lang.String MINIFICATIONFILTER_DEFAULTTooltip: browser-specified default minification mode. SFString field named minificationFilter with X3DUOM simpleType textureMinificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "DEFAULT" (Java syntax) or DEFAULT (XML syntax). -
MINIFICATIONFILTER_FASTEST
public static final java.lang.String MINIFICATIONFILTER_FASTESTTooltip: fastest method available, use mipmaps if possible. SFString field named minificationFilter with X3DUOM simpleType textureMinificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "FASTEST" (Java syntax) or FASTEST (XML syntax). -
MINIFICATIONFILTER_NEAREST_PIXEL
public static final java.lang.String MINIFICATIONFILTER_NEAREST_PIXELTooltip: texture element nearest to center of pixel being textured. SFString field named minificationFilter with X3DUOM simpleType textureMinificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "NEAREST_PIXEL" (Java syntax) or NEAREST_PIXEL (XML syntax). -
MINIFICATIONFILTER_NEAREST_PIXEL_AVG_MIPMAP
public static final java.lang.String MINIFICATIONFILTER_NEAREST_PIXEL_AVG_MIPMAPTooltip: texture element nearest to center of pixel being textured, use average of two nearest mipmaps. SFString field named minificationFilter with X3DUOM simpleType textureMinificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "NEAREST_PIXEL_AVG_MIPMAP" (Java syntax) or NEAREST_PIXEL_AVG_MIPMAP (XML syntax). -
MINIFICATIONFILTER_NEAREST_PIXEL_NEAREST_MIPMAP
public static final java.lang.String MINIFICATIONFILTER_NEAREST_PIXEL_NEAREST_MIPMAPTooltip: texture element nearest to center of pixel being textured, use nearest mipmap. SFString field named minificationFilter with X3DUOM simpleType textureMinificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "NEAREST_PIXEL_NEAREST_MIPMAP" (Java syntax) or NEAREST_PIXEL_NEAREST_MIPMAP (XML syntax). -
MINIFICATIONFILTER_NICEST
public static final java.lang.String MINIFICATIONFILTER_NICESTTooltip: highest quality method available. SFString field named minificationFilter with X3DUOM simpleType textureMinificationModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "NICEST" (Java syntax) or NICEST (XML syntax). -
TEXTURECOMPRESSION_DEFAULT
public static final java.lang.String TEXTURECOMPRESSION_DEFAULTTooltip: browser-specified default compression mode. SFString field named textureCompression with X3DUOM simpleType textureCompressionModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "DEFAULT" (Java syntax) or DEFAULT (XML syntax). -
TEXTURECOMPRESSION_FASTEST
public static final java.lang.String TEXTURECOMPRESSION_FASTESTTooltip: fastest method available. SFString field named textureCompression with X3DUOM simpleType textureCompressionModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "FASTEST" (Java syntax) or FASTEST (XML syntax). -
TEXTURECOMPRESSION_HIGH
public static final java.lang.String TEXTURECOMPRESSION_HIGHTooltip: greatest amount of compression. SFString field named textureCompression with X3DUOM simpleType textureCompressionModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "HIGH" (Java syntax) or HIGH (XML syntax). -
TEXTURECOMPRESSION_LOW
public static final java.lang.String TEXTURECOMPRESSION_LOWTooltip: least amount of compression. SFString field named textureCompression with X3DUOM simpleType textureCompressionModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "LOW" (Java syntax) or LOW (XML syntax). -
TEXTURECOMPRESSION_MEDIUM
public static final java.lang.String TEXTURECOMPRESSION_MEDIUMTooltip: moderate amount of compressions. SFString field named textureCompression with X3DUOM simpleType textureCompressionModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "MEDIUM" (Java syntax) or MEDIUM (XML syntax). -
TEXTURECOMPRESSION_NICEST
public static final java.lang.String TEXTURECOMPRESSION_NICESTTooltip: highest quality method available. SFString field named textureCompression with X3DUOM simpleType textureCompressionModeChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "NICEST" (Java syntax) or NICEST (XML syntax). -
NAME
public static final java.lang.String NAMEString constant NAME provides name of this element: TextureProperties.- See Also:
- Constant Field Values
-
COMPONENT
public static final java.lang.String COMPONENTString constant COMPONENT defines X3D component for the TextureProperties element: Texturing- See Also:
- Constant Field Values
-
LEVEL
public static final int LEVELInteger constant LEVEL provides default X3D Texturing component level for this element: 2- See Also:
- Constant Field Values
-
ANISOTROPICDEGREE_DEFAULT_VALUE
public static final float ANISOTROPICDEGREE_DEFAULT_VALUESFFloat field named anisotropicDegree has default value 1f (Java syntax) or 1 (XML syntax).- See Also:
- Constant Field Values
-
BORDERCOLOR_DEFAULT_VALUE
public static final float[] BORDERCOLOR_DEFAULT_VALUESFColorRGBA field named borderColor has default value {0f,0f,0f,0f} (Java syntax) or 0 0 0 0 (XML syntax). -
BORDERWIDTH_DEFAULT_VALUE
public static final int BORDERWIDTH_DEFAULT_VALUESFInt32 field named borderWidth has default value 0 (Java syntax) or 0 (XML syntax).- See Also:
- Constant Field Values
-
BOUNDARYMODER_DEFAULT_VALUE
public static final java.lang.String BOUNDARYMODER_DEFAULT_VALUESFString field named boundaryModeR has default value "REPEAT" (Java syntax) or REPEAT (XML syntax).- See Also:
- Constant Field Values
-
BOUNDARYMODES_DEFAULT_VALUE
public static final java.lang.String BOUNDARYMODES_DEFAULT_VALUESFString field named boundaryModeS has default value "REPEAT" (Java syntax) or REPEAT (XML syntax).- See Also:
- Constant Field Values
-
BOUNDARYMODET_DEFAULT_VALUE
public static final java.lang.String BOUNDARYMODET_DEFAULT_VALUESFString field named boundaryModeT has default value "REPEAT" (Java syntax) or REPEAT (XML syntax).- See Also:
- Constant Field Values
-
GENERATEMIPMAPS_DEFAULT_VALUE
public static final boolean GENERATEMIPMAPS_DEFAULT_VALUESFBool field named generateMipMaps has default value false (Java syntax) or false (XML syntax).- See Also:
- Constant Field Values
-
IS_DEFAULT_VALUE
SFNode field named IS has default value null (Java syntax) or NULL (XML syntax). -
MAGNIFICATIONFILTER_DEFAULT_VALUE
public static final java.lang.String MAGNIFICATIONFILTER_DEFAULT_VALUESFString field named magnificationFilter has default value "FASTEST" (Java syntax) or FASTEST (XML syntax).- See Also:
- Constant Field Values
-
METADATA_DEFAULT_VALUE
SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax). -
MINIFICATIONFILTER_DEFAULT_VALUE
public static final java.lang.String MINIFICATIONFILTER_DEFAULT_VALUESFString field named minificationFilter has default value "FASTEST" (Java syntax) or FASTEST (XML syntax).- See Also:
- Constant Field Values
-
TEXTURECOMPRESSION_DEFAULT_VALUE
public static final java.lang.String TEXTURECOMPRESSION_DEFAULT_VALUESFString field named textureCompression has default value "FASTEST" (Java syntax) or FASTEST (XML syntax).- See Also:
- Constant Field Values
-
TEXTUREPRIORITY_DEFAULT_VALUE
public static final float TEXTUREPRIORITY_DEFAULT_VALUESFFloat field named texturePriority has default value 0f (Java syntax) or 0 (XML syntax).- See Also:
- Constant Field Values
-
containerField_DEFAULT_VALUE
public static final java.lang.String containerField_DEFAULT_VALUEcontainerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes. -
fromField_ANISOTROPICDEGREE
public static final java.lang.String fromField_ANISOTROPICDEGREEfromField ROUTE name for SFFloat field named anisotropicDegree.- See Also:
- Constant Field Values
-
toField_ANISOTROPICDEGREE
public static final java.lang.String toField_ANISOTROPICDEGREEtoField ROUTE name for SFFloat field named anisotropicDegree.- See Also:
- Constant Field Values
-
fromField_BORDERCOLOR
public static final java.lang.String fromField_BORDERCOLORfromField ROUTE name for SFColorRGBA field named borderColor.- See Also:
- Constant Field Values
-
toField_BORDERCOLOR
public static final java.lang.String toField_BORDERCOLORtoField ROUTE name for SFColorRGBA field named borderColor.- See Also:
- Constant Field Values
-
fromField_BORDERWIDTH
public static final java.lang.String fromField_BORDERWIDTHfromField ROUTE name for SFInt32 field named borderWidth.- See Also:
- Constant Field Values
-
toField_BORDERWIDTH
public static final java.lang.String toField_BORDERWIDTHtoField ROUTE name for SFInt32 field named borderWidth.- See Also:
- Constant Field Values
-
fromField_BOUNDARYMODER
public static final java.lang.String fromField_BOUNDARYMODERfromField ROUTE name for SFString field named boundaryModeR.- See Also:
- Constant Field Values
-
toField_BOUNDARYMODER
public static final java.lang.String toField_BOUNDARYMODERtoField ROUTE name for SFString field named boundaryModeR.- See Also:
- Constant Field Values
-
fromField_BOUNDARYMODES
public static final java.lang.String fromField_BOUNDARYMODESfromField ROUTE name for SFString field named boundaryModeS.- See Also:
- Constant Field Values
-
toField_BOUNDARYMODES
public static final java.lang.String toField_BOUNDARYMODEStoField ROUTE name for SFString field named boundaryModeS.- See Also:
- Constant Field Values
-
fromField_BOUNDARYMODET
public static final java.lang.String fromField_BOUNDARYMODETfromField ROUTE name for SFString field named boundaryModeT.- See Also:
- Constant Field Values
-
toField_BOUNDARYMODET
public static final java.lang.String toField_BOUNDARYMODETtoField ROUTE name for SFString field named boundaryModeT.- See Also:
- Constant Field Values
-
fromField_IS
public static final java.lang.String fromField_ISfromField ROUTE name for SFNode field named IS.- See Also:
- Constant Field Values
-
fromField_MAGNIFICATIONFILTER
public static final java.lang.String fromField_MAGNIFICATIONFILTERfromField ROUTE name for SFString field named magnificationFilter.- See Also:
- Constant Field Values
-
toField_MAGNIFICATIONFILTER
public static final java.lang.String toField_MAGNIFICATIONFILTERtoField ROUTE name for SFString field named magnificationFilter.- See Also:
- Constant Field Values
-
fromField_METADATA
public static final java.lang.String fromField_METADATAfromField ROUTE name for SFNode field named metadata.- See Also:
- Constant Field Values
-
toField_METADATA
public static final java.lang.String toField_METADATAtoField ROUTE name for SFNode field named metadata.- See Also:
- Constant Field Values
-
fromField_MINIFICATIONFILTER
public static final java.lang.String fromField_MINIFICATIONFILTERfromField ROUTE name for SFString field named minificationFilter.- See Also:
- Constant Field Values
-
toField_MINIFICATIONFILTER
public static final java.lang.String toField_MINIFICATIONFILTERtoField ROUTE name for SFString field named minificationFilter.- See Also:
- Constant Field Values
-
fromField_TEXTURECOMPRESSION
public static final java.lang.String fromField_TEXTURECOMPRESSIONfromField ROUTE name for SFString field named textureCompression.- See Also:
- Constant Field Values
-
toField_TEXTURECOMPRESSION
public static final java.lang.String toField_TEXTURECOMPRESSIONtoField ROUTE name for SFString field named textureCompression.- See Also:
- Constant Field Values
-
fromField_TEXTUREPRIORITY
public static final java.lang.String fromField_TEXTUREPRIORITYfromField ROUTE name for SFFloat field named texturePriority.- See Also:
- Constant Field Values
-
toField_TEXTUREPRIORITY
public static final java.lang.String toField_TEXTUREPRIORITYtoField ROUTE name for SFFloat field named texturePriority.- See Also:
- Constant Field Values
-
-
Constructor Details
-
TexturePropertiesObject
public TexturePropertiesObject()Constructor for TexturePropertiesObject to initialize member variables with default values. -
TexturePropertiesObject
public TexturePropertiesObject(java.lang.String DEFlabel)Utility constructor that assigns DEF label after initializing member variables with default values.- Parameters:
DEFlabel
- unique DEF name for this X3D node
-
-
Method Details
-
getElementName
public final java.lang.String getElementName()Provides name of this element: TextureProperties- Specified by:
getElementName
in classX3DConcreteElement
- Returns:
- name of this element
-
getComponent
public final java.lang.String getComponent()Defines X3D component for the TextureProperties element: Texturing- Specified by:
getComponent
in classX3DConcreteElement
- Returns:
- X3D component for this element
-
getComponentLevel
public final int getComponentLevel()Provides default X3D component level for this element: 2- Specified by:
getComponentLevel
in classX3DConcreteElement
- Returns:
- default X3D component level for this element
-
getFieldType
public java.lang.String getFieldType(java.lang.String fieldName)Indicate type corresponding to given fieldName.- Specified by:
getFieldType
in classX3DConcreteElement
- Parameters:
fieldName
- name of field in this X3D node- Returns:
- X3D type (SFvec3f etc.), otherwise ConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPE if not recognized
- See Also:
ConfigurationProperties.ERROR_UNKNOWN_FIELD_TYPE
-
getAccessType
public java.lang.String getAccessType(java.lang.String fieldName)Indicate accessType corresponding to given fieldName.- Specified by:
getAccessType
in classX3DConcreteElement
- Parameters:
fieldName
- name of field in this X3D node- Returns:
- X3D accessType (inputOnly etc.), otherwise ConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE if not recognized
- See Also:
ConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE
-
getContainerFieldDefault
public final java.lang.String getContainerFieldDefault()containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes.- Specified by:
getContainerFieldDefault
in classX3DConcreteNode
- Returns:
- default containerField value
- See Also:
- X3D Scene Authoring Hints: containerField, X3D Unified Object Model (X3DUOM)
-
initialize
public final void initialize()Initialize all member variables to default values.- Overrides:
initialize
in classX3DConcreteNode
-
getAnisotropicDegree
public float getAnisotropicDegree()Provide float value within allowed range of [1,infinity) from inputOutput SFFloat field named anisotropicDegree.
Tooltip: [1,+infinity) anisotropicDegree defines minimum degree of anisotropy to account for in texture filtering (1=no effect for symmetric filtering, otherwise provide higher value). At least 2-to-1 anisotropy is often supported in low-level graphics rendering software and hardware, relative to horizontal and vertical directions.- Hint: Anisotropy indicates directional dependence of properties. https://en.wikipedia.org/wiki/Anisotropy
- Hint: OpenGL EXT_texture_filter_anisotropic https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_texture_filter_anisotropic.txt
- Specified by:
getAnisotropicDegree
in interfaceTextureProperties
- Returns:
- value of anisotropicDegree field
-
setAnisotropicDegree
Accessor method to assign float value to inputOutput SFFloat field named anisotropicDegree.
Tooltip: [1,+infinity) anisotropicDegree defines minimum degree of anisotropy to account for in texture filtering (1=no effect for symmetric filtering, otherwise provide higher value). At least 2-to-1 anisotropy is often supported in low-level graphics rendering software and hardware, relative to horizontal and vertical directions.- Hint: Anisotropy indicates directional dependence of properties. https://en.wikipedia.org/wiki/Anisotropy
- Hint: OpenGL EXT_texture_filter_anisotropic https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_texture_filter_anisotropic.txt
- Specified by:
setAnisotropicDegree
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the anisotropicDegree field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setAnisotropicDegree
Assign typed object value to SFFloat anisotropicDegree field, similar tosetAnisotropicDegree(float)
.- Parameters:
newValue
- is new value for the anisotropicDegree field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setAnisotropicDegree
Utility method: double-precision set-parameter accessor for X3D floating-point type, similar tosetAnisotropicDegree(float)
.- Parameters:
newValue
- is new value for field- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getBorderColor
public float[] getBorderColor()Provide array of 4-tuple float results using RGBA values [0..1] using RGBA values [0..1] from inputOutput SFColorRGBA field named borderColor.
Tooltip: [0,1] borderColor defines border pixel color.- Hint: X3D Scene Authoring Hints, Color https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Color
- Specified by:
getBorderColor
in interfaceTextureProperties
- Returns:
- value of borderColor field
-
setBorderColor
Accessor method to assign 4-tuple float array using RGBA values [0..1] to inputOutput SFColorRGBA field named borderColor.
Tooltip: [0,1] borderColor defines border pixel color.- Hint: X3D Scene Authoring Hints, Color https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Color
- Specified by:
setBorderColor
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the borderColor field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setBorderColor
Assign typed object value to SFColorRGBA borderColor field, similar tosetBorderColor(float[])
.- Parameters:
newValue
- is new value for the borderColor field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setBorderColor
Assign values to SFColorRGBA borderColor field, similar tosetBorderColor(float[])
.- Parameters:
red
- first componentgreen
- second componentblue
- third componentalpha
- fourth component for opaqueness (1 - transparency)- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setBorderColor
Utility method: double-precision set-parameters accessor for X3D floating-point type, similar tosetBorderColor(float[])
.- Parameters:
red
- first component [0..1]green
- second component [0..1]blue
- third component [0..1]alpha
- fourth component [0..1]- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setBorderColor
Utility method: double-precision set-parameters accessor for X3D floating-point type, similar tosetBorderColor(float[])
.- Parameters:
newArray
- is new value for field- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getBorderWidth
public int getBorderWidth()Provide int value within allowed range of [0,infinity) from inputOutput SFInt32 field named borderWidth.
Tooltip: [0,+infinity) borderWidth number of pixels for texture border. *- Specified by:
getBorderWidth
in interfaceTextureProperties
- Returns:
- value of borderWidth field
-
setBorderWidth
Accessor method to assign int value to inputOutput SFInt32 field named borderWidth.
Tooltip: [0,+infinity) borderWidth number of pixels for texture border. *- Specified by:
setBorderWidth
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the borderWidth field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setBorderWidth
Assign typed object value to SFInt32 borderWidth field, similar tosetBorderWidth(int)
.- Parameters:
newValue
- is new value for the borderWidth field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getBoundaryModeR
public java.lang.String getBoundaryModeR()Provide String enumeration value (baseType xs:NMTOKEN) ["CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT"] from inputOutput SFString field named boundaryModeR.
Tooltip: boundaryModeR describes handling of texture-coordinate boundaries.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.7 Texture boundary modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureBoundaryModes for details.
Available enumeration values for string comparison:CLAMP
,CLAMP_TO_EDGE
,CLAMP_TO_BOUNDARY
,MIRRORED_REPEAT
,REPEAT
.- Specified by:
getBoundaryModeR
in interfaceTextureProperties
- Returns:
- value of boundaryModeR field
-
setBoundaryModeR
Accessor method to assign String enumeration value ("CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT") to inputOutput SFString field named boundaryModeR.
Warning: authors can only choose from a strict list of enumeration values (CLAMP
,CLAMP_TO_EDGE
,CLAMP_TO_BOUNDARY
,MIRRORED_REPEAT
,REPEAT
).
Tooltip: boundaryModeR describes handling of texture-coordinate boundaries.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.7 Texture boundary modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureBoundaryModes for details.
- Specified by:
setBoundaryModeR
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the boundaryModeR field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setBoundaryModeR
Assign typed object value to SFString boundaryModeR field, similar tosetBoundaryModeR(String)
.- Parameters:
newValue
- is new value for the boundaryModeR field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getBoundaryModeS
public java.lang.String getBoundaryModeS()Provide String enumeration value (baseType xs:NMTOKEN) ["CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT"] from inputOutput SFString field named boundaryModeS.
Tooltip: boundaryModeS describes handling of texture-coordinate boundaries.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.7 Texture boundary modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureBoundaryModes for details.
Available enumeration values for string comparison:CLAMP
,CLAMP_TO_EDGE
,CLAMP_TO_BOUNDARY
,MIRRORED_REPEAT
,REPEAT
.- Specified by:
getBoundaryModeS
in interfaceTextureProperties
- Returns:
- value of boundaryModeS field
-
setBoundaryModeS
Accessor method to assign String enumeration value ("CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT") to inputOutput SFString field named boundaryModeS.
Warning: authors can only choose from a strict list of enumeration values (CLAMP
,CLAMP_TO_EDGE
,CLAMP_TO_BOUNDARY
,MIRRORED_REPEAT
,REPEAT
).
Tooltip: boundaryModeS describes handling of texture-coordinate boundaries.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.7 Texture boundary modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureBoundaryModes for details.
- Specified by:
setBoundaryModeS
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the boundaryModeS field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setBoundaryModeS
Assign typed object value to SFString boundaryModeS field, similar tosetBoundaryModeS(String)
.- Parameters:
newValue
- is new value for the boundaryModeS field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getBoundaryModeT
public java.lang.String getBoundaryModeT()Provide String enumeration value (baseType xs:NMTOKEN) ["CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT"] from inputOutput SFString field named boundaryModeT.
Tooltip: boundaryModeT describes handling of texture-coordinate boundaries.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.7 Texture boundary modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureBoundaryModes for details.
Available enumeration values for string comparison:CLAMP
,CLAMP_TO_EDGE
,CLAMP_TO_BOUNDARY
,MIRRORED_REPEAT
,REPEAT
.- Specified by:
getBoundaryModeT
in interfaceTextureProperties
- Returns:
- value of boundaryModeT field
-
setBoundaryModeT
Accessor method to assign String enumeration value ("CLAMP" | "CLAMP_TO_EDGE" | "CLAMP_TO_BOUNDARY" | "MIRRORED_REPEAT" | "REPEAT") to inputOutput SFString field named boundaryModeT.
Warning: authors can only choose from a strict list of enumeration values (CLAMP
,CLAMP_TO_EDGE
,CLAMP_TO_BOUNDARY
,MIRRORED_REPEAT
,REPEAT
).
Tooltip: boundaryModeT describes handling of texture-coordinate boundaries.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.7 Texture boundary modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureBoundaryModes for details.
- Specified by:
setBoundaryModeT
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the boundaryModeT field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setBoundaryModeT
Assign typed object value to SFString boundaryModeT field, similar tosetBoundaryModeT(String)
.- Parameters:
newValue
- is new value for the boundaryModeT field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getGenerateMipMaps
public boolean getGenerateMipMaps()Provide boolean value from initializeOnly SFBool field named generateMipMaps.
Tooltip: Determines whether MIPMAPs are generated for texture images.- Warning: must declare generateMipMaps='true' for minificationFilter modes with MIPMAP in their value.
- Hint: mipmap preprocessing is a low-level rendering technique that can increase rendering speed and reduce aliasing artifacts.
- Hint: Mipmap pyramids are pre-calculated, optimized sequences of images, each of which is a progressively lower resolution representation of the same image. The height and width of each image level in the mipmap is a power of two smaller than the previous level.
- Hint: Aliasing https://en.wikipedia.org/wiki/Aliasing and Clipping https://en.wikipedia.org/wiki/Clipping_(computer_graphics)
- Hint: Mipmap https://en.wikipedia.org/wiki/Mipmap
- Specified by:
getGenerateMipMaps
in interfaceTextureProperties
- Returns:
- value of generateMipMaps field
-
setGenerateMipMaps
Accessor method to assign boolean value to initializeOnly SFBool field named generateMipMaps.
Tooltip: Determines whether MIPMAPs are generated for texture images.- Warning: must declare generateMipMaps='true' for minificationFilter modes with MIPMAP in their value.
- Hint: mipmap preprocessing is a low-level rendering technique that can increase rendering speed and reduce aliasing artifacts.
- Hint: Mipmap pyramids are pre-calculated, optimized sequences of images, each of which is a progressively lower resolution representation of the same image. The height and width of each image level in the mipmap is a power of two smaller than the previous level.
- Hint: Aliasing https://en.wikipedia.org/wiki/Aliasing and Clipping https://en.wikipedia.org/wiki/Clipping_(computer_graphics)
- Hint: Mipmap https://en.wikipedia.org/wiki/Mipmap
- Specified by:
setGenerateMipMaps
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the generateMipMaps field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setGenerateMipMaps
Assign typed object value to SFBool generateMipMaps field, similar tosetGenerateMipMaps(boolean)
.- Parameters:
newValue
- is new value for the generateMipMaps field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getIS
Provide ISObject instance (using a properly typed node) from inputOutput SFNode field IS.- Specified by:
getIS
in classX3DConcreteNode
- Returns:
- value of IS field
- See Also:
- X3D Tooltips: IS, X3D Tooltips: connect
-
setIS
Accessor method to assign ISObject instance (using a properly typed node) to inputOutput SFNode field IS.- Specified by:
setIS
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the IS field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
- X3D Tooltips: IS, X3D Tooltips: connect
-
clearIS
Utility method to clear SFNode value of IS field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
hasIS
public boolean hasIS()Indicate whether an object is available for inputOutput SFNode field IS.- Returns:
- whether a concrete statement or CommentsBlock is available.
- See Also:
getIS()
-
getMagnificationFilter
public java.lang.String getMagnificationFilter()Provide String enumeration value (baseType xs:NMTOKEN) ["AVG_PIXEL" | "DEFAULT" | "FASTEST" | "NEAREST_PIXEL" | "NICEST"] from inputOutput SFString field named magnificationFilter.
Tooltip: magnificationFilter indicates texture filter when image is smaller than screen space representation.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.8 Texture magnification modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureMagnificationModes for details.
Available enumeration values for string comparison:AVG_PIXEL
,DEFAULT
,FASTEST
,NEAREST_PIXEL
,NICEST
.- Specified by:
getMagnificationFilter
in interfaceTextureProperties
- Returns:
- value of magnificationFilter field
-
setMagnificationFilter
Accessor method to assign String enumeration value ("AVG_PIXEL" | "DEFAULT" | "FASTEST" | "NEAREST_PIXEL" | "NICEST") to inputOutput SFString field named magnificationFilter.
Warning: authors can only choose from a strict list of enumeration values (AVG_PIXEL
,DEFAULT
,FASTEST
,NEAREST_PIXEL
,NICEST
).
Tooltip: magnificationFilter indicates texture filter when image is smaller than screen space representation.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.8 Texture magnification modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureMagnificationModes for details.
- Specified by:
setMagnificationFilter
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the magnificationFilter field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setMagnificationFilter
Assign typed object value to SFString magnificationFilter field, similar tosetMagnificationFilter(String)
.- Parameters:
newValue
- is new value for the magnificationFilter field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getMetadata
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.- Specified by:
getMetadata
in interfaceTextureProperties
- Specified by:
getMetadata
in interfaceX3DNode
- Returns:
- value of metadata field
- See Also:
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node. Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#Metadata
, X3D Scene Authoring Hints: Metadata Nodes
-
setMetadata
Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.- Specified by:
setMetadata
in interfaceTextureProperties
- Specified by:
setMetadata
in interfaceX3DNode
- Specified by:
setMetadata
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the metadata field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
Tooltip: [X3DMetadataObject] Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node. Hint: X3D Architecture 7.2.4 Metadata https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#Metadata
, X3D Scene Authoring Hints: Metadata Nodes
-
clearMetadata
Utility method to clear SFNode value of metadata field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
setMetadata
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.- Specified by:
setMetadata
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the metadata field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
setMetadata(X3DMetadataObject)
-
hasMetadata
public boolean hasMetadata()Indicate whether an object is available for inputOutput SFNode field metadata.- Returns:
- whether a properly typed node or ProtoInstance or CommentsBlock is available.
- See Also:
getMetadata()
,getMetadataProtoInstance()
, X3D Scene Authoring Hints: Metadata Nodes
-
getMinificationFilter
public java.lang.String getMinificationFilter()Provide String enumeration value (baseType xs:NMTOKEN) ["AVG_PIXEL" | "AVG_PIXEL_AVG_MIPMAP" | "AVG_PIXEL_NEAREST_MIPMAP" | "DEFAULT" | "FASTEST" | "NEAREST_PIXEL" | "NEAREST_PIXEL_AVG_MIPMAP" | "NEAREST_PIXEL_NEAREST_MIPMAP" | "NICEST"] from inputOutput SFString field named minificationFilter.
Tooltip: minificationFilter indicates texture filter when image is larger than screen space representation.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.9 Texture minification modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureMinificationModes for details.
Available enumeration values for string comparison:AVG_PIXEL
,AVG_PIXEL_AVG_MIPMAP
,AVG_PIXEL_NEAREST_MIPMAP
,DEFAULT
,FASTEST
,NEAREST_PIXEL
,NEAREST_PIXEL_AVG_MIPMAP
,NEAREST_PIXEL_NEAREST_MIPMAP
,NICEST
.- Specified by:
getMinificationFilter
in interfaceTextureProperties
- Returns:
- value of minificationFilter field
-
setMinificationFilter
Accessor method to assign String enumeration value ("AVG_PIXEL" | "AVG_PIXEL_AVG_MIPMAP" | "AVG_PIXEL_NEAREST_MIPMAP" | "DEFAULT" | "FASTEST" | "NEAREST_PIXEL" | "NEAREST_PIXEL_AVG_MIPMAP" | "NEAREST_PIXEL_NEAREST_MIPMAP" | "NICEST") to inputOutput SFString field named minificationFilter.
Warning: authors can only choose from a strict list of enumeration values (AVG_PIXEL
,AVG_PIXEL_AVG_MIPMAP
,AVG_PIXEL_NEAREST_MIPMAP
,DEFAULT
,FASTEST
,NEAREST_PIXEL
,NEAREST_PIXEL_AVG_MIPMAP
,NEAREST_PIXEL_NEAREST_MIPMAP
,NICEST
).
Tooltip: minificationFilter indicates texture filter when image is larger than screen space representation.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.9 Texture minification modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureMinificationModes for details.
- Specified by:
setMinificationFilter
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the minificationFilter field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setMinificationFilter
Assign typed object value to SFString minificationFilter field, similar tosetMinificationFilter(String)
.- Parameters:
newValue
- is new value for the minificationFilter field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getTextureCompression
public java.lang.String getTextureCompression()Provide String enumeration value (baseType xs:NMTOKEN) ["DEFAULT" | "FASTEST" | "HIGH" | "LOW" | "MEDIUM" | "NICEST"] from inputOutput SFString field named textureCompression.
Tooltip: textureCompression indicates compression algorithm selection mode.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.10 Texture compression modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureCompressionModes for details.
- Hint: Texture compression https://en.wikipedia.org/wiki/Texture_compression
Available enumeration values for string comparison:DEFAULT
,FASTEST
,HIGH
,LOW
,MEDIUM
,NICEST
.- Specified by:
getTextureCompression
in interfaceTextureProperties
- Returns:
- value of textureCompression field
-
setTextureCompression
Accessor method to assign String enumeration value ("DEFAULT" | "FASTEST" | "HIGH" | "LOW" | "MEDIUM" | "NICEST") to inputOutput SFString field named textureCompression.
Warning: authors can only choose from a strict list of enumeration values (DEFAULT
,FASTEST
,HIGH
,LOW
,MEDIUM
,NICEST
).
Tooltip: textureCompression indicates compression algorithm selection mode.- Warning: do not wrap extra quotation marks around these SFString enumeration values, since "quotation" "marks" are only used for MFString values.
- Hint: X3D Architecture Table 18.10 Texture compression modes https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/texturing.html#t-TextureCompressionModes for details.
- Hint: Texture compression https://en.wikipedia.org/wiki/Texture_compression
- Specified by:
setTextureCompression
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the textureCompression field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setTextureCompression
Assign typed object value to SFString textureCompression field, similar tosetTextureCompression(String)
.- Parameters:
newValue
- is new value for the textureCompression field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getTexturePriority
public float getTexturePriority()Provide float value within allowed range of [0,1] from inputOutput SFFloat field named texturePriority.
Tooltip: [0,1] texturePriority defines relative priority for this texture when allocating texture memory, an important rendering resource in graphics-card hardware. Default value 0 is lowest, 1 is highest. *- Specified by:
getTexturePriority
in interfaceTextureProperties
- Returns:
- value of texturePriority field
-
setTexturePriority
Accessor method to assign float value to inputOutput SFFloat field named texturePriority.
Tooltip: [0,1] texturePriority defines relative priority for this texture when allocating texture memory, an important rendering resource in graphics-card hardware. Default value 0 is lowest, 1 is highest. *- Specified by:
setTexturePriority
in interfaceTextureProperties
- Parameters:
newValue
- is new value for the texturePriority field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setTexturePriority
Assign typed object value to SFFloat texturePriority field, similar tosetTexturePriority(float)
.- Parameters:
newValue
- is new value for the texturePriority field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setTexturePriority
Utility method: double-precision set-parameter accessor for X3D floating-point type, similar tosetTexturePriority(float)
.- Parameters:
newValue
- is new value for field- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getDEF
public java.lang.String getDEF()Provide String value from inputOutput SFString field named DEF.
Tooltip: DEF defines a unique ID name for this node, referenceable by other nodes.- Hint: descriptive DEF names improve clarity and help document a model.
- Hint: well-defined names can simplify design and debugging through improved author understanding.
- Hint: X3D Scene Authoring Hints, Naming Conventions https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions
- Overrides:
getDEF
in classX3DConcreteNode
- Returns:
- value of DEF field
- See Also:
- X3D Scene Authoring Hints: Naming Conventions
-
setDEF
Accessor method to assign String value to inputOutput SFString field named DEF.
Tooltip: DEF defines a unique ID name for this node, referenceable by other nodes.- Hint: descriptive DEF names improve clarity and help document a model.
- Hint: well-defined names can simplify design and debugging through improved author understanding.
- Hint: X3D Scene Authoring Hints, Naming Conventions https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions
Note that setting the DEF value clears the USE value.- Specified by:
setDEF
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the DEF field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setDEF
Assign typed object value to SFString DEF field, similar tosetDEF(String)
.- Parameters:
newValue
- is new value for the DEF field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getUSE
public java.lang.String getUSE()Provide String value from inputOutput SFString field named USE.
Tooltip: USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).- Hint: USE references to previously defined DEF geometry (instead of duplicating nodes) can improve performance.
- Warning: do NOT include any child nodes, a DEF attribute, or any other attribute values (except for containerField) when defining a USE attribute.
- Warning: each USE value must match a corresponding DEF value that is defined earlier in the scene.
- Overrides:
getUSE
in classX3DConcreteNode
- Returns:
- value of USE field
- See Also:
- X3D Scene Authoring Hints: Naming Conventions
-
setUSE
Accessor method to assign String value to inputOutput SFString field named USE.
Tooltip: USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value).- Hint: USE references to previously defined DEF geometry (instead of duplicating nodes) can improve performance.
- Warning: do NOT include any child nodes, a DEF attribute, or any other attribute values (except for containerField) when defining a USE attribute.
- Warning: each USE value must match a corresponding DEF value that is defined earlier in the scene.
Note: eachUSE
node is still an independent object, with theUSE
value matching theDEF
value in the preceding object.
Warning: invoking thesetUSE()
method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.
Warning: no other operations can be performed to modify a USE node other than setting an alternate containerField value.- Specified by:
setUSE
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the USE field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setUSE
Assign typed object value to SFString USE field, similar tosetUSE(String)
.- Parameters:
newValue
- is new value for the USE field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getCssClass
public java.lang.String getCssClass()Provide String value from inputOutput SFString field named class.
Tooltip: The class attribute is a space-separated list of classes, reserved for use by CSS cascading stylesheets.- Warning: currently the class attribute is only supported in XML encoding of X3D scenes.
- Hint: W3C Cascading Style Sheets https://www.w3.org/Style/CSS
- Overrides:
getCssClass
in classX3DConcreteNode
- Returns:
- value of class field
- See Also:
- W3C Cascading Style Sheets
-
setCssClass
Accessor method to assign String value to inputOutput SFString field named class.
Tooltip: The class attribute is a space-separated list of classes, reserved for use by CSS cascading stylesheets.- Warning: currently the class attribute is only supported in XML encoding of X3D scenes.
- Hint: W3C Cascading Style Sheets https://www.w3.org/Style/CSS
- Specified by:
setCssClass
in classX3DConcreteNode
- Parameters:
newValue
- is new value for the class field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
- W3C Cascading Style Sheets
-
setCssClass
Assign typed object value to SFString cssClass field, similar tosetCssClass(String)
.- Parameters:
newValue
- is new value for the class field.- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setUSE
Assign a USE reference to another DEF node of same node type, similar tosetUSE(String)
.
Warning: note that thesetUSE()
method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.
Warning: no other operations can be performed to modify a USE node other than setting an alternate containerField value.- Parameters:
DEFnode
- must have a DEF value defined- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
addComments
Add comment as String to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newComment
- initial value- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addComments
Add comments as String[] array to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newComments
- array of comments- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addComments
Add CommentsBlock to contained commentsList.- Specified by:
addComments
in classX3DConcreteElement
- Parameters:
newCommentsBlock
- block of comments to add- Returns:
TexturePropertiesObject
- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
toStringX3D
public 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.- Specified by:
toStringX3D
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- X3D string
- See Also:
X3DObject.FILE_EXTENSION_X3D
,X3DObject.FILE_EXTENSION_XML
,X3DObject.toStringXML()
,X3DObject.toFileXML(String)
,X3DObject.toFileX3D(String)
, X3D XML Encoding, X3D Compressed Binary Encoding: X3D Canonical Form, X3D Canonicalization (C14N) Tool
-
toStringClassicVRML
public java.lang.String toStringClassicVRML(int indentLevel)Recursive method to provide ClassicVRML string serialization.- Specified by:
toStringClassicVRML
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- ClassicVRML string
- See Also:
X3DObject.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: Grammar
-
toStringVRML97
public java.lang.String toStringVRML97(int indentLevel)Recursive method to provide VRML97 string serialization.- Specified by:
toStringVRML97
in classX3DConcreteElement
- Parameters:
indentLevel
- number of levels of indentation for this element- Returns:
- VRML97 string
- See Also:
X3DObject.FILE_EXTENSION_VRML97
, X3D Resources: Virtual Reality Modeling Language (VRML) 97, Virtual Reality Modeling Language (VRML) 97 specification, VRML 97 v2.1 Amendment
-
findElementByNameValue
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. Elements with name fields include meta, Metadata* nodes, field/fieldValue, ProtoDeclare/ExternProtoDeclare/ProtoInstance, CAD and HAnim nodes.
Warning: first start with findAncestorSceneObject() to check entire scene graph, or findAncestorX3DObject() to check entire model document.
Warning: more than one element may be found that has the same name, this method does not handle that case.- Specified by:
findElementByNameValue
in classX3DConcreteElement
- Parameters:
nameValue
- is value of the name field being searched for in this element and child elements(if any)- Returns:
- object reference to found element, null otherwise
- See Also:
findNodeByDEF(String)
,X3DConcreteElement.hasAncestorSceneObject()
,X3DConcreteElement.findAncestorX3DObject()
-
findElementByNameValue
public 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. Elements with name fields include meta, Metadata* nodes, field/fieldValue, ProtoDeclare/ExternProtoDeclare/ProtoInstance, CAD and HAnim nodes.
Warning: first start with findAncestorSceneObject() to check entire scene graph, or findAncestorX3DObject() to check entire model document.
Warning: more than one element may be found that has the same name, this method does not handle that case.- Specified by:
findElementByNameValue
in classX3DConcreteElement
- Parameters:
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.)- Returns:
- object reference to found element, null otherwise
- See Also:
findNodeByDEF(String)
,X3DConcreteElement.hasAncestorSceneObject()
,X3DConcreteElement.findAncestorX3DObject()
-
hasElementByNameValue
public 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.- Parameters:
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.)- Returns:
- whether node is found
- See Also:
findElementByNameValue(String, String)
-
findNodeByDEF
Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.
Warning: first start with findAncestorSceneObject() to check entire scene graph, or findAncestorX3DObject() to check entire model document.
Warning: more than one element may be found that has the same DEF, this method does not handle that case.- Specified by:
findNodeByDEF
in classX3DConcreteElement
- Parameters:
DEFvalue
- is value of the name field being searched for in this element and child elements(if any)- Returns:
- object reference to found node, null otherwise
- See Also:
findElementByNameValue(String)
,X3DConcreteElement.hasAncestorSceneObject()
,X3DConcreteElement.findAncestorX3DObject()
-
hasNodeByDEF
public 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.- Parameters:
DEFvalue
- is value of the name field being searched for in this element and child elements(if any)- Returns:
- whether node is found
- See Also:
findNodeByDEF(String)
-
validate
public 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.- Specified by:
validate
in classX3DConcreteElement
- Returns:
- validation results (if any)
-