Debian Codegraph @

doc/man/man3/ivm/fields/SoMFTime.ivm

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