Debian Codegraph @

doc/man/man3/ivm/fields/SoMFVec3f.ivm

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