Debian Codegraph @

doc/man/man3/ivm/fields/SoMFBitMask.ivm

raw
1 NAME SoMFBitMask SoMBitMask "" {
2 multiple-value field containing any number of masks of bit flags
3 }
4
5 INCLUDE fields/SoMFBitMask.h
6
7 DESC {
8 A multiple-value field that contains any number of masks of bit flags,
9 stored as ints. Nodes or engines that use this field class define
10 mnemonic names
11 for the bit flags. These names should be used when setting or testing
12 the values of the field, even though the values are treated as
13 integers in the methods.
14 \p
15 The bit-wise "&" and "|" operators should be used when testing and
16 setting flags in a mask.
17 \p
18 \cSoMFBitMasks\. are written to file as one or more mnemonic enumerated type
19 names, in this format:
20 \b
21 ( flag1 | flag2 | ... )
22 \.
23 If only one flag is used in a mask, the parentheses are optional.
24 These names differ among uses of this field in various node or engine
25 classes.
26 See the reference pages for specific nodes or engines for the names.
27 \p
28 The field values may also be represented as integers, but this is not
29 guaranteed to be portable.
30 \p
31 When more than one value is present, all of the values are enclosed in
32 square brackets and separated by commas.
33 }
34 METHOD "" static SoType getClassTypeId() {}
35 METHOD "" virtual void getTypeId() const {
36 Returns the type for this class or a particular object of this class.
37 }
38 METHOD Get int operator [\|](int i) const {
39 Returns the \ai\.'th value of the field. Indexing past the end of the
40 field (passing in \ai\. greater than \mgetNum()\.) will return garbage.
41 }
42 METHOD GetN const int * getValues(int start) const {
43 Returns a pointer into the array of values in the field, starting at
44 index \astart\.. The values are read-only; see the
45 \mstartEditing()\./\mfinishEditing()\. methods for a way of modifying values
46 in place.
47 }
48 METHOD "" int find(int targetValue,
49 SbBool addIfNotFound = FALSE) {
50 Finds the given value in the array and returns the index of that value
51 in the array. If the value is not found, -1 is returned. If
52 \aaddIfNotFound\. is set, then \atargetValue\. is added to the end of the
53 array (but -1 is still returned).
54 }
55 METHOD SetN void setValues(int start, int num,
56 const int *newValues) {
57 Sets \anum\. values starting at index \astart\. to the values in \anewValues\..
58 The array will be automatically be made larger to accomodate the new
59 values, if necessary.
60 }
61 METHOD Set1 void set1Value(int index, int newValue) {
62 Sets the \aindex\.'th value in the array to \anewValue\.. The array will be
63 automatically expanded, if necessary.
64 }
65 METHOD " " int operator =(int newValue) {}
66 METHOD Set void setValue(int newValue) {
67 Sets the first value in the array to \anewValue\., and deletes the second
68 and subsequent values.
69 }
70 METHOD IsEq int operator ==(const SoMFBitMask &f) const {}
71 METHOD IsNEq int operator !=(const SoMFBitMask &f) const {
72 Returns TRUE if all of the values of this field equal (do not
73 equal) those of the given field. If the fields are different types FALSE will
74 always be returned (even if one field is an \cSoMFFloat\. with one
75 value of 1.0 and the other is an \cSoMFInt\. with a value of 1, for
76 example).
77 }
78 METHOD StartEdit int *startEditing() {}
79 METHOD FinishEdit void finishEditing() {
80 \mstartEditing()\. returns a pointer to the internally-maintained array
81 that can be modified. The values in the array may be changed, but values
82 cannot be added or removed. It is illegal to call any other editing
83 methods between \+\mstartEditing()\. and \mfinishEditing()\. (e.g.
84 \mset1Value()\., \msetValue()\., etc).\.\-\mStartEdit()\. and
85 \mFinishEdit()\. (e.g. \mSet1()\., \mSet()\., etc).\.
86 \p
87 Fields, engines or sensors connected to this field and sensors are not
88 notified that this field has changed until
89 \+\mfinishEditing()\.\.\-\mFinishEdit()\.\. is called. Calling
90 \+\mfinishEditing()\.\.\-\mFinishEdit()\.\. always sets the
91 \+\misDefault()\.\.\-\mIsDflt\.\. flag to FALSE and informs
92 engines and sensors that the field changed, even if none of the values
93 actually were changed.
94 }