public class SoFile extends SoNode
SoFilenode is written out, just the field containing the name of the file is written; no children are written out. When an
SoFileis encountered during reading, reading continues from the named file, and all nodes read from the file are added as hidden children of the file node.
name field changes, any existing children are removed and the contents of the new file is read in. The file node remembers what directory the last file was read from and will read the new file from the same directory after checking the standard list of directories (see
SoInput), assuming the field isn't set to an absolute path name.
The children of an
SoFile node are hidden; there is no way of accessing or editing them. If you wish to edit the contents of an
SoFile node, you can modify the contents of the named file and then "touch" the
name field (see
SoField). Alternatively, you can use the
copyChildren() method to get an editable copy of the file node's children. Note that this does not affect the original file on disk, however.
|Modifier and Type||Field and Description|
Name of file from which to read children.
|Constructor and Description|
Creates a file node with default settings.
|Modifier and Type||Method and Description|
Returns a new
Queries whether the search action will traverse the hidden children.
If flag is true, the search action will traverse hidden children.
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
public final SoSFFilePathString name
public static void setSearchOK(boolean flag)
public SoGroup copyChildren()
SoGroupcontaining copies of all of the file node's children.
public static boolean getSearchOK()
Generated on September 3, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com