public class SoWWWInline extends SoNode
SoWWWInline
node to display.
File format/default:
WWWInline {
name | "<Undefined file>" |
bboxCenter | 0 0 0 |
bboxSize | 0 0 0 |
alternateRep | NULL |
Action behavior:
SoGLRenderAction
This renders the child data if it has been set by the application. It will render a wireframe bounding box as specified by the bboxCenter
and bboxSize
fields, and the setting passed to setBoundingBoxVisibility()
. If no fetch URL callback is set and the alternateRep
is not NULL, the alternateRep
will be rendered until child data has been set.
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoWWWInline.BboxVisibilities
BboxVisibility.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFNode |
alternateRep
Specifies child data that can be used instead of fetching data from the URL.
|
SoSFVec3f |
bboxCenter
Defines the center of the bounding box surrounding the URL child data.
|
SoSFVec3f |
bboxSize
Defines the size of the bounding box surrounding the URL child data.
|
SoSFFilePathString |
name
Specifies the URL which the application should fetch as child data to this node (e.g.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoWWWInline()
Creates an inline node with default settings.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelURLDataRequest()
Cancels the active URL data fetch request.
|
SoGroup |
copyChildren()
Return a copy of the hidden children as a Group.
|
static SbColor |
getBoundingBoxColor()
Queries the color of bounding boxes displayed.
|
static SoWWWInline.BboxVisibilities |
getBoundingBoxVisibility()
Queries when bounding boxes are displayed.
|
SoNode |
getChildData()
Gets the child data the inline should display.
|
java.lang.String |
getFullURLName()
Returns the fullURL set by setFullURLName, or if not set, returns the contents of the name field.
|
static boolean |
getReadAsSoFile()
Queries the ReadAsSoFile flag.
|
boolean |
isURLDataHere()
Returns whether URL data is here (i.e.
|
boolean |
isURLDataRequested()
Returns whether URL data has been requested.
|
void |
requestURLData()
Requests that URL data be fetched.
|
static void |
setBoundingBoxColor(SbColor c)
Specifies the color of bounding boxes displayed.
|
static void |
setBoundingBoxVisibility(SoWWWInline.BboxVisibilities b)
Specifies when bounding boxes are displayed.
|
void |
setChildData(SoNode urlData)
Sets the child data the inline should display.
|
static void |
setFetchURLCallBack(SoWWWInlineFetchURLCB f,
java.lang.Object userData)
Application callbacks invoked when the inline needs its URL data fetched.
|
void |
setFullURLName(java.lang.String url)
If the name field contains a relative URL (e.g.
|
static void |
setReadAsSoFile(boolean onOff)
Sets the ReadAsSoFile flag.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFVec3f bboxCenter
public final SoSFVec3f bboxSize
public final SoSFFilePathString name
public final SoSFNode alternateRep
setChildData()
).public static void setFetchURLCallBack(SoWWWInlineFetchURLCB f, java.lang.Object userData)
bboxSize
field is not set, or when
requestURLData()
is called.public java.lang.String getFullURLName()
public static void setBoundingBoxVisibility(SoWWWInline.BboxVisibilities b)
public static SoWWWInline.BboxVisibilities getBoundingBoxVisibility()
public SoGroup copyChildren()
setChildData()
.public static void setReadAsSoFile(boolean onOff)
SoFile
node instead of using SoWWWInlineFetchURLCB.public boolean isURLDataHere()
setChildData()
has been called.)public void setChildData(SoNode urlData)
public static boolean getReadAsSoFile()
public SoNode getChildData()
public static SbColor getBoundingBoxColor()
public static void setBoundingBoxColor(SbColor c)
public void cancelURLDataRequest()
public boolean isURLDataRequested()
public void setFullURLName(java.lang.String url)
getFullURLName()
returns the fullURL set here, or if not set, returns the contents of the name field.public void requestURLData()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com