#include <Pages.h>
Inheritance diagram for PagesGr:

Public Member Functions | |
| void | setScore (ScoreMusic *s) |
| PagesGr (Container *p) | |
| void | init () |
| void | update () |
| SlurMS * | buildOverStemSlur (NoteHMS *, NoteHMS *, NoteMusic *nmstart, NoteMusic *nmstop) |
| SlurMS * | buildNoteHeadSideSlur (NoteHMS *mstart, NoteHMS *msstop, NoteMusic *nmstart, NoteMusic *nmstop) |
| bool | computeSlurCollision (SlurMC *,SlurMS *, int,int, int) |
| void | slurPass () |
| Container * | getContainer () |
| double | getWidth () |
| PageGr * | getPage (int i) |
| void | paint () |
There are a page height and a page Width that are set to the default format A4 It is use full to have a coordinate system where we draw like on a printer
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
Compute the collsion of the slur
Detection of collision with notes Here we perform the collision tests |
|
|
|
|
|
The init fonction is called just after the setScore has been done : It perform the following actions :
There is a bigtrouble with the performance of the slur construction so we have to provide atake with optimisation analysis before going any further |
|
|
This method draws everything in the page. There is only one stylus in a printer any is good, 0 included ! Implements Graphical. |
|
|
set the score
|
|
|
This pass build the slurs. Note : The whole collection of notes is browsed this might be clever to restrict the collection for an optimisation |
|
|
This method do the whole update as only one page should be displayed the update should be done on the current page Warning : Unimplemented Reimplemented from Graphical. |
1.3.6