1SoSFEnum(3IV)() SoSFEnum(3IV)()
2
3
4
6 SoSFEnum — field containing an enumerated value
7
9 SoField > SoSField > SoSFEnum
10
12 Methods from class SoSFEnum:
13
14 void setValue(const SbName &name)
15 static SoType getClassTypeId()
16 virtual void getTypeId() const
17 int getValue() const
18 int operator =(int newValue)
19 void setValue(int newValue)
20 int operator ==(const SoSFEnum &f) const
21 int operator !=(const SoSFEnum &f) const
22
23 Methods from class SoField:
24
25 void setIgnored(SbBool ignore)
26 SbBool isIgnored() const
27 SbBool isDefault() const
28 virtual SbBool isOfType(SoType type) const
29 SbBool set(const char *valueString)
30 void get(SbString &valueString)
31 void touch()
32 SbBool connectFrom(SoField *fromField)
33 SbBool connectFrom(SoEngineOutput *fromEngine)
34 void disconnect()
35 SbBool isConnected() const
36 SbBool isConnectedFromField() const
37 SbBool getConnectedField(SoField *&writingField) const
38 SbBool isConnectedFromEngine() const
39 SbBool getConnectedEngine(SoEngineOutput *&engineOutput)
40 const
41 void enableConnection(SbBool flag)
42 SbBool isConnectionEnabled() const
43 int getForwardConnections(SoFieldList &list) const
44 SoFieldContainer * getContainer() const
45
46
48 A single-value field that contains an enumerated type value, stored as
49 an integer. Nodes that use this field class define mnemonic names for
50 the values. These names should be used when setting or testing the val‐
51 ues of the field, even though the values are treated as integers in the
52 methods.
53
54 SoSFEnums are written to file as a mnemonic enumerated type name. The
55 name differs among uses of this field in various node or engine
56 classes. See the man pages for specific nodes or engines for the names
57 (e.g. SoDrawStyle).
58
60 void setValue(const SbName &name)
61 Sets this field to contain the given mnemonic name, passed in as a
62 name or string.
63
64 static SoType getClassTypeId()
65 virtual void getTypeId() const
66 Returns the type for this class or a particular object of this
67 class.
68
69 int getValue() const
70 Returns this field's value.
71
72 int operator =(int newValue)
73 void setValue(int newValue)
74 Sets this field to newValue.
75
76 int operator ==(const SoSFEnum &f) const
77 int operator !=(const SoSFEnum &f) const
78 Returns TRUE if f is of the same type and has the same value as this
79 field.
80
81
83 SoField, SoSField, SoMFEnum
84
85
86
87
88 SoSFEnum(3IV)()