1SoMFVec3f(3IV)()                                              SoMFVec3f(3IV)()
2
3
4

NAME

6       SoMFVec3f  — multiple-value field containing any number of three-dimen‐
7       sional vectors
8

INHERITS FROM

10       SoField > SoMField > SoMFVec3f
11

SYNOPSIS

13       #include <Inventor/fields/SoMFVec3f.h>
14
15          Methods from class SoMFVec3f:
16
17     void                setValues(int start, int num, const float xyz[][3])
18     void                set1Value(int index, float x, float y, float z)
19     void                set1Value(int index, const float xyz[3])
20     void                setValue(float x, float y, float z)
21     void                setValue(const float xyz[3])
22     static SoType       getClassTypeId()
23     virtual void        getTypeId() const
24     const SbVec3f &     operator [](int i) const
25     const SbVec3f *     getValues(int start) const
26     int                 find(const SbVec3f &  targetValue,  SbBool  addIfNot‐
27                              Found = FALSE)
28     void                setValues(int  start, int num, const SbVec3f *newVal‐
29                              ues)
30     void                set1Value(int index, const SbVec3f & newValue)
31     const SbVec3f &     operator =(const SbVec3f & newValue)
32     void                setValue(const SbVec3f & newValue)
33     int                 operator ==(const SoMFVec3f &f) const
34     int                 operator !=(const SoMFVec3f &f) const
35     SbVec3f *           startEditing()
36     void                finishEditing()
37
38          Methods from class SoMField:
39
40     int                 getNum() const
41     void                setNum(int num)
42     virtual void        deleteValues(int start, int num = -1)
43     virtual void        insertSpace(int start, int num)
44     SbBool              set1(int index, const char *valueString)
45     void                get1(int index, SbString &valueString)
46
47          Methods from class SoField:
48
49     void                setIgnored(SbBool ignore)
50     SbBool              isIgnored() const
51     SbBool              isDefault() const
52     virtual SbBool      isOfType(SoType type) const
53     SbBool              set(const char *valueString)
54     void                get(SbString &valueString)
55     void                touch()
56     SbBool              connectFrom(SoField *fromField)
57     SbBool              connectFrom(SoEngineOutput *fromEngine)
58     void                disconnect()
59     SbBool              isConnected() const
60     SbBool              isConnectedFromField() const
61     SbBool              getConnectedField(SoField *&writingField) const
62     SbBool              isConnectedFromEngine() const
63     SbBool              getConnectedEngine(SoEngineOutput     *&engineOutput)
64                              const
65     void                enableConnection(SbBool flag)
66     SbBool              isConnectionEnabled() const
67     int                 getForwardConnections(SoFieldList &list) const
68     SoFieldContainer *  getContainer() const
69
70

DESCRIPTION

72       A  multiple-value  field  that contains any number of three-dimensional
73       vectors.
74
75       SoMFVec3fs are written to file as one or more triples of floating point
76       values separated by whitespace.
77
78       When  more than one value is present, all of the values are enclosed in
79       square brackets and separated by commas; for example:
80
81          [ 0 0 0, 1.2 3.4 5.6, 98.6 -4e1 212 ]
82
83
84

METHODS

86     void                setValues(int start, int num, const float xyz[][3])
87          Sets num values starting at index start to the given floating  point
88          values. There must be num*3 values in the passed array.
89
90     void                set1Value(int index, float x, float y, float z)
91     void                set1Value(int index, const float xyz[3])
92          Set the index'th value to the given floating point values.
93
94     void                setValue(float x, float y, float z)
95     void                setValue(const float xyz[3])
96          Sets  the  field to contain the given value and only the given value
97          (if the array had multiple values before, they are deleted).
98
99     static SoType       getClassTypeId()
100     virtual void        getTypeId() const
101          Returns the type for this class  or  a  particular  object  of  this
102          class.
103
104     const SbVec3f &     operator [](int i) const
105          Returns  the  i'th  value of the field. Indexing past the end of the
106          field (passing in i greater than getNum()) will return garbage.
107
108     const SbVec3f *     getValues(int start) const
109          Returns a pointer into the array of values in the field, starting at
110          index  start.  The values are read-only; see the startEditing()/fin‐
111          ishEditing() methods for a way of modifying values in place.
112
113     int                 find(const SbVec3f &  targetValue,  SbBool  addIfNot‐
114                              Found = FALSE)
115          Finds  the  given  value  in the array and returns the index of that
116          value in the array. If the value is not found, -1  is  returned.  If
117          addIfNotFound  is  set,  then targetValue is added to the end of the
118          array (but -1 is still returned).
119
120     void                setValues(int start, int num, const SbVec3f  *newVal‐
121                              ues)
122          Sets  num values starting at index start to the values in newValues.
123          The array will be automatically be made larger to accomodate the new
124          values, if necessary.
125
126     void                set1Value(int index, const SbVec3f & newValue)
127          Sets  the index'th value in the array to newValue. The array will be
128          automatically expanded, if necessary.
129
130     const SbVec3f &     operator =(const SbVec3f & newValue)
131     void                setValue(const SbVec3f & newValue)
132          Sets the first value in the array to newValue, and deletes the  sec‐
133          ond and subsequent values.
134
135     int                 operator ==(const SoMFVec3f &f) const
136     int                 operator !=(const SoMFVec3f &f) const
137          Returns TRUE if all of the values of this field equal (do not equal)
138          the given field. If the fields are different types FALSE will always
139          be returned (even if one field is an SoMFFloat with one value of 1.0
140          and the other is an SoMFInt with a value of 1, for example).
141
142     SbVec3f *           startEditing()
143     void                finishEditing()
144          startEditing() returns a pointer to the internally-maintained  array
145          that  can  be  modified. The values in the array may be changed, but
146          values cannot be added or removed. It is illegal to call  any  other
147          editing  methods  between  startEditing()  and finishEditing() (e.g.
148          set1Value(), setValue(), etc).
149
150          Fields, engines or sensors connected to this field and  sensors  are
151          not  notified  that  this field has changed until finishEditing() is
152          called. Calling finishEditing() always sets the isDefault() flag  to
153          FALSE  and  informs engines and sensors that the field changed, even
154          if none of the values actually were changed.
155
156
157
158
159                                                              SoMFVec3f(3IV)()
Impressum