Open Inventor Reference
SoFieldConverter Class Reference

Abstract base class for all field converter engines. More...

#include <Inventor/engines/SoFieldConverter.h>

Inheritance diagram for SoFieldConverter:
SoEngine SoFieldContainer SoBase

List of all members.

Public Member Functions

virtual SoFieldgetInput (SoType type)=0
 These must be defined in each subclass.
virtual SoEngineOutputgetOutput (SoType type)=0
virtual SoFieldgetConnectedInput ()
 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 ()

Detailed Description

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.


Constructor & Destructor Documentation

SoFieldConverter::SoFieldConverter ( ) [protected]
SoFieldConverter::~SoFieldConverter ( ) [protected]

Member Function Documentation

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
virtual SoField* SoFieldConverter::getInput ( SoType  type) [pure virtual]

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.


The documentation for this class was generated from the following file: