#include <LineGr.h>
Inheritance diagram for LineGr:

Public Member Functions | |
| float | getHeight () |
| void | firstPass () |
| void | secondPass () |
| LineGr (Graphical *, Container *,int,MarginPage *, Constraint *,int index, int pagenb) | |
| void | update () |
| void | paint () |
| int | last () |
| Constraint * | getConstraint () |
|
||||||||||||||||||||||||||||||||
|
Explanation of the algorithm : As we dont know the length of the line we will draw as many measure as we can on the line. When we draw the last measure section either we are at the end of the score or we draw above the limits of the line size. It is a two pass process, First we build the Line. Then we make the first pass. Then we do the second pass.
|
|
|
This make the first pass of a line. The first pass compute the number of measure in the line. Then the kerning is applied by the second pass |
|
|
|
|
|
|
|
|
Draw the children measure sections * Implements Graphical. |
|
|
Plays the second pass of a line In this pass we expand the constraint to fit the page dimenstion change the improper nam lineWidth to LineRight I dont understand why such a shit remove this quickly and rewrite first pass method Kerning compensation constraint->getMeasureSectionConstraint(nMeasureLast)->setEndOfMeasureSection(rightMargin); We close the last measure section |
|
|
update should be reimplemented by every layout that may cause a reorganisation in its upper hierarchical level. Reimplemented from Graphical. |
1.3.6