Debian Codegraph @

doc/man/man3/ivm/fields/SoMFFloat.ivm

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