wiki:SCENE_TUTORIAL

Version 4 (modified by peko, 16 years ago) (diff)

--

General Information

Scene is the things that is visualized on the screen. It is model of elements that describes the actual visual representation. Usually there is a "base element" that contains the others. The scene contains a structure that is displayed on screen. This means that the "base element" can contain a list of elements or can be a root of a tree. If an element of the list or a node of the tree has changed, its visual representation also changes.

Scene in Sophie 2

The scene model of Sophie 2 is composed of different elements which have different properties like color, layer, image etc. They are divided in classes and there is a composite scene element that is used contain scene elements. This way we have a Tree of SceneElements. For more information see => SCENE_COMMONS_R0 Since we have a model in Sophie 2 which represents the book with pages and frames and etc, we need to have something that collects the information from the model, constructs a scene structure and actually display it. In order to do this we have the work area which on the other hand is divided by AuthorPageWorkArea and ReaderPageWorkArea. These are needed to acquire different scene for the Sophie Reader and Sophie Author. For more information about these see => PAGE_WORK_AREA_DESIGN