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

Public Member Functions | |
| void | setFont (QFont) |
| void | setFontSize (double) |
| void | setFontFamily (int) |
| void | setTextAlign (int) |
| void | setFTFont (int) |
| QPainterZoom (QPaintDevice *) | |
| void | drawFTSymbol (int nglyph, float xpos, float ypos) |
| void | drawFTSymbolEnc (unsigned long code, float xpos, float ypos, int enc) |
| void | drawText (double, double, QString) |
| void | drawNoteLine (float xpos, float ypos, int height) |
| void | drawLine (double, double, double, double) |
| void | drawRect (QCoordsRect) |
| QCoordsRect | getBoundingBox (int nglyph) |
| void | setFTSize (int) |
| void | drawRect (double, double, double, double) |
| void | drawRect (int, int, int, int) |
| void | drawStemBar (double, double, double, double) |
| void | drawSlur (double, double, double, double, int) |
| void | drawBrace (double, double, double) |
| void | drawEllipse (float, float, float, float) |
| void | drawEllipse (int, int, int, int) |
| void | end () |
| void | setZoom (ZoomFactor) |
| void | begin () |
| void | setRes (int, int) |
| void | setPenColor (const QColor &) |
| void | setPen (const QColor &) |
| void | setPen (Qt::PenStyle) |
| void | setBrush (const QColor &) |
| void | setBrush (Qt::BrushStyle) |
| void | drawLine (int, int, int, int) |
|
|
Constructor of the painter zoom by default the resolution is initialized to 50x50 The text alignment is defaulted to Align Left |
|
|
Before we start drawing we have to call the begin instruction Implements Painter. |
|
||||||||||||||||
|
draws the brace at pos (x,y) of height h Implements Painter. |
|
||||||||||||||||||||
|
draws an ellipse |
|
||||||||||||||||||||
|
draws an ellipse {(x1,y1),(x2,y2)} Implements Painter. |
|
||||||||||||||||
|
This draw a musical font symbol But there is a little shift in the use of the bitmap I'd better use the bearing of the font.
Implements Painter. |
|
||||||||||||||||||||
|
This method draw a music symbol
Ugly patch because stem does not start at the right position Implements Painter. |
|
||||||||||||||||||||
|
draws the line {(x1,y1),(x2,y2)} Implements Painter. |
|
||||||||||||||||
|
Implements Painter. |
|
||||||||||||||||||||
|
There we set the size of the pen for the zoom factor we shall not do that if the size of the pen is 0 So there should be a conditionnal statement.
The set Pen line is incorrect. It must take in account thet the X resolution can differ from the Y resolution so the pen maybe not a square we may remedy this by using the world transformation. Implements Painter. |
|
|
this is an override function |
|
||||||||||||||||||||||||
|
draws the brace tying {(x1,y1),(x2,y2)} of direction d Implements Painter. |
|
||||||||||||||||||||
|
draws the stem bar {(x1,y1),(x2,y2)} Implements Painter. |
|
||||||||||||||||
|
Draws text at (x,y) with the text label
Implements Painter. |
|
|
Some painter require a end paint instruction Implements Painter. |
|
|
Implements Painter. |
|
|
Sets the brush to the param style Implements Painter. |
|
|
Set the brush - The brush is the fill of the rectangle or ellipse that we draw Implements Painter. |
|
|
Function related to the main font Implements Painter. |
|
|
This sets the font family Implements Painter. |
|
|
This set the font size Implements Painter. |
|
|
This method set the current font Implements Painter. |
|
|
Set the musical font size Implements Painter. |
|
|
sets the pen Implements Painter. |
|
|
sets the pen color Implements Painter. |
|
|
Set the pen Color Implements Painter. |
|
||||||||||||
|
This sets the resolution of the painter
|
|
|
Set the text alignmenent
Implements Painter. |
|
|
We assume that 65 is the default resolution for a screen But it is based on experience to match the resolution of the font and the resoltion of the painter |
1.3.6