|
|
The ScorePainter is instantiated only once (as asingleton)! Thus it should not contain any editor-specific members. It is thought only to provide methods to paint the ScoreObjects (bars, groups, chords and breaks). The few private members are always(!!!) to used temporarily. The PrScoreEditor is an abstract class!
struct ChordGeometry * c_geometry | c_geometry |
[protected]
struct GroupGeometry * g_geometry | g_geometry |
[protected]
double unitsPerTick | unitsPerTick |
[protected]
int key | key |
[protected]
int clef | clef |
[protected]
const char * programName (int prg)
| programName |
[protected const]
this method returns the midi program name, for the specified program
void resetSigns (int key)
| resetSigns |
[protected]
this method resets the key-array. It should usually be called at the beginning of a bar presentation
void initChordGeometry (int nwidth, int yscale)
| initChordGeometry |
[protected]
use this method to initialize the chord's geometry and specify the width of the note body as a parameter
void initGroupGeometry (ScoreGroup * group, int xoff, int nwidth)
| initGroupGeometry |
[protected]
use this method to initialize the group's geometry.
void use (Note * note, ScoreChord * chord)
| use |
[protected]
this method helps to set the geometry. Call it with each note within a chord. It requires the geometry to be initialized by the initGeometry method, as well as key and clef to be set correctly.
void use (ScoreObjectType t, ChordGeometry * cg, int xpos)
| use |
[protected]
void makeChordGeometry (int xoff)
| makeChordGeometry |
[protected]
call this method after all notes for a chord are processed by the use method to conclude the geometry calculation. The direction of the stem is determined as well as the position of the stem, for which the parameters xoff (offset in x direction) and nwidth (the width of a note, which should be equal to the shift in x-direction) are needed.
void makeGroupGeometry (bool horizontalBeams)
| makeGroupGeometry |
[protected]
int dot (int len=0)
| dot |
[protected const]
this method returns the number of dots that occurr for a given length. If no length is specified, the geometry's length is used.
int flags (int len = -1)
| flags |
[protected const]
this method returns the number of flags of a chord. (1/8 has one flag, 1/16 has 2 flags, 1/32 has 3 flags etc.) If no length is specified, the geometry's length will be used.
int lengthOrd (int len = -1)
| lengthOrd |
[protected const]
this method returns the ordered length number (0=whole, 1=half, 2=quater, 3=eigth, etc) If no length is specified, the geometry's length will be used.
const char * string (int num)
| string |
[protected]
returns the integer parameter as a char*
const char * lyrics ()
| lyrics |
[protected const]
returns the geometry's lyrics
int stemLength ()
| stemLength |
[protected const]
bool hasStem ()
| hasStem |
[protected const]
bool hasFlags ()
| hasFlags |
[protected const]
PrScorePainter ()
| PrScorePainter |
~PrScorePainter ()
| ~PrScorePainter |
[virtual]
int indent (ScoreBar*)
| indent |
void paintBar (ScoreBar*, PrScoreEditor*, Table*, int, int, int)
| paintBar |
[pure virtual]
void paintGroup (ScoreGroup*, PrScoreEditor*, Table*, int, int)
| paintGroup |
[pure virtual]
void paintChord (ScoreChord*, PrScoreEditor*, Table*, int, int)
| paintChord |
[pure virtual]
void paintBreak (ScoreBreak*, PrScoreEditor*, int, int)
| paintBreak |
[pure virtual]
int indentSystem (ScoreBar*)
| indentSystem |
[pure virtual]
Generated by: wuerthne on clouseau on Fri Sep 21 19:20:46 2001, using kdoc 2.0a53. |