| 1 |
NAME SoSFEngine SoSEngine "" { |
| 2 |
field containing a pointer to a engine |
| 3 |
} |
| 4 |
|
| 5 |
INCLUDE fields/SoSFEngine.h |
| 6 |
|
| 7 |
DESC { |
| 8 |
This field maintains a pointer to an \cSoEngine\. instance, |
| 9 |
correctly maintaining its reference count. |
| 10 |
\p |
| 11 |
\cSoSFEngines\. are written to file as the engine they are pointing to. |
| 12 |
For example: |
| 13 |
\b |
| 14 |
mySoSFEngineField ElapsedTime \{\} |
| 15 |
\. |
| 16 |
is an \cSoSFEngine\. field named 'mySoSFEngineField', pointing to an |
| 17 |
\cSoElapsedTime\. |
| 18 |
engine. If the engine is used elsewhere, the regular DEF/USE instancing |
| 19 |
mechanism applies: |
| 20 |
\b |
| 21 |
anotherSoSFEngineField USE calculator |
| 22 |
\. |
| 23 |
is an \cSoSFEngine\. field that points to a engine named 'calculator' that |
| 24 |
was DEF'ed earlier in the scene. |
| 25 |
} |
| 26 |
ALSO { SoField, SoSField, SoMFEngine, SoEngine } |
| 27 |
METHOD "" static SoType getClassTypeId() {} |
| 28 |
METHOD "" virtual void getTypeId() const { |
| 29 |
Returns the type for this class or a particular object of this class. |
| 30 |
} |
| 31 |
METHOD Get SoEngine * getValue() const { |
| 32 |
Returns this field's value. |
| 33 |
} |
| 34 |
METHOD " " SoEngine * operator =(SoEngine * newValue) {} |
| 35 |
METHOD Set void setValue(SoEngine * newValue) { |
| 36 |
Sets this field to \anewValue\.. |
| 37 |
} |
| 38 |
METHOD IsEq int operator ==(const SoSFEngine &f) const {} |
| 39 |
METHOD IsNEq int operator !=(const SoSFEngine &f) const { |
| 40 |
Returns TRUE if \af\. is of the same type and has the same value as this |
| 41 |
field. |
| 42 |
} |