Debian Codegraph @

doc/man/man3/ivm/fields/SoMFInt32.ivm

raw
1 NAME SoMFInt32 SoMInt32 "" {
2 multiple-value field containing any number of int32_t integers
3 }
4
5 INCLUDE fields/SoMFInt32.h
6
7 DESC {
8 A multiple-value field that contains any number of int32_t (32-bit)
9 integers.
10 \p
11 \cSoMFInt32s\. are written to file as one or more integer values, in
12 decimal, hexadecimal or octal format. When more than one value is
13 present, all of the values are enclosed in square brackets and
14 separated by commas; for example:
15 \b
16 [ 17, -0xE20, -518820 ]
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 int32_t 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 int32_t * 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(int32_t 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 int32_t *newValues) {
42 Sets \anum\. 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, int32_t newValue) {
47 Sets the \aindex\.'th value in the array to \anewValue\.. The array will be
48 automatically expanded, if necessary.
49 }
50 METHOD " " int32_t operator =(int32_t newValue) {}
51 METHOD Set void setValue(int32_t 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 SoMFInt32 &f) const {}
56 METHOD IsNEq int operator !=(const SoMFInt32 &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 int32_t *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 }