Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

DirectPainter Class Reference

#include <DirectPainter.h>

Inheritance diagram for DirectPainter:

Painter List of all members.

Public Member Functions

void setFont (QFont)
 DirectPainter (QPaintDevice *)
void drawFTSymbol (int nglyph, float xpos, float ypos)
void drawFTSymbolEnc (unsigned long code, float xpos, float ypos, int)
void drawText (int, int, QString)
float getPreviousWidth ()
void drawNoteLine (float xpos, float ypos, int height)
void drawLine (float, float, float, float)
void drawRect (QCoordsRect)
void drawRect (double, double, double, double)
void drawRect (int, int, int, int)
void drawEllipse (float, float, float, float)
void setBrush (const QColor &)
void setPen (Qt::PenStyle)
void setPen (const QColor &)
void drawStemBar (double, double, double, double)
void end ()
void setZoom (ZoomFactor)
void begin ()
void setPenColor (const QColor &)
void drawLine (int, int, int, int)
float getPreviousY ()

Detailed Description

class representing a painter not using a coordinate sytem Now it is a duplicate of the painter zoom forcing the zoom factor to 1 but many calculus could be avoided if the implementation change


Member Function Documentation

void DirectPainter::begin  )  [virtual]
 

il est nécessaire de faire ceci pour l'instancier

Implements Painter.

void DirectPainter::drawEllipse float  xsrc,
float  ysrc,
float  w,
float  h
[virtual]
 

Draw an ellipse

Implements Painter.

void DirectPainter::drawFTSymbolEnc unsigned long  nglyph,
float  xpos,
float  ypos,
int  enc
[virtual]
 

This method draw a music symbol

*

Implements Painter.

void DirectPainter::drawNoteLine float  xpos,
float  ypos,
int  height
[virtual]
 

Deprecated:
use draw line instead

Implements Painter.

void DirectPainter::drawRect double  ,
double  ,
double  ,
double 
[virtual]
 

draws a rect {(x1,y1),(x2,y2)}

Implements Painter.

void DirectPainter::drawStemBar double  ,
double  ,
double  ,
double 
[virtual]
 

draws the stem bar {(x1,y1),(x2,y2)}

Implements Painter.

void DirectPainter::end  )  [virtual]
 

il est nécessaire de faire ceci pour l'instancier

Implements Painter.

float DirectPainter::getPreviousWidth  ) 
 

For getting the previous with of the precedent Symbol this is not a very clever way of proceeding, we will make up fot this later on *

float DirectPainter::getPreviousY  ) 
 

Get the previous height where the symbol has been drawn *

void DirectPainter::setBrush const QColor &   )  [virtual]
 

sets the brush

Implements Painter.

void DirectPainter::setFont QFont  f  )  [virtual]
 

This adjust the size of the font to the size of the zoom factor

*

Implements Painter.

void DirectPainter::setPen const QColor &   )  [virtual]
 

sets the pen color

Implements Painter.

void DirectPainter::setPen Qt::PenStyle   )  [virtual]
 

sets the pen

Implements Painter.

void DirectPainter::setPenColor const QColor &   )  [virtual]
 

Deprecated:
set PenColor has the same role that setPen we should remove it

Implements Painter.


The documentation for this class was generated from the following files:
Generated on Tue Jun 1 21:13:31 2004 for Alternate Take by doxygen 1.3.6