Package org.web3d.x3d.jsail.Core
Class componentObject
java.lang.Object
org.web3d.x3d.jsail.X3DConcreteElement
org.web3d.x3d.jsail.X3DConcreteStatement
org.web3d.x3d.jsail.Core.componentObject
public class componentObject extends X3DConcreteStatement
Functional summary: each added component statement indicates needed scene functionality support above the given X3D profile. This concrete class represents an X3D component statement.
X3D statement tooltip: [X3D statement] Each added component statement indicates needed scene functionality above the given X3D profile.
X3D statement tooltip: [X3D statement] Each added component statement indicates needed scene functionality above the given X3D profile.
- Hint: component statements are optional secondary children of head statement (add a head statement first).
- Hint: X3D XML Encoding https://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#Header
- Warning: the COMPONENT statement is capitalized in the X3D Architecture specification and in the X3D ClassicVRML Encoding.
- Hint: X3D Architecture 7.2.5.4 COMPONENT statement https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/core.html#COMPONENTStatement
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMPONENTString constant COMPONENT defines X3D component for the component element: Corestatic intLEVELInteger constant LEVEL provides default X3D Core component level for this element: 1static intLEVEL_DEFAULT_VALUESFInt32 field named level has default value 1 (Java syntax) or 1 (XML syntax).static java.lang.StringNAMEString constant NAME provides name of this element: component.static java.lang.StringNAME_CADGEOMETRYTooltip: The CADGeometry component is provided for Computer-Aided Design (CAD) nodes.static java.lang.StringNAME_CORETooltip: The Core component supplies the base functionality for the X3D run-time system, including the abstract base node type, field types, the event model, and routing.static java.lang.StringNAME_CUBEMAPTEXTURINGTooltip: The Cube Map Environmental Texturing component describes how additional texturing effects are defined to produce environmental effects such as reflections from objects.static java.lang.StringNAME_DEFAULT_VALUESFString field named name has default value equal to an empty string.static java.lang.StringNAME_DISTooltip: The Distributed Interactive Simulation (DIS) component provides networked interoperability with the IEEE DIS protocol for sharing state and conducting real-time platform-level simulations across multiple host computers.static java.lang.StringNAME_ENVIRONMENTALEFFECTSTooltip: Nodes in the Environmental effects component support the creation of realistic environmental effects such as panoramic backgrounds and fog.static java.lang.StringNAME_ENVIRONMENTALSENSORTooltip: The Environment Sensor nodes emit events indicating activity in the scene environment, usually based on interactions between the viewer and the world.static java.lang.StringNAME_EVENTUTILITIESTooltip: The Event Utility nodes provide the capability to filter, trigger, convert, or sequence numerous event-types for common interactive applications without the use of a Script node.static java.lang.StringNAME_FOLLOWERSTooltip: The Follower nodes (Chasers and Dampers) support dynamic creation of smooth parameter transitions at run time.static java.lang.StringNAME_GEOMETRY2DTooltip: The Geometry2D component defines how two-dimensional geometry is specified and what shapes are available.static java.lang.StringNAME_GEOMETRY3DTooltip: The Geometry3D component describes how three-dimensional geometry is specified and defines ElevationGrid, Extrusion, IndexedFaceSet, and most primitive geometry nodes (Box, Cone, Cylinder, Sphere).static java.lang.StringNAME_GEOSPATIALTooltip: The Geospatial component defines how to associate real-world locations in an X3D scene and specifies nodes particularly tuned for geospatial applications.static java.lang.StringNAME_GROUPINGTooltip: The Grouping component describes how nodes are organized into groups to establish a transformation hierarchy for the X3D scene graph.static java.lang.StringNAME_H_ANIMTooltip: Legacy enumeration H-Anim for X3D versions 3.0-3.3 provides backwards compatibility with Humanoid Animation (HAnim) version 1, preferred form of enumeration value is HAnim.static java.lang.StringNAME_HANIMTooltip: The Humanoid Animation (HAnim) component for X3D defines node bindings and other details for implementing ISO/IEC 19774, the HAnim International Specification.static java.lang.StringNAME_INTERPOLATIONTooltip: Interpolator nodes provide keyframe-based animation capability.static java.lang.StringNAME_KEYDEVICESENSORTooltip: The Key Device Sensor defines how keyboard keystrokes are inserted into an X3D world.static java.lang.StringNAME_LAYERINGTooltip: The Layering component describes how to layer a set of subscene layers into a composite scene.static java.lang.StringNAME_LAYOUTTooltip: The Layout component defines how to precisely position content in a scene in relation to the rendered results, especially for integrating 2D content with 3D content.static java.lang.StringNAME_LIGHTINGTooltip: The Lighting component specifies how light sources are defined and positioned, as well as how lights effect the rendered image.static java.lang.StringNAME_NAVIGATIONTooltip: The Navigation component specifies how a user can effectively and intuitively move through and around a 3D scene.static java.lang.StringNAME_NETWORKINGTooltip: The Networking component defines node types and other features used to access file-based and streaming resources on the World Wide Web.static java.lang.StringNAME_NURBSTooltip: The NURBS component describes Non-uniform Rational B-Spline (NURBS) geometry and interpolation nodes.static java.lang.StringNAME_PARTICLESYSTEMSTooltip: The Particle Systems component specifies how to model particles and their interactions through the application of basic physics principles to affect motion.static java.lang.StringNAME_PICKINGTooltip: The Picking component provides the ability to test for arbitrary object collision and provide basic capabilities to detecting object intersections and interactions.static java.lang.StringNAME_POINTINGDEVICESENSORTooltip: Pointing device sensor nodes detect pointing events from user-interface devices, defining activities such as a user selecting a piece of geometry.static java.lang.StringNAME_RENDERINGTooltip: The Rendering component includes fundamental rendering primitives such as TriangleSet and PointSet nodes, as well as geometric properties nodes that define how coordinate indices, colors, normals and texture coordinates are specified.static java.lang.StringNAME_RIGIDBODYPHYSICSTooltip: The Rigid Body Physics component describes how to model rigid bodies and their interactions through the application of basic physics principles to effect motion.static java.lang.StringNAME_SCRIPTINGTooltip: The Script component describes how Script nodes are used to effect changes in X3D worlds.static java.lang.StringNAME_SHADERSTooltip: The programmable shaders component describes how programmable shaders are specified and how they affect the visual appearance of geometry.static java.lang.StringNAME_SHAPETooltip: The Shape component defines nodes for associating geometry with their visible properties and the scene environment.static java.lang.StringNAME_SOUNDTooltip: The Sound component defines how sound is delivered to an X3D world as well as how sounds are accessed.static java.lang.StringNAME_TEXTTooltip: The Text component defines how text strings are rendered in an X3D scene.static java.lang.StringNAME_TEXTURINGTooltip: The Texturing component specifies how 2D texture images are defined and then positioned on associated geometry.static java.lang.StringNAME_TEXTURING3DTooltip: The Texturing3D component specifies how 3D volumetric textures describe surface properties as data points in a volume of space, rather than a flat surface.static java.lang.StringNAME_TIMETooltip: The Time component defines how time is sensed, computed and associated with events in an X3D scene.static java.lang.StringNAME_VOLUMERENDERINGTooltip: The Volume Rendering component provides the ability to specify and render volumetric data sets. -
Constructor Summary
Constructors Constructor Description componentObject()Constructor for componentObject to initialize member variables with default values.componentObject(java.lang.String newName, int newLevel)Utility constructor that assigns name and level attributes. -
Method Summary
Modifier and Type Method Description componentObjectaddComments(java.lang.String newComment)Add comment as String to contained commentsList.componentObjectaddComments(java.lang.String[] newComments)Add comments as String[] array to contained commentsList.componentObjectaddComments(CommentsBlock newCommentsBlock)Add CommentsBlock to contained commentsList.X3DConcreteElementfindElementByNameValue(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.X3DConcreteElementfindElementByNameValue(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.X3DConcreteNodefindNodeByDEF(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.StringgetAccessType(java.lang.String fieldName)Indicate accessType corresponding to given fieldName.java.lang.StringgetComponent()Defines X3D component for the component element: CoreintgetComponentLevel()Provides default X3D component level for this element: 1java.lang.StringgetElementName()Provides name of this element: componentjava.lang.StringgetFieldType(java.lang.String fieldName)Indicate type corresponding to given fieldName.intgetLevel()Provide int value within allowed range of [1,5] from inputOutput SFInt32 field named level.java.lang.StringgetName()Provide String enumeration value (baseType xs:NMTOKEN) ["Core" | "CADGeometry" | "CubeMapTexturing" | "DIS" | "EnvironmentalEffects" | "EnvironmentalSensor" | "EventUtilities" | "Followers" | "Geometry2D" | "Geometry3D" | "Geospatial" | "Grouping" | "HAnim" | "H-Anim" | "Interpolation" | "KeyDeviceSensor" | "Layering" | "Layout" | "Lighting" | "Navigation" | "Networking" | "NURBS" | "ParticleSystems" | "Picking" | "PointingDeviceSensor" | "Rendering" | "RigidBodyPhysics" | "Scripting" | "Shaders" | "Shape" | "Sound" | "Text" | "Texturing" | "Texturing3D" | "Time" | "VolumeRendering"] from inputOutput SFString field named name.booleanhasElementByNameValue(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.booleanhasNodeByDEF(java.lang.String DEFvalue)Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.voidinitialize()Initialize all member variables to default values.componentObjectsetLevel(int newValue)Accessor method to assign int value to inputOutput SFInt32 field named level.componentObjectsetLevel(SFInt32Object newValue)Assign typed object value to SFInt32 level field, similar tosetLevel(int).componentObjectsetName(java.lang.String newValue)Accessor method to assign String enumeration value ("Core" | "CADGeometry" | "CubeMapTexturing" | "DIS" | "EnvironmentalEffects" | "EnvironmentalSensor" | "EventUtilities" | "Followers" | "Geometry2D" | "Geometry3D" | "Geospatial" | "Grouping" | "HAnim" | "H-Anim" | "Interpolation" | "KeyDeviceSensor" | "Layering" | "Layout" | "Lighting" | "Navigation" | "Networking" | "NURBS" | "ParticleSystems" | "Picking" | "PointingDeviceSensor" | "Rendering" | "RigidBodyPhysics" | "Scripting" | "Shaders" | "Shape" | "Sound" | "Text" | "Texturing" | "Texturing3D" | "Time" | "VolumeRendering") to inputOutput SFString field named name.componentObjectsetName(SFStringObject newValue)Assign typed object value to SFString name field, similar tosetName(String).java.lang.StringtoStringClassicVRML(int indentLevel)Recursive method to provide ClassicVRML string serialization.java.lang.StringtoStringVRML97(int indentLevel)Recursive method to provide VRML97 string serialization.java.lang.StringtoStringX3D(int indentLevel)Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.java.lang.Stringvalidate()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.X3DConcreteElement
clearParentObject, findAncestorElementByName, findAncestorProtoBody, findAncestorSceneObject, findAncestorX3DObject, getPackageName, getParentObject, getValidationResult, hasAncestorElementByName, hasAncestorProtoBody, hasAncestorSceneObject, hasAncestorX3DObject, hasParentObject, isValid, setParentObject, toStringClassicVRML, toStringVRML97, toStringX3D
-
Field Details
-
NAME_CORE
public static final java.lang.String NAME_CORETooltip: The Core component supplies the base functionality for the X3D run-time system, including the abstract base node type, field types, the event model, and routing. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Core" (Java syntax) or Core (XML syntax). -
NAME_CADGEOMETRY
public static final java.lang.String NAME_CADGEOMETRYTooltip: The CADGeometry component is provided for Computer-Aided Design (CAD) nodes. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CADGeometry" (Java syntax) or CADGeometry (XML syntax). -
NAME_CUBEMAPTEXTURING
public static final java.lang.String NAME_CUBEMAPTEXTURINGTooltip: The Cube Map Environmental Texturing component describes how additional texturing effects are defined to produce environmental effects such as reflections from objects. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "CubeMapTexturing" (Java syntax) or CubeMapTexturing (XML syntax). -
NAME_DIS
public static final java.lang.String NAME_DISTooltip: The Distributed Interactive Simulation (DIS) component provides networked interoperability with the IEEE DIS protocol for sharing state and conducting real-time platform-level simulations across multiple host computers. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "DIS" (Java syntax) or DIS (XML syntax). -
NAME_ENVIRONMENTALEFFECTS
public static final java.lang.String NAME_ENVIRONMENTALEFFECTSTooltip: Nodes in the Environmental effects component support the creation of realistic environmental effects such as panoramic backgrounds and fog. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "EnvironmentalEffects" (Java syntax) or EnvironmentalEffects (XML syntax). -
NAME_ENVIRONMENTALSENSOR
public static final java.lang.String NAME_ENVIRONMENTALSENSORTooltip: The Environment Sensor nodes emit events indicating activity in the scene environment, usually based on interactions between the viewer and the world. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "EnvironmentalSensor" (Java syntax) or EnvironmentalSensor (XML syntax). -
NAME_EVENTUTILITIES
public static final java.lang.String NAME_EVENTUTILITIESTooltip: The Event Utility nodes provide the capability to filter, trigger, convert, or sequence numerous event-types for common interactive applications without the use of a Script node. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "EventUtilities" (Java syntax) or EventUtilities (XML syntax). -
NAME_FOLLOWERS
public static final java.lang.String NAME_FOLLOWERSTooltip: The Follower nodes (Chasers and Dampers) support dynamic creation of smooth parameter transitions at run time. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Followers" (Java syntax) or Followers (XML syntax). -
NAME_GEOMETRY2D
public static final java.lang.String NAME_GEOMETRY2DTooltip: The Geometry2D component defines how two-dimensional geometry is specified and what shapes are available. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Geometry2D" (Java syntax) or Geometry2D (XML syntax). -
NAME_GEOMETRY3D
public static final java.lang.String NAME_GEOMETRY3DTooltip: The Geometry3D component describes how three-dimensional geometry is specified and defines ElevationGrid, Extrusion, IndexedFaceSet, and most primitive geometry nodes (Box, Cone, Cylinder, Sphere). SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Geometry3D" (Java syntax) or Geometry3D (XML syntax). -
NAME_GEOSPATIAL
public static final java.lang.String NAME_GEOSPATIALTooltip: The Geospatial component defines how to associate real-world locations in an X3D scene and specifies nodes particularly tuned for geospatial applications. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Geospatial" (Java syntax) or Geospatial (XML syntax). -
NAME_GROUPING
public static final java.lang.String NAME_GROUPINGTooltip: The Grouping component describes how nodes are organized into groups to establish a transformation hierarchy for the X3D scene graph. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Grouping" (Java syntax) or Grouping (XML syntax). -
NAME_HANIM
public static final java.lang.String NAME_HANIMTooltip: The Humanoid Animation (HAnim) component for X3D defines node bindings and other details for implementing ISO/IEC 19774, the HAnim International Specification. Original name was H-Anim for X3D versions 3.0 through 3.3, both enumeration values HAnim and H-Anim are allowed to pass validation. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "HAnim" (Java syntax) or HAnim (XML syntax). -
NAME_H_ANIM
public static final java.lang.String NAME_H_ANIMTooltip: Legacy enumeration H-Anim for X3D versions 3.0-3.3 provides backwards compatibility with Humanoid Animation (HAnim) version 1, preferred form of enumeration value is HAnim. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "H-Anim" (Java syntax) or H-Anim (XML syntax). -
NAME_INTERPOLATION
public static final java.lang.String NAME_INTERPOLATIONTooltip: Interpolator nodes provide keyframe-based animation capability. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Interpolation" (Java syntax) or Interpolation (XML syntax). -
NAME_KEYDEVICESENSOR
public static final java.lang.String NAME_KEYDEVICESENSORTooltip: The Key Device Sensor defines how keyboard keystrokes are inserted into an X3D world. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "KeyDeviceSensor" (Java syntax) or KeyDeviceSensor (XML syntax). -
NAME_LAYERING
public static final java.lang.String NAME_LAYERINGTooltip: The Layering component describes how to layer a set of subscene layers into a composite scene. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Layering" (Java syntax) or Layering (XML syntax). -
NAME_LAYOUT
public static final java.lang.String NAME_LAYOUTTooltip: The Layout component defines how to precisely position content in a scene in relation to the rendered results, especially for integrating 2D content with 3D content. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Layout" (Java syntax) or Layout (XML syntax). -
NAME_LIGHTING
public static final java.lang.String NAME_LIGHTINGTooltip: The Lighting component specifies how light sources are defined and positioned, as well as how lights effect the rendered image. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Lighting" (Java syntax) or Lighting (XML syntax). -
NAME_NAVIGATION
public static final java.lang.String NAME_NAVIGATIONTooltip: The Navigation component specifies how a user can effectively and intuitively move through and around a 3D scene. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Navigation" (Java syntax) or Navigation (XML syntax). -
NAME_NETWORKING
public static final java.lang.String NAME_NETWORKINGTooltip: The Networking component defines node types and other features used to access file-based and streaming resources on the World Wide Web. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Networking" (Java syntax) or Networking (XML syntax). -
NAME_NURBS
public static final java.lang.String NAME_NURBSTooltip: The NURBS component describes Non-uniform Rational B-Spline (NURBS) geometry and interpolation nodes. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "NURBS" (Java syntax) or NURBS (XML syntax). -
NAME_PARTICLESYSTEMS
public static final java.lang.String NAME_PARTICLESYSTEMSTooltip: The Particle Systems component specifies how to model particles and their interactions through the application of basic physics principles to affect motion. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "ParticleSystems" (Java syntax) or ParticleSystems (XML syntax). -
NAME_PICKING
public static final java.lang.String NAME_PICKINGTooltip: The Picking component provides the ability to test for arbitrary object collision and provide basic capabilities to detecting object intersections and interactions. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Picking" (Java syntax) or Picking (XML syntax). -
NAME_POINTINGDEVICESENSOR
public static final java.lang.String NAME_POINTINGDEVICESENSORTooltip: Pointing device sensor nodes detect pointing events from user-interface devices, defining activities such as a user selecting a piece of geometry. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "PointingDeviceSensor" (Java syntax) or PointingDeviceSensor (XML syntax). -
NAME_RENDERING
public static final java.lang.String NAME_RENDERINGTooltip: The Rendering component includes fundamental rendering primitives such as TriangleSet and PointSet nodes, as well as geometric properties nodes that define how coordinate indices, colors, normals and texture coordinates are specified. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Rendering" (Java syntax) or Rendering (XML syntax). -
NAME_RIGIDBODYPHYSICS
public static final java.lang.String NAME_RIGIDBODYPHYSICSTooltip: The Rigid Body Physics component describes how to model rigid bodies and their interactions through the application of basic physics principles to effect motion. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "RigidBodyPhysics" (Java syntax) or RigidBodyPhysics (XML syntax). -
NAME_SCRIPTING
public static final java.lang.String NAME_SCRIPTINGTooltip: The Script component describes how Script nodes are used to effect changes in X3D worlds. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Scripting" (Java syntax) or Scripting (XML syntax). -
NAME_SHADERS
public static final java.lang.String NAME_SHADERSTooltip: The programmable shaders component describes how programmable shaders are specified and how they affect the visual appearance of geometry. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Shaders" (Java syntax) or Shaders (XML syntax). -
NAME_SHAPE
public static final java.lang.String NAME_SHAPETooltip: The Shape component defines nodes for associating geometry with their visible properties and the scene environment. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Shape" (Java syntax) or Shape (XML syntax). -
NAME_SOUND
public static final java.lang.String NAME_SOUNDTooltip: The Sound component defines how sound is delivered to an X3D world as well as how sounds are accessed. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Sound" (Java syntax) or Sound (XML syntax). -
NAME_TEXT
public static final java.lang.String NAME_TEXTTooltip: The Text component defines how text strings are rendered in an X3D scene. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Text" (Java syntax) or Text (XML syntax). -
NAME_TEXTURING
public static final java.lang.String NAME_TEXTURINGTooltip: The Texturing component specifies how 2D texture images are defined and then positioned on associated geometry. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Texturing" (Java syntax) or Texturing (XML syntax). -
NAME_TEXTURING3D
public static final java.lang.String NAME_TEXTURING3DTooltip: The Texturing3D component specifies how 3D volumetric textures describe surface properties as data points in a volume of space, rather than a flat surface. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Texturing3D" (Java syntax) or Texturing3D (XML syntax). -
NAME_TIME
public static final java.lang.String NAME_TIMETooltip: The Time component defines how time is sensed, computed and associated with events in an X3D scene. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "Time" (Java syntax) or Time (XML syntax). -
NAME_VOLUMERENDERING
public static final java.lang.String NAME_VOLUMERENDERINGTooltip: The Volume Rendering component provides the ability to specify and render volumetric data sets. SFString field named name with X3DUOM simpleType componentNameChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "VolumeRendering" (Java syntax) or VolumeRendering (XML syntax). -
NAME
public static final java.lang.String NAMEString constant NAME provides name of this element: component.- See Also:
- Constant Field Values
-
COMPONENT
public static final java.lang.String COMPONENTString constant COMPONENT defines X3D component for the component element: Core- See Also:
- Constant Field Values
-
LEVEL
public static final int LEVELInteger constant LEVEL provides default X3D Core component level for this element: 1- See Also:
- Constant Field Values
-
LEVEL_DEFAULT_VALUE
public static final int LEVEL_DEFAULT_VALUESFInt32 field named level has default value 1 (Java syntax) or 1 (XML syntax).- See Also:
- Constant Field Values
-
NAME_DEFAULT_VALUE
public static final java.lang.String NAME_DEFAULT_VALUESFString field named name has default value equal to an empty string.- See Also:
- Constant Field Values
-
-
Constructor Details
-
componentObject
public componentObject()Constructor for componentObject to initialize member variables with default values. -
componentObject
public componentObject(java.lang.String newName, int newLevel)Utility constructor that assigns name and level attributes.- Parameters:
newName- name for this componentnewLevel- level value for this component element- See Also:
- X3D Tooltips: component
-
-
Method Details
-
getElementName
public final java.lang.String getElementName()Provides name of this element: component- Specified by:
getElementNamein classX3DConcreteElement- Returns:
- name of this element
-
getComponent
public final java.lang.String getComponent()Defines X3D component for the component element: Core- Specified by:
getComponentin classX3DConcreteElement- Returns:
- X3D component for this element
-
getComponentLevel
public final int getComponentLevel()Provides default X3D component level for this element: 1- Specified by:
getComponentLevelin 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:
getFieldTypein classX3DConcreteElement- Parameters:
fieldName- name of field in this X3D statement- 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:
getAccessTypein classX3DConcreteElement- Parameters:
fieldName- name of field in this X3D statement- Returns:
- X3D accessType (inputOnly etc.), otherwise ConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE if not recognized
- See Also:
ConfigurationProperties.ERROR_UNKNOWN_FIELD_ACCESSTYPE
-
initialize
public final void initialize()Initialize all member variables to default values.- Overrides:
initializein classX3DConcreteStatement
-
getLevel
public int getLevel()Provide int value within allowed range of [1,5] from inputOutput SFInt32 field named level.
Tooltip: Necessary level of support for this scene, as defined in corresponding Support table for a given node's component.- Hint: for example specification definitions, X3D Architecture Grouping component, 10.5 Support levels https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/group.html#SupportLevels
- Returns:
- value of level field
-
setLevel
Accessor method to assign int value to inputOutput SFInt32 field named level.
Tooltip: Necessary level of support for this scene, as defined in corresponding Support table for a given node's component.- Hint: for example specification definitions, X3D Architecture Grouping component, 10.5 Support levels https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/group.html#SupportLevels
- Parameters:
newValue- is new value for the level field.- Returns:
componentObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setLevel
Assign typed object value to SFInt32 level field, similar tosetLevel(int).- Parameters:
newValue- is new value for the level field.- Returns:
componentObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getName
public java.lang.String getName()Provide String enumeration value (baseType xs:NMTOKEN) ["Core" | "CADGeometry" | "CubeMapTexturing" | "DIS" | "EnvironmentalEffects" | "EnvironmentalSensor" | "EventUtilities" | "Followers" | "Geometry2D" | "Geometry3D" | "Geospatial" | "Grouping" | "HAnim" | "H-Anim" | "Interpolation" | "KeyDeviceSensor" | "Layering" | "Layout" | "Lighting" | "Navigation" | "Networking" | "NURBS" | "ParticleSystems" | "Picking" | "PointingDeviceSensor" | "Rendering" | "RigidBodyPhysics" | "Scripting" | "Shaders" | "Shape" | "Sound" | "Text" | "Texturing" | "Texturing3D" | "Time" | "VolumeRendering"] from inputOutput SFString field named name.
Tooltip: Provides name of this component, as defined in corresponding X3D Specification component Introduction. Example: X3D Architecture 10.1.1 Name for Grouping component https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/group.html#Name- Hint: all nodes, components and levels are already supported in Full profile.
- 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
Available enumeration values for string comparison:CORE,CADGEOMETRY,CUBEMAPTEXTURING,DIS,ENVIRONMENTALEFFECTS,ENVIRONMENTALSENSOR,EVENTUTILITIES,FOLLOWERS,GEOMETRY2D,GEOMETRY3D,GEOSPATIAL,GROUPING,HANIM,H_ANIM,INTERPOLATION,KEYDEVICESENSOR,LAYERING,LAYOUT,LIGHTING,NAVIGATION,NETWORKING,NURBS,PARTICLESYSTEMS,PICKING,POINTINGDEVICESENSOR,RENDERING,RIGIDBODYPHYSICS,SCRIPTING,SHADERS,SHAPE,SOUND,TEXT,TEXTURING,TEXTURING3D,TIME,VOLUMERENDERING.- Returns:
- value of name field
-
setName
Accessor method to assign String enumeration value ("Core" | "CADGeometry" | "CubeMapTexturing" | "DIS" | "EnvironmentalEffects" | "EnvironmentalSensor" | "EventUtilities" | "Followers" | "Geometry2D" | "Geometry3D" | "Geospatial" | "Grouping" | "HAnim" | "H-Anim" | "Interpolation" | "KeyDeviceSensor" | "Layering" | "Layout" | "Lighting" | "Navigation" | "Networking" | "NURBS" | "ParticleSystems" | "Picking" | "PointingDeviceSensor" | "Rendering" | "RigidBodyPhysics" | "Scripting" | "Shaders" | "Shape" | "Sound" | "Text" | "Texturing" | "Texturing3D" | "Time" | "VolumeRendering") to inputOutput SFString field named name.
Warning: authors can only choose from a strict list of enumeration values (CORE,CADGEOMETRY,CUBEMAPTEXTURING,DIS,ENVIRONMENTALEFFECTS,ENVIRONMENTALSENSOR,EVENTUTILITIES,FOLLOWERS,GEOMETRY2D,GEOMETRY3D,GEOSPATIAL,GROUPING,HANIM,H_ANIM,INTERPOLATION,KEYDEVICESENSOR,LAYERING,LAYOUT,LIGHTING,NAVIGATION,NETWORKING,NURBS,PARTICLESYSTEMS,PICKING,POINTINGDEVICESENSOR,RENDERING,RIGIDBODYPHYSICS,SCRIPTING,SHADERS,SHAPE,SOUND,TEXT,TEXTURING,TEXTURING3D,TIME,VOLUMERENDERING).
Tooltip: Provides name of this component, as defined in corresponding X3D Specification component Introduction. Example: X3D Architecture 10.1.1 Name for Grouping component https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/group.html#Name- Hint: all nodes, components and levels are already supported in Full profile.
- 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
@see X3D Scene Authoring Hints: Naming Conventions- Parameters:
newValue- is new value for the name field.- Returns:
componentObject- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
setName
Assign typed object value to SFString name field, similar tosetName(String).- Parameters:
newValue- is new value for the name field.- Returns:
componentObject- 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:
addCommentsin classX3DConcreteElement- Parameters:
newComment- initial value- Returns:
componentObject- 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:
addCommentsin classX3DConcreteElement- Parameters:
newComments- array of comments- Returns:
componentObject- namely this same object to allow sequential method pipelining (i.e. consecutive setAttribute method invocations).
-
addComments
Add CommentsBlock to contained commentsList.- Specified by:
addCommentsin classX3DConcreteElement- Parameters:
newCommentsBlock- block of comments to add- Returns:
componentObject- 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:
toStringX3Din 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:
toStringClassicVRMLin 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:
toStringVRML97in 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:
findElementByNameValuein 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:
findElementByNameValuein 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:
findNodeByDEFin 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:
validatein classX3DConcreteElement- Returns:
- validation results (if any)
-