Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

FillTool Class Reference

#include </home/clem/local/src/opie/noncore/graphics/drawpad/filltool.h>

Inheritance diagram for FillTool:

Inheritance graph
[legend]
Collaboration diagram for FillTool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FillTool (DrawPad *drawPad, DrawPadCanvas *drawPadCanvas)
 ~FillTool ()
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void mouseMoveEvent (QMouseEvent *e)

Private Member Functions

void fillLine (int x, int y)
void fillMaskLine (int x, int y)
void setInterpolatedPixel (int x, int y)
int rgbDistance (QRgb rgb1, QRgb rgb2)

Private Attributes

QImage m_image
QImage m_mask
QRgb m_fillRgb
QRgb m_oldRgb

Constructor & Destructor Documentation

FillTool::FillTool DrawPad drawPad,
DrawPadCanvas drawPadCanvas
 

Definition at line 23 of file filltool.cpp.

FillTool::~FillTool  ) 
 

Definition at line 28 of file filltool.cpp.


Member Function Documentation

void FillTool::fillLine int  x,
int  y
[private]
 

Definition at line 82 of file filltool.cpp.

References i, m_fillRgb, m_image, and m_oldRgb.

Referenced by mousePressEvent().

void FillTool::fillMaskLine int  x,
int  y
[private]
 

Definition at line 114 of file filltool.cpp.

References FILL_THRESHOLD, i, m_image, m_mask, m_oldRgb, and rgbDistance().

Referenced by mousePressEvent().

void FillTool::mouseMoveEvent QMouseEvent *  e  )  [virtual]
 

Implements Tool.

Definition at line 77 of file filltool.cpp.

void FillTool::mousePressEvent QMouseEvent *  e  )  [virtual]
 

Implements Tool.

Definition at line 32 of file filltool.cpp.

References DrawPad::antiAliasing(), DrawPadCanvas::backupPage(), DrawPad::brush(), DrawPadCanvas::currentPage(), fillLine(), fillMaskLine(), i, m_fillRgb, m_image, m_mask, m_oldRgb, Tool::m_pDrawPad, Tool::m_pDrawPadCanvas, setInterpolatedPixel(), Opie::MM::x, and Opie::MM::y.

void FillTool::mouseReleaseEvent QMouseEvent *  e  )  [virtual]
 

Implements Tool.

Definition at line 72 of file filltool.cpp.

int FillTool::rgbDistance QRgb  rgb1,
QRgb  rgb2
[private]
 

Definition at line 157 of file filltool.cpp.

Referenced by fillMaskLine().

void FillTool::setInterpolatedPixel int  x,
int  y
[private]
 

Definition at line 148 of file filltool.cpp.

References m_fillRgb, m_image, and m_oldRgb.

Referenced by mousePressEvent().


Member Data Documentation

QRgb FillTool::m_fillRgb [private]
 

Definition at line 39 of file filltool.h.

Referenced by fillLine(), mousePressEvent(), and setInterpolatedPixel().

QImage FillTool::m_image [private]
 

Definition at line 37 of file filltool.h.

Referenced by fillLine(), fillMaskLine(), mousePressEvent(), and setInterpolatedPixel().

QImage FillTool::m_mask [private]
 

Definition at line 38 of file filltool.h.

Referenced by fillMaskLine(), and mousePressEvent().

QRgb FillTool::m_oldRgb [private]
 

Definition at line 40 of file filltool.h.

Referenced by fillLine(), fillMaskLine(), mousePressEvent(), and setInterpolatedPixel().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:32:50 2005 for OPIE by  doxygen 1.4.2