Chapter 3. Creating a Field

If the set of field classes supported by Inventor does not suit your needs when defining a node or engine class, you may have to create your own field subclass. This chapter describes creating single-value and multiple-value fields. If you create a new field and you need automatic type conversion so that it can be connected to a field of a different type, you can build an engine that is a subclass of SoFieldConverter SoFieldConverter SoFieldConverter . Creating new field converters is explained in Chapter 6.

The chapter examples show creating two field classes:

  • A single-value field called SFDouble

  • A multiple-value field called MFDouble