Debian Codegraph @

doc/man/man3/ivm/fields/SoMFMatrix.ivm

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