Field containing an engine instance. More...
#include <Inventor/fields/SoSFEngine.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
const SoSFEngine & | operator= (const SoSFEngine &f) |
SoSFEngine () | |
virtual | ~SoSFEngine () |
SoEngine * | getValue () const |
void | setValue (SoEngine *newValue) |
SoEngine * | operator= (SoEngine *newValue) |
int | operator== (const SoSFEngine &f) const |
int | operator!= (const SoSFEngine &f) const |
virtual size_t | getValueSize () const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Field containing an engine instance.
This field maintains an SoEngine instance , correctly maintaining its reference count.
SoSFEngines are written to file as the engine they are maintaining. For example:
mySoSFEngineField ElapsedTime
is an SoSFEngine field named 'mySoSFEngineField', containing an SoElapsedTime engine. If the engine is used elsewhere, the regular DEF/USE instancing mechanism applies:
anotherSoSFEngineField USE calculator
is an SoSFEngine field that refers to a engine named 'calculator' that was DEF'ed earlier in the scene.
SoField, SoSField, SoMFEngine, SoEngine
SoSFEngine::SoSFEngine | ( | ) |
Default constructor.
virtual SoSFEngine::~SoSFEngine | ( | ) | [virtual] |
Destructor.
static SoType SoSFEngine::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoSField.
virtual SoType SoSFEngine::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Implements SoTypedObject.
SoEngine* SoSFEngine::getValue | ( | ) | const [inline] |
Returns this field's value.
virtual size_t SoSFEngine::getValueSize | ( | ) | const [inline, virtual] |
Get size of the value.
Reimplemented from SoField.
int SoSFEngine::operator!= | ( | const SoSFEngine & | f | ) | const [inline] |
Returns FALSE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
const SoSFEngine& SoSFEngine::operator= | ( | const SoSFEngine & | f | ) |
Copy from another field of same type.
int SoSFEngine::operator== | ( | const SoSFEngine & | f | ) | const |
Returns TRUE if otherField is of the same type and has the same value as this field.
Reimplemented from SoField.
void SoSFEngine::setValue | ( | SoEngine * | newValue | ) |
Sets this field to newValue.