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.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFNode |
alternateRep
Specifies child data that can be used instead of fetching data from the URL.
|
static int |
ALWAYS
Deprecated.
Use
SoWWWInline.BboxVisibilities.ALWAYS instead. |
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.
|
static int |
NEVER
Deprecated.
Use
SoWWWInline.BboxVisibilities.NEVER instead. |
static int |
UNTIL_LOADED
Deprecated.
Use
SoWWWInline.BboxVisibilities.UNTIL_LOADED instead. |
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, 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, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int NEVER
SoWWWInline.BboxVisibilities.NEVER
instead.@Deprecated public static final int UNTIL_LOADED
SoWWWInline.BboxVisibilities.UNTIL_LOADED
instead.@Deprecated public static final int ALWAYS
SoWWWInline.BboxVisibilities.ALWAYS
instead.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 SoGroup copyChildren()
setChildData()
.public static boolean getReadAsSoFile()
public static SbColor getBoundingBoxColor()
public static void setReadAsSoFile(boolean onOff)
SoFile
node instead of using SoWWWInlineFetchURLCB.public java.lang.String getFullURLName()
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()
public static SoWWWInline.BboxVisibilities getBoundingBoxVisibility()
public void cancelURLDataRequest()
public static void setBoundingBoxVisibility(SoWWWInline.BboxVisibilities b)
public void setChildData(SoNode urlData)
public boolean isURLDataRequested()
public SoNode getChildData()
public boolean isURLDataHere()
setChildData()
has been called.)public static void setBoundingBoxColor(SbColor c)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com