Debian Codegraph @

doc/man/man3/ivm/fields/SoSFBitMask.ivm

raw
1 NAME SoSFBitMask SoSBitMask "" {
2 single-value field containing a set of bit flags
3 }
4
5 INCLUDE fields/SoSFBitMask.h
6
7 DESC {
8 A single-value field that contains a mask of bit flags,
9 stored as an integer. Nodes that use this field class define mnemonic
10 names for the bit flags. These names should be used when setting or testing
11 the values of the field, even though the values are treated as
12 integers in the methods.
13 \p
14 The bit-wise "&" and "|" operators should be used when testing and
15 setting flags in a mask. For example, to turn on the sides of a 3D
16 text node and turn off the back you would write:
17 \+\b
18 text3->parts = text3->parts.getValue() | SoText3::SIDES;
19 text3->parts = text3->parts.getValue() & ~SoText3::BACK;
20 \.\.
21 \-\b
22 SoSBitMaskSetValue(text3->parts,
23 SoSBitMaskGetValue(text3->parts) | SO_TXT3_SIDES);
24 SoSBitMaskSetValue(text3->parts,
25 SoSBitMaskGetValue(text3->parts) & ~SO_TXT3_BACK);
26 \.\.
27 \cSoSFBitMasks\. are written to file as one or more mnemonic enumerated type
28 names, in this format:
29 \b
30 ( flag1 | flag2 | ... )
31 \.
32 If only one flag is used in a mask, the parentheses are optional.
33 These names differ among uses of this field in various node or engine
34 classes. See their man pages for the names.
35 \p
36 The field values may also be represented as integers, but this is not
37 guaranteed to be portable.
38 }
39 ALSO { SoField, SoSField, SoMFBitMask }
40 METHOD "" static SoType getClassTypeId() {}
41 METHOD "" virtual void getTypeId() const {
42 Returns the type for this class or a particular object of this class.
43 }
44 METHOD Get int getValue() const {
45 Returns this field's value.
46 }
47 METHOD Set void setValue(int newValue) {}
48 METHOD " " int operator =(int newValue) {
49 Sets this field to \anewValue\..
50 }
51 METHOD IsEq int operator ==(const SoSFBitMask &f) const {}
52 METHOD IsNEq int operator !=(const SoSFBitMask &f) const {
53 Returns TRUE if \af\. is of the same type and has the same value as this
54 field.
55 }