Share via


RECO_LATTICE_COLUMN Structure

RECO_LATTICE_COLUMN Structure

Represents a column in the lattice.

There is one column per segment. Each column contains one or more elements. An element is usually a word or character that is a recognition alternate. Elements start with the same stroke index, but do not necessarily contain the same number of strokes (for example, see column 0 in the "together" example). The structure also holds properties that are valid for the whole column.

Declaration

[C++]

typedef struct tagRECO_LATTICE_COLUMN
    {
    ULONG key;
    RECO_LATTICE_PROPERTIES cpProp;
    ULONG cStrokes;
    ULONG *pStrokes;
    ULONG cLatticeElements;
    RECO_LATTICE_ELEMENT *pLatticeElements;
    }     RECO_LATTICE_COLUMN;

Members

Name Description
key Unused. Should be set to 0 (zero).
cpProp Properties structure that holds the properties for the column.
cStrokes Count of strokes in the pStrokes array for the longest element in the column.
pStrokes Pointer to array of stroke indices in the order in which they were fed to the recognizer. For example, imagine you have two strokes, stroke one containing the word "back" and stroke two containing the word "door". The column containing "back" will have a strokes array containing one ULONG {0}. The column for "door" will have a strokes array containing two ULONG items {1,2}.
cLatticeElements Number of members in pLatticeElements.
pLatticeElements Array of RECO_LATTICE_ELEMENT structures.