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

Painter Class Reference
[Painter and Devices]

#include <Painter.h>

Inheritance diagram for Painter:

DirectPainter Printer QPainterZoom List of all members.

Public Member Functions

virtual void setFTSize (int)=0
virtual void setFTFont (int)=0
virtual void setTextAlign (int)=0
virtual void drawFTSymbol (int nglyph, float xpos, float ypos)=0
virtual void drawFTSymbolEnc (unsigned long code, float xpos, float ypos, int)=0
virtual void setFontFamily (int)=0
virtual void setFontSize (double)=0
virtual void setFont (QFont)=0
virtual void drawText (double x, double y, QString text)=0
virtual void drawNoteLine (float xpos, float ypos, int height)=0
virtual void drawLine (double x1, double y1, double x2, double y2)=0
virtual void drawStemBar (double x1, double y1, double x2, double y2)=0
virtual void drawBrace (double x, double y, double h)=0
virtual void drawSlur (double x1, double y1, double x2, double y2, int d)=0
virtual void drawRect (double x1, double y1, double x2, double y2)=0
virtual void drawEllipse (float x1, float y1, float x2, float y2)=0
virtual void end ()=0
virtual void begin ()=0
virtual QCoordsRect getBoundingBox (int nglyph)=0
virtual void setBrush (Qt::BrushStyle)=0
virtual void newPage ()
virtual bool isPrinter ()
virtual void setPenColor (const QColor &)=0
virtual void setBrush (const QColor &)=0
virtual void setPen (Qt::PenStyle)=0
virtual void setPen (const QColor &)=0

Detailed Description

Interface of a painter.

This class should be inherited by every painter


Member Function Documentation

virtual void Painter::begin  )  [pure virtual]
 

End the painter (move down the pen)

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::drawBrace double  x,
double  y,
double  h
[pure virtual]
 

draws the brace at pos (x,y) of height h

Implemented in Printer, and QPainterZoom.

virtual void Painter::drawEllipse float  x1,
float  y1,
float  x2,
float  y2
[pure virtual]
 

draws an ellipse {(x1,y1),(x2,y2)}

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::drawLine double  x1,
double  y1,
double  x2,
double  y2
[pure virtual]
 

draws the line {(x1,y1),(x2,y2)}

Implemented in Printer, and QPainterZoom.

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

Deprecated:
use draw line instead

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::drawRect double  x1,
double  y1,
double  x2,
double  y2
[pure virtual]
 

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

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::drawSlur double  x1,
double  y1,
double  x2,
double  y2,
int  d
[pure virtual]
 

draws the brace tying {(x1,y1),(x2,y2)} of direction d

Implemented in Printer, and QPainterZoom.

virtual void Painter::drawStemBar double  x1,
double  y1,
double  x2,
double  y2
[pure virtual]
 

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

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::drawText double  x,
double  y,
QString  text
[pure virtual]
 

draws text at pos (x,y)

Parameters:
x 
y 
text 

Implemented in Printer, and QPainterZoom.

virtual void Painter::end  )  [pure virtual]
 

End the painter (move up the pen)

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual QCoordsRect Painter::getBoundingBox int  nglyph  )  [pure virtual]
 

Deprecated:
use colliders instead

Implemented in Printer, and QPainterZoom.

bool Painter::isPrinter  )  [virtual]
 

Is printer

Reimplemented in Printer.

void Painter::newPage  )  [virtual]
 

Draws a new page

Reimplemented in Printer.

virtual void Painter::setBrush const QColor &   )  [pure virtual]
 

sets the brush

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::setBrush Qt::BrushStyle   )  [pure virtual]
 

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

Implemented in Printer, and QPainterZoom.

virtual void Painter::setFont QFont   )  [pure virtual]
 

Set the font

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::setFontFamily int   )  [pure virtual]
 

Sets the font family

Implemented in Printer, and QPainterZoom.

virtual void Painter::setFontSize double   )  [pure virtual]
 

Sets the font size

Implemented in Printer, and QPainterZoom.

virtual void Painter::setFTSize int   )  [pure virtual]
 

Methods related to the Freetype Font

Implemented in Printer, and QPainterZoom.

virtual void Painter::setPen const QColor &   )  [pure virtual]
 

sets the pen color

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::setPen Qt::PenStyle   )  [pure virtual]
 

sets the pen

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::setPenColor const QColor &   )  [pure virtual]
 

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

Implemented in DirectPainter, Printer, and QPainterZoom.

virtual void Painter::setTextAlign int   )  [pure virtual]
 

Set the text alignmenent

Parameters:
i can be ALIGN_LEFT, ALIGN_CENTER ALIGN_RIGHT

Implemented in Printer, and QPainterZoom.


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