Debian Codegraph @

doc/man/man3/ivm/fields/SoMFVec4f.ivm

raw
1 NAME SoMFVec4f SoMVec4f "" {
2 multiple-value field containing any number of four-dimensional vectors
3 }
4
5 INCLUDE fields/SoMFVec4f.h
6
7 DESC {
8 A multiple-value field that contains any number of four-dimensional
9 vectors.
10 \p
11 \cSoMFVec4fs\. are written to file as one or more triples of floating
12 point values separated by whitespace.
13 \p
14 When more than one value is present, all of the
15 values are enclosed in square brackets and separated by commas; for
16 example:
17 \b
18 [ 0 0 0, 1.2 3.4 5.6, 98.6 -4e1 212 ]
19 \.
20 }
21 METHOD SetXYZWs void setValues(int start, int num, const float xyzw[\|][4])
22 {
23 Sets \anum\. values starting at index \astart\. to the given floating point
24 values. There must be \anum\.*4 values in the passed array.
25 }
26 METHOD Set1X_Y_Z_W
27 void set1Value(int index, float x, float y, float z, float w) {}
28 METHOD Set1XYZW void set1Value(int index, const float xyzw[4]) {
29 Set the \aindex\.'th value to the given floating point values.
30 }
31 METHOD SetX_Y_Z_W void setValue(float x, float y, float z, float w) {}
32 METHOD SetXYZW void setValue(const float xyzw[4]) {
33 Sets the field to contain the given value and only the given value (if
34 the array had multiple values before, they are deleted).
35 }
36 METHOD "" static SoType getClassTypeId() {}
37 METHOD "" virtual void getTypeId() const {
38 Returns the type for this class or a particular object of this class.
39 }
40 METHOD Get const SbVec4f & operator [\|](int i) const {
41 Returns the \ai\.'th value of the field. Indexing past the end of the
42 field (passing in \ai\. greater than \mgetNum()\.) will return garbage.
43 }
44 METHOD GetN const SbVec4f * getValues(int start) const {
45 Returns a pointer into the array of values in the field, starting at
46 index \astart\.. The values are read-only; see the
47 \mstartEditing()\./\mfinishEditing()\. methods for a way of modifying values
48 in place.
49 }
50 METHOD "" int find(const SbVec4f & targetValue,
51 SbBool addIfNotFound = FALSE) {
52 Finds the given value in the array and returns the index of that value
53 in the array. If the value is not found, -1 is returned. If
54 \aaddIfNotFound\. is set, then \atargetValue\. is added to the end of the
55 array (but -1 is still returned).
56 }
57 METHOD SetN void setValues(int start, int num,
58 const SbVec4f *newValues) {
59 Sets \anum\. values starting at index \astart\. to the values in \anewValues\..
60 The array will be automatically be made larger to accomodate the new
61 values, if necessary.
62 }
63 METHOD Set1 void set1Value(int index, const SbVec4f & newValue) {
64 Sets the \aindex\.'th value in the array to \anewValue\.. The array will be
65 automatically expanded, if necessary.
66 }
67 METHOD " " const SbVec4f & operator =(const SbVec4f & newValue) {}
68 METHOD Set void setValue(const SbVec4f & newValue) {
69 Sets the first value in the array to \anewValue\., and deletes the second
70 and subsequent values.
71 }
72 METHOD IsEq int operator ==(const SoMFVec4f &f) const {}
73 METHOD IsNEq int operator !=(const SoMFVec4f &f) const {
74 Returns TRUE if all of the values of this field equal (do not
75 equal) those of the given field. If the fields are different types FALSE will
76 always be returned (even if one field is an \cSoMFFloat\. with one
77 value of 1.0 and the other is an \cSoMFInt\. with a value of 1, for
78 example).
79 }
80 METHOD StartEdit SbVec4f *startEditing() {}
81 METHOD FinishEdit void finishEditing() {
82 \mstartEditing()\. returns a pointer to the internally-maintained array that
83 can be modified. The values in the array may be changed, but values cannot
84 be added or removed. It is illegal to call any other editing methods between
85 \+\mstartEditing()\. and \mfinishEditing()\. (e.g. \mset1Value()\.,
86 \msetValue()\., etc).\.\-\mStartEdit()\. and \mFinishEdit()\. (e.g.
87 \mSet1()\., \mSet()\., etc).\.
88 \p
89 Fields, engines or sensors connected to this field and sensors are not
90 notified that this field has changed until
91 \+\mfinishEditing()\.\.\-\mFinishEdit()\.\. is called. Calling
92 \+\mfinishEditing()\.\.\-\mFinishEdit()\.\. always sets the
93 \+\misDefault()\.\.\-\mIsDflt\.\. flag to FALSE and informs
94 engines and sensors that the field changed, even if none of the values
95 actually were changed.
96 }