Debian Codegraph @

doc/man/man3/ivm/fields/SoMFPath.ivm

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