File: SoFile.ivm

package info (click to toggle)
inventor 2.1.5-10-14
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 32,892 kB
  • ctags: 21,729
  • sloc: ansic: 33,867; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 359; perl: 234; awk: 141; makefile: 76; csh: 35; sed: 11
file content (60 lines) | stat: -rw-r--r-- 2,042 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
NAME SoFile "" "" { node that reads children from a named file }

INCLUDE nodes/SoFile.h

DESC {
This node represents a subgraph that was read from a named input file.
When an \cSoFile\. node is written out, just the field containing the
name of the file is written; no children are written out. When an
\cSoFile\. is 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.
\p
Whenever the \vname\. 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 \cSoInput\.), assuming the field isn't set to an
absolute path name.
\p
The children of an \cSoFile\. node are hidden; there is no way of
accessing or editing them. If you wish to edit the contents of an
\cSoFile\. node, you can modify the contents of the named file and
then "touch" the \vname\. field (see \cSoField\.). Alternatively,
you can use the
\+\mcopyChildren()\. method\.
\-\mSoFileCopyChildren()\. function\.
to get a editable copy of the file node's children. Note that this
does not affect the original file on disk, however.
}

FIELD name { Name of file from which to read children. }

METHOD "" SoFile() {
Creates a file node with default settings.
}

METHOD "" SoGroup * copyChildren() const {
Returns a new \cSoGroup\. containing copies of all of the file node's
children.
}

METHOD "" static SoType getClassTypeId() {
Returns type identifier for this class.
}

ACTION SoGLRenderAction, SoCallbackAction,
       SoGetBoundingBoxAction, SoGetMatrixAction, SoHandleEventAction {
Traverses its children just as \cSoGroup\. does.
}

ACTION SoRayPickAction {
Traverses its hidden children, but, if intersections are found,
generates paths that end at the \cSoFile\. node.
}

ACTION SoWriteAction {
Writes just the \vname\. field and no children.
}

ALSO { SoInput, SoPath }