Debian Codegraph @

doc/man/man3/ivm/fields/SoMFEngine.ivm

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