Debian Codegraph @

doc/man/man3/ivm/fields/SoMFPlane.ivm

raw
1 NAME SoMFPlane SoMPlane "" {
2 field containing several plane equations
3 }
4
5 INCLUDE fields/SoMFPlane.h
6
7 DESC {
8 A field containing one or more plane equations.
9 \p
10 \cSoMFPlanes\. are written to file as groups of four floating point
11 values separated by whitespace. In each set of four values, the first
12 three are the normal direction of the plane, the fourth is the
13 distance of the plane from the origin (in the direction of the normal).
14 \p
15 When more than one value is present, all of the
16 values are enclosed in square brackets and separated by commas; for
17 example:
18 \b
19 [ 1 0 0 0, .707 .707 0 100, ]
20 \.
21 }
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 SbPlane 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 \agetNum()\.) will return garbage.
29 }
30 METHOD GetN const SbPlane * 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(SbPlane 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 SbPlane *newValues) {
45 Sets num 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, SbPlane newValue) {
50 Sets the \aindex\.'th value in the array to \anewValue\.. The array will be
51 automatically expanded, if necessary.
52 }
53 METHOD " " SbPlane operator =(SbPlane newValue) {}
54 METHOD Set void setValue(SbPlane 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 SoMFPlane &f) const {}
59 METHOD IsNEq int operator !=(const SoMFPlane &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 SbPlane *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.
72 \mset1Value()\., \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 }