Features Help Download

Lomse Hacking Guide

3. Part II: Rendering the document

As you know, the InternalModel is a general purpose independent representation of the document content. From it, any other specific representation can be derived. For displaying a document, two steps are performed.

First, the InternalModel is traversed to determine the graphical symbols (lines, shapes, arches, noteheads, and other) needed to represent each ImoObj object. These graphical symbols are modelled by graphical objects, derived from abstract class GmoObj. The collection of GmoObj objects describing the visual representation of the internal model constitutes the graphical model. It is represented by class GraphicModel. The process of building the graphical model from the internal model is known as layouting.

Once the graphical model is built, it is traversed and its objects transformed to create a bitmap or other desired visual/graphical oriented representation. The process of building an image from the graphical model is known as rendering.

Part II describes in detail all these steps, the related concepts and the involved objects.