Open Inventor Reference
|
Abstract base class for all field converter engines. More...
#include <Inventor/engines/SoFieldConverter.h>
Public Member Functions | |
virtual SoField * | getInput (SoType type)=0 |
These must be defined in each subclass. | |
virtual SoEngineOutput * | getOutput (SoType type)=0 |
virtual SoField * | getConnectedInput () |
Returns the input that is connected. | |
int | getForwardConnections (SoFieldList &list) const |
Adds all fields connected from the output of the converter to the given list. | |
Static Public Member Functions | |
static void | initClass () |
Initializes base engine class. | |
static void | initClasses () |
init all builtin converters | |
Protected Member Functions | |
SoFieldConverter () | |
~SoFieldConverter () |
A field converter engine is used to convert the value of a field of one type to another. These engines are registered with the global database so connections between fields of different types can be made by automatically inserting a converter instance. A single class of converter engine may be registered for several different conversions. Field converters are never written to file (SoField::writeConnection takes care of that).
Definition at line 79 of file SoFieldConverter.h.
SoFieldConverter::SoFieldConverter | ( | ) | [protected] |
SoFieldConverter::~SoFieldConverter | ( | ) | [protected] |
virtual SoField* SoFieldConverter::getConnectedInput | ( | ) | [virtual] |
By default, this searches through the field data for the field that is connected; you can redefine to make more efficient.
int SoFieldConverter::getForwardConnections | ( | SoFieldList & | list | ) | const |
They return the input and output connections of the given types.
virtual SoEngineOutput* SoFieldConverter::getOutput | ( | SoType | type | ) | [pure virtual] |
static void SoFieldConverter::initClass | ( | ) | [static] |
Reimplemented from SoEngine.
static void SoFieldConverter::initClasses | ( | ) | [static] |
Reimplemented from SoEngine.