Debian Codegraph @

doc/man/man3/ivm/fields/SoMFNode.ivm

raw
1 NAME SoMFNode SoMNode "" {
2 multiple-value field containing any number of pointers to nodes
3 }
4
5 INCLUDE fields/SoMFNode.h
6
7 DESC {
8 This field maintains a set of pointers to \cSoNode\. instances,
9 correctly maintaining their reference counts.
10 \p
11 \cSoMFNodes\. are written to file as one or more nodes.
12 When more than one value is present, all of the
13 values are enclosed in square brackets and separated by commas; for
14 example:
15 \b
16 [ Cube \{ \}, Sphere \{ radius 2.0 \}, USE myTranslation ]
17 \.
18 }
19 METHOD "" static SoType getClassTypeId() {}
20 METHOD "" virtual void getTypeId() const {
21 Returns the type for this class or a particular object of this class.
22 }
23 METHOD Get SoNode * operator [\|](int i) const {
24 Returns the \ai\.'th value of the field. Indexing past the end of the
25 field (passing in \ai\. greater than \mgetNum()\.) will return garbage.
26 }
27 METHOD GetN const SoNode * * getValues(int start) const {
28 Returns a pointer into the array of values in the field, starting at
29 index \astart\.. The values are read-only; see the
30 \mstartEditing()\./\mfinishEditing()\. methods for a way of modifying values
31 in place.
32 }
33 METHOD "" int find(SoNode * targetValue,
34 SbBool addIfNotFound = FALSE) {
35 Finds the given value in the array and returns the index of that value
36 in the array. If the value is not found, -1 is returned. If
37 \aaddIfNotFound\. is set, then \atargetValue\. is added to the end of the
38 array (but -1 is still returned).
39 }
40 METHOD SetN void setValues(int start, int num,
41 const SoNode * *newValues) {
42 Sets num values starting at index \astart\. to the values in \anewValues\..
43 The array will be automatically be made larger to accomodate the new
44 values, if necessary.
45 }
46 METHOD Set1 void set1Value(int index, SoNode * newValue) {
47 Sets the \aindex\.'th value in the array to \anewValue\.. The array will be
48 automatically expanded, if necessary.
49 }
50 METHOD " " SoNode * operator =(SoNode * newValue) {}
51 METHOD Set void setValue(SoNode * newValue) {
52 Sets the first value in the array to \anewValue\., and deletes the second
53 and subsequent values.
54 }
55 METHOD IsEq int operator ==(const SoMFNode &f) const {}
56 METHOD IsNEq int operator !=(const SoMFNode &f) const {
57 Returns TRUE if all of the values of this field equal (do not
58 equal) those of the given field. If the fields are different types FALSE will
59 always be returned (even if one field is an \cSoMFFloat\. with one
60 value of 1.0 and the other is an \cSoMFInt\. with a value of 1, for
61 example).
62 }
63 METHOD StartEdit SoNode * *startEditing() {}
64 METHOD FinishEdit void finishEditing() {
65 \mstartEditing()\. returns a pointer to the internally-maintained array that
66 can be modified. The values in the array may be changed, but values cannot
67 be added or removed. It is illegal to call any other editing methods between
68 \+\mstartEditing()\. and \mfinishEditing()\. (e.g.
69 \mset1Value()\., \msetValue()\., etc).\.\-\mStartEdit()\. and \mFinishEdit()\.
70 (e.g. \mSet1()\., \mSet()\., etc).\.
71 \p
72 Fields, engines or sensors connected to this field and sensors are not
73 notified that this field has changed until
74 \+\mfinishEditing()\.\.\-\mFinishEdit()\.\. is called. Calling
75 \+\mfinishEditing()\.\.\-\mFinishEdit()\.\. always sets the
76 \+\misDefault()\.\.\-\mIsDflt\.\. flag to FALSE and informs
77 engines and sensors that the field changed, even if none of the values
78 actually were changed.
79 }