Interface InlineGeometry
- All Superinterfaces:
X3DGeometryNode, X3DNode, X3DUrlObject
- All Known Implementing Classes:
InlineGeometry
InlineGeometry loads geometry from an external file.
InlineGeometry node tooltip: (X3D version 4.1 draft) [X3DGeometryNode,X3DUrlObject] InlineGeometry loads geometry from an external file. The result provides a polygonal mesh, set of lines, point cloud, parametric surface, or other geometry. Supported formats are browser dependent and can include STL and PLY mesh files.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
InlineGeometry node tooltip: (X3D version 4.1 draft) [X3DGeometryNode,X3DUrlObject] InlineGeometry loads geometry from an external file. The result provides a polygonal mesh, set of lines, point cloud, parametric surface, or other geometry. Supported formats are browser dependent and can include STL and PLY mesh files.
- Hint: Wikipedia, STL (Standard Triangle Language or Standard Tessellation Language) https://en.wikipedia.org/wiki/STL_(file_format)
- Hint: Wikipedia, PLY (Polygon File Format or Stanford Triangle Format) https://en.wikipedia.org/wiki/PLY_(file_format)
- Hint: example https://create3000.github.io/x_ite/playground/?url=https://create3000.github.io/media/examples/Networking/InlineGeometry/InlineGeometry.x3d
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondoubleProvide double value in seconds within allowed range of [0,infinity) from inputOutput SFTime field named autoRefresh.doubleProvide double value in seconds within allowed range of [0,infinity) from inputOutput SFTime field named autoRefreshTimeLimit.Provide String value from inputOutput SFString field named description.booleangetLoad()Provide boolean value from inputOutput SFBool field named load.Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.booleanProvide boolean value from initializeOnly SFBool field named smooth.booleangetSolid()Provide boolean value from inputOutput SFBool field named solid.String[]getUrl()Provide array of String results from inputOutput MFString field named url.setAutoRefresh(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named autoRefresh.setAutoRefreshTimeLimit(double newValue) Accessor method to assign double value in seconds to inputOutput SFTime field named autoRefreshTimeLimit.setDescription(String newValue) Accessor method to assign String value to inputOutput SFString field named description.setLoad(boolean newValue) Accessor method to assign boolean value to inputOutput SFBool field named load.setMetadata(X3DMetadataObject newValue) Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.setSmooth(boolean newValue) Accessor method to assign boolean value to initializeOnly SFBool field named smooth.setSolid(boolean newValue) Accessor method to assign boolean value to inputOutput SFBool field named solid.Accessor method to assign String array to inputOutput MFString field named url.
-
Method Details
-
getAutoRefresh
double getAutoRefresh()Provide double value in seconds within allowed range of [0,infinity) from inputOutput SFTime field named autoRefresh.
Tooltip: autoRefresh defines interval in seconds before automatic reload of current url asset is performed.- Hint: if preceding file loading fails or load field is false, no refresh is performed.
- Hint: repeated refresh attempts to reload currently loaded entry of url list. If that fails, the browser retries other entries in the url list.
- Warning: automatically reloading content has security considerations and needs to be considered carefully.
- Specified by:
getAutoRefreshin interfaceX3DUrlObject- Returns:
- value of autoRefresh field
-
setAutoRefresh
Accessor method to assign double value in seconds to inputOutput SFTime field named autoRefresh.
Tooltip: autoRefresh defines interval in seconds before automatic reload of current url asset is performed.- Hint: if preceding file loading fails or load field is false, no refresh is performed.
- Hint: repeated refresh attempts to reload currently loaded entry of url list. If that fails, the browser retries other entries in the url list.
- Warning: automatically reloading content has security considerations and needs to be considered carefully.
- Specified by:
setAutoRefreshin interfaceX3DUrlObject- Parameters:
newValue- is new value for the autoRefresh field.- Returns:
InlineGeometry- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getAutoRefreshTimeLimit
double getAutoRefreshTimeLimit()Provide double value in seconds within allowed range of [0,infinity) from inputOutput SFTime field named autoRefreshTimeLimit.
Tooltip: autoRefreshTimeLimit defines maximum duration that automatic refresh activity can occur.- Hint: Automatic refresh is different than query and response timeouts performed by a networking library while sequentially attempting to retrieve addressed content from a url list.
- Warning: automatically reloading content has security considerations and needs to be considered carefully.
- Specified by:
getAutoRefreshTimeLimitin interfaceX3DUrlObject- Returns:
- value of autoRefreshTimeLimit field
-
setAutoRefreshTimeLimit
Accessor method to assign double value in seconds to inputOutput SFTime field named autoRefreshTimeLimit.
Tooltip: autoRefreshTimeLimit defines maximum duration that automatic refresh activity can occur.- Hint: Automatic refresh is different than query and response timeouts performed by a networking library while sequentially attempting to retrieve addressed content from a url list.
- Warning: automatically reloading content has security considerations and needs to be considered carefully.
- Specified by:
setAutoRefreshTimeLimitin interfaceX3DUrlObject- Parameters:
newValue- is new value for the autoRefreshTimeLimit field.- Returns:
InlineGeometry- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getDescription
String getDescription()Provide String value from inputOutput SFString field named description.
Tooltip: Author-provided prose that describes intended purpose of the url asset.- Hint: many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for " quotation-mark character).
- Specified by:
getDescriptionin interfaceX3DUrlObject- Returns:
- value of description field
-
setDescription
Accessor method to assign String value to inputOutput SFString field named description.
Tooltip: Author-provided prose that describes intended purpose of the url asset.- Hint: many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for " quotation-mark character).
- Specified by:
setDescriptionin interfaceX3DUrlObject- Parameters:
newValue- is new value for the description field.- Returns:
InlineGeometry- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getLoad
boolean getLoad()Provide boolean value from inputOutput SFBool field named load.
Tooltip: load=true means load immediately, load=false means defer loading or else unload a previously loaded asset.- Hint: allows author to design when Inline loading occurs via user interaction, event chains or scripting.
- Hint: use a separate LoadSensor node to detect when loading is complete.
- Specified by:
getLoadin interfaceX3DUrlObject- Returns:
- value of load field
-
setLoad
Accessor method to assign boolean value to inputOutput SFBool field named load.
Tooltip: load=true means load immediately, load=false means defer loading or else unload a previously loaded asset.- Hint: allows author to design when Inline loading occurs via user interaction, event chains or scripting.
- Hint: use a separate LoadSensor node to detect when loading is complete.
- Specified by:
setLoadin interfaceX3DUrlObject- Parameters:
newValue- is new value for the load field.- Returns:
InlineGeometry- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getMetadata
X3DMetadataObject getMetadata()Provide org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
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/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
- Specified by:
getMetadatain interfaceX3DGeometryNode- Specified by:
getMetadatain interfaceX3DNode- Returns:
- value of metadata field
- See Also:
-
setMetadata
Accessor method to assign org.web3d.x3d.sai.Core.X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
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/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/core.html#Metadata
- Specified by:
setMetadatain interfaceX3DGeometryNode- Specified by:
setMetadatain interfaceX3DNode- Parameters:
newValue- is new value for the metadata field.- Returns:
InlineGeometry- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
-
getSmooth
boolean getSmooth()Provide boolean value from initializeOnly SFBool field named smooth.
Tooltip: The smooth field provides a hint to the browser whether smooth rendering is preferred for a retrieved polygonal mesh. *- Returns:
- value of smooth field
-
setSmooth
Accessor method to assign boolean value to initializeOnly SFBool field named smooth.
Tooltip: The smooth field provides a hint to the browser whether smooth rendering is preferred for a retrieved polygonal mesh. *- Parameters:
newValue- is new value for the smooth field.- Returns:
InlineGeometry- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getSolid
boolean getSolid()Provide boolean value from inputOutput SFBool field named solid.
Tooltip: Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).- Hint: mnemonic "this geometry is solid like a brick" (you don't render the inside of a brick).
- Warning: default value true can completely hide geometry if viewed from wrong side!
- Hint: if in doubt, use solid='false' for maximum visibility.
- Warning: solid false not supported in VRML97.
- Hint: accessType relaxed to inputOutput in order to support animation and visualization.
- Hint: For InlineGeometry, the default value of solid is FALSE since most usages of retrieved meshes need two-sided rendering.
- Returns:
- value of solid field
-
setSolid
Accessor method to assign boolean value to inputOutput SFBool field named solid.
Tooltip: Setting solid true means draw only one side of polygons (backface culling on), setting solid false means draw both sides of polygons (backface culling off).- Hint: mnemonic "this geometry is solid like a brick" (you don't render the inside of a brick).
- Warning: default value true can completely hide geometry if viewed from wrong side!
- Hint: if in doubt, use solid='false' for maximum visibility.
- Warning: solid false not supported in VRML97.
- Hint: accessType relaxed to inputOutput in order to support animation and visualization.
- Hint: For InlineGeometry, the default value of solid is FALSE since most usages of retrieved meshes need two-sided rendering.
- Parameters:
newValue- is new value for the solid field.- Returns:
InlineGeometry- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getUrl
String[] getUrl()Provide array of String results from inputOutput MFString field named url.
Tooltip: Address of X3D world to load Inline with current scene, retrieved either from local system or an online address. Browser support for X3D model support can include allowed file formats for XML .x3d, ClassicVRML .x3dv, X3D Binary .x3db, X3D JSON .json, and Virtual Reality Modeling Language (VRML97) .wrl.- Hint: support includes .gltf and .glb https://www.khronos.org/gltf https://en.wikipedia.org/wiki/glTF
- Warning: glTF support requires X3D version='4.0' and profile='Full' or else <component name='Networking' level='4'/> <component name='Shape' level='4'/> <component name='Lighting' level='4'/> https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/networking.html#t-supportLevels
- Hint: future work planned for PLY format https://en.wikipedia.org/wiki/PLY_(file_format)
- Hint: future work planned for STL format https://en.wikipedia.org/wiki/STL_(file_format)
- Hint: MFString arrays can have multiple values, so separate each individual string by quote marks "https://www.web3d.org" "https://www.web3d.org/about" "etc."
- Hint: alternative XML encoding for quotation mark " is " (which is an example of a character entity).
- Warning: strictly match directory and filename capitalization for http links! This is important for portability. Some operating systems are forgiving of capitalization mismatches, but http/https url addresses and paths in Unix-based operating systems are all case sensitive and intolerant of uppercase/lowercase mismatches.
- Hint: can replace embedded blank(s) in url queries with %20 for each blank character.
- Warning: direct or indirect recursion by Inline and/or ExternProtoDeclare url reloading is a security error.
- Hint: X3D Scene Authoring Hints, urls https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#urls
- Specified by:
getUrlin interfaceX3DUrlObject- Returns:
- value of url field
-
setUrl
Accessor method to assign String array to inputOutput MFString field named url.
Tooltip: Address of X3D world to load Inline with current scene, retrieved either from local system or an online address. Browser support for X3D model support can include allowed file formats for XML .x3d, ClassicVRML .x3dv, X3D Binary .x3db, X3D JSON .json, and Virtual Reality Modeling Language (VRML97) .wrl.- Hint: support includes .gltf and .glb https://www.khronos.org/gltf https://en.wikipedia.org/wiki/glTF
- Warning: glTF support requires X3D version='4.0' and profile='Full' or else <component name='Networking' level='4'/> <component name='Shape' level='4'/> <component name='Lighting' level='4'/> https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/networking.html#t-supportLevels
- Hint: future work planned for PLY format https://en.wikipedia.org/wiki/PLY_(file_format)
- Hint: future work planned for STL format https://en.wikipedia.org/wiki/STL_(file_format)
- Hint: MFString arrays can have multiple values, so separate each individual string by quote marks "https://www.web3d.org" "https://www.web3d.org/about" "etc."
- Hint: alternative XML encoding for quotation mark " is " (which is an example of a character entity).
- Warning: strictly match directory and filename capitalization for http links! This is important for portability. Some operating systems are forgiving of capitalization mismatches, but http/https url addresses and paths in Unix-based operating systems are all case sensitive and intolerant of uppercase/lowercase mismatches.
- Hint: can replace embedded blank(s) in url queries with %20 for each blank character.
- Warning: direct or indirect recursion by Inline and/or ExternProtoDeclare url reloading is a security error.
- Hint: X3D Scene Authoring Hints, urls https://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#urls
- Specified by:
setUrlin interfaceX3DUrlObject- Parameters:
newValue- is new value for the url field.- Returns:
InlineGeometry- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-