1SoSFNode(3IV)()                                                SoSFNode(3IV)()
2
3
4

NAME

6       SoSFNode — field containing a pointer to a node
7

INHERITS FROM

9       SoField > SoSField > SoSFNode
10

SYNOPSIS

12       #include <Inventor/fields/SoSFNode.h>
13
14          Methods from class SoSFNode:
15
16     static SoType       getClassTypeId()
17     virtual void        getTypeId() const
18     SoNode *            getValue() const
19     SoNode *            operator =(SoNode * newValue)
20     void                setValue(SoNode * newValue)
21     int                 operator ==(const SoSFNode &f) const
22     int                 operator !=(const SoSFNode &f) const
23
24          Methods from class SoField:
25
26     void                setIgnored(SbBool ignore)
27     SbBool              isIgnored() const
28     SbBool              isDefault() const
29     virtual SbBool      isOfType(SoType type) const
30     SbBool              set(const char *valueString)
31     void                get(SbString &valueString)
32     void                touch()
33     SbBool              connectFrom(SoField *fromField)
34     SbBool              connectFrom(SoEngineOutput *fromEngine)
35     void                disconnect()
36     SbBool              isConnected() const
37     SbBool              isConnectedFromField() const
38     SbBool              getConnectedField(SoField *&writingField) const
39     SbBool              isConnectedFromEngine() const
40     SbBool              getConnectedEngine(SoEngineOutput     *&engineOutput)
41                              const
42     void                enableConnection(SbBool flag)
43     SbBool              isConnectionEnabled() const
44     int                 getForwardConnections(SoFieldList &list) const
45     SoFieldContainer *  getContainer() const
46
47

DESCRIPTION

49       This field maintains a pointer to an SoNode instance,  correctly  main‐
50       taining its reference count.
51
52       SoSFNodes  are  written  to  file as the node they are pointing to. For
53       example:
54
55          mySoSFNodeField Cube {}
56
57     is an SoSFNode field named 'mySoSFNodeField', pointing to an SoCube node.
58     If  the  node is used elsewhere, the regular DEF/USE instancing mechanism
59     applies:
60
61          anotherSoSFNodeField USE topSeparator
62
63     is an SoSFNode field that points to a node named 'topSeparator' that  was
64     DEF'ed earlier in the scene.
65

METHODS

67     static SoType       getClassTypeId()
68     virtual void        getTypeId() const
69          Returns  the  type  for  this  class  or a particular object of this
70          class.
71
72     SoNode *            getValue() const
73          Returns this field's value.
74
75     SoNode *            operator =(SoNode * newValue)
76     void                setValue(SoNode * newValue)
77          Sets this field to newValue.
78
79     int                 operator ==(const SoSFNode &f) const
80     int                 operator !=(const SoSFNode &f) const
81          Returns TRUE if f is of the same type and has the same value as this
82          field.
83
84

SEE ALSO

86       SoField, SoSField, SoMFNode, SoNode
87
88
89
90
91                                                               SoSFNode(3IV)()
Impressum