KCMS CMM Developer's Guide

Composition

Some technologies convert from another technology (Xform *). For example, CS1.0 logTech can generate an instance of itself from any other (KcsXform *) derivative. It does this by calling the compose()() method, which takes a (KcsXform *) and returns a (KcsXform **). To use this technique, you should supply a callback function because it can be a slow operation.

The KCMS framework uses this protocol to implement a sequence KcsXform derivative that can take many transformations and treat them as one by sequentially evaluating the chain. Since the KcsXformSeq class is a KcsXform derivative, one LogTech can be generated that represents the complete connection. This has tremendous speed and quality advantages.

The KcsXform base class performs composition using the default CMM.